hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gustavo Anatoly (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-11032) Replace deprecated methods in FileSystem with their replacements
Date Mon, 21 Apr 2014 16:13:17 GMT

    [ https://issues.apache.org/jira/browse/HBASE-11032?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13975675#comment-13975675
] 

Gustavo Anatoly commented on HBASE-11032:
-----------------------------------------

Ted, 

The problem occurs when call fs.create() on ProtobufLogWriter#init():
{code}
...
long blockSize = conf.getLong("hbase.regionserver.hlog.blocksize",
        FSUtils.getDefaultBlockSize(fs, path));
    output = fs.create(path, overwritable, bufferSize, replication, blockSize, null); <<<
    output.write(ProtobufLogReader.PB_WAL_MAGIC);
...
{code}

So, I will prepare a new patch without refactor fs.createNonRecursive (deprecated), but I
could create a new issue to work on it?

> Replace deprecated methods in FileSystem with their replacements
> ----------------------------------------------------------------
>
>                 Key: HBASE-11032
>                 URL: https://issues.apache.org/jira/browse/HBASE-11032
>             Project: HBase
>          Issue Type: Task
>            Reporter: Ted Yu
>            Assignee: Gustavo Anatoly
>            Priority: Minor
>             Fix For: 0.99.0
>
>         Attachments: HBASE-11032.patch
>
>
> FileStatus#isDir() is deprecated.
> FileStatus#isDirectory() should be called instead.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message