You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "JiangHua Zhu (Jira)" <ji...@apache.org> on 2021/08/31 09:53:00 UTC

[jira] [Commented] (HDFS-16197) Simplify getting NNStorage in FSNamesystem

    [ 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: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org