[
https://issues.apache.org/jira/browse/HDFS-8470?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14570343#comment-14570343
]
Vinayakumar B commented on HDFS-8470:
-------------------------------------
{{prog.getCounter(Phase.LOADING_FSIMAGE, currentStep).increment();}}
Instead of getting counter for every INode being loaded, you can take reference
of counter outside for-loop and just increment it inside for-loop ?
This might give little better loading time since number of INodes being loaded
will be very huge and there is no need to lookup for the step counter
everytime,
> fsimage loading progress should update inode, delegation token and cache pool
> count.
> ------------------------------------------------------------------------------------
>
> Key: HDFS-8470
> URL: https://issues.apache.org/jira/browse/HDFS-8470
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: HDFS
> Affects Versions: 2.7.0
> Reporter: tongshiquan
> Assignee: surendra singh lilhore
> Priority: Minor
> Attachments: HDFS-8470.patch, HDFS-8470_1.patch, HDFS-8470_2.patch,
> screenshot-1.png, screenshot_after_fix.png
>
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)