-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HDFS-17446. The DataNode adds a log to report its progress during addToReplicasMap execution. #6685
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
0a2ddba to
50f4f68
Compare
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
8bd8147 to
cdd464c
Compare
|
💔 -1 overall
This message was automatically generated. |
cdd464c to
3e8161b
Compare
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
3e8161b to
f8f1869
Compare
|
💔 -1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
@hiwangzhihui, Hi~, please help me review it. |
| subTask.fork(); | ||
| subTaskQueue.add(subTask); | ||
| } else if (isFinalized && ++scanBlockCnt % 10000 == 0) { | ||
| LOG.info((scanBlockCnt - 1) + " blocks (finalize state) have been scanned."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please take care of concurrency issues that lead to inaccurate counting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The log style is not easy to view.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok. I will fix it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bc54efb to
150f983
Compare
|
💔 -1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
…ToReplicasMap execution.
150f983 to
bc12b7d
Compare
|
💔 -1 overall
This message was automatically generated. |
|
We're closing this stale PR because it has been open for 100 days with no activity. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable. |

Datanodes do not print logs when addToReplicasMap is just started, so we will not be aware of its progress, or even wait up to 4 hours for a large cluster. This is very confusing.
A cluster is as follows:

The optimized result is as follows:
(Because Scan thread is ForkJoinPool, so the printing may be repeated, but it will affect the overall progress of the presentation

)