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

Hanisha Koneru commented on HDFS-13062:
---------------------------------------

# In patch v03, if different journal dirs are configured, then we are not doing 
a {{checkDir()}} operation on those directories. We should call 
\{{validateAndCreateJournalDir(dir)}} when adding a dir to {{localDir}}.
 # In \{{validateAndCreateJournalDir()}}, the two for loops can be combined 
into one.

{code:java}
for (File journalDir : localDir) {
  if (!journalDir.isAbsolute()) {
    throw new IllegalArgumentException(
        "Journal dir '" + journalDir + "' should be an absolute path");
  }
}
for (File jDir : localDir) {
  DiskChecker.checkDir(jDir);
}{code}

> Provide support for JN to use separate journal disk per namespace
> -----------------------------------------------------------------
>
>                 Key: HDFS-13062
>                 URL: https://issues.apache.org/jira/browse/HDFS-13062
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Bharat Viswanadham
>            Assignee: Bharat Viswanadham
>            Priority: Major
>         Attachments: HDFS-13062.00.patch, HDFS-13062.01.patch, 
> HDFS-13062.02.patch, HDFS-13062.03.patch
>
>
> In Federated HA setup, provide support for separate journal disk for each 
> namespace.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to