[
https://issues.apache.org/jira/browse/HDFS-16197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17407209#comment-17407209
]
JiangHua Zhu commented on HDFS-16197:
-------------------------------------
Add a method to obtain NNStorage more concisely, for example:
public NNStorage getNNStorage() {
return getFSImage().getStorage();
}
> Simplify getting NNStorage in FSNamesystem
> ------------------------------------------
>
> Key: HDFS-16197
> URL: https://issues.apache.org/jira/browse/HDFS-16197
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: namenode
> Reporter: JiangHua Zhu
> Assignee: JiangHua Zhu
> Priority: Minor
> Labels: pull-request-available
> Time Spent: 20m
> Remaining Estimate: 0h
>
> In FSNamesystem, there are many places where NNStorage needs to be used
> (according to preliminary statistics, there are 15 times), and these places
> are obtained using "getFSImage().getStorage()". We should try to use a
> simpler way.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]