-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HDFS-16179. Update loglevel for BlockManager#chooseExcessRedundancySt… #3313
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
…riped to avoid too much logs
ayushtkn
left a comment
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.
LGTM
Thanks @ayushtkn for your review. |
|
💔 -1 overall
This message was automatically generated. |
|
Hi @jojochuang @ferhui , could you please also review the code? Thanks a lot. |
|
@tomscut Thanks for contribution. |
Thanks @ferhui for your review. I think this method is just detecting redundancies and deleting them, but there are no redundancies in most cases. IMO, the log is not necessary here. |
|
@tomscut Thanks for comments.
I see that if shouldProcessExtraRedundancy returns true, It will enter this method. |
Thanks @ferhui for your comments and careful consideration. I found this issue HDFS-9876, and we can refer to it. Hi @Jing9 , could you please take a look at this. Thanks. |
|
There are no so many logs you mentioned in our cluster of thousands of nodes. So I guess there is a hidden reason behind of it. If we change it to DEBUG level, maybe we neglect some information. |
Do you also use EC policy? We had a cold data cluster of 350 nodes, all directories are using EC policy, and we ran into this problem. |
|
Yes, EC policy is used. |
Thank you very much for your quick reply. There may be other reasons, we will take a closer look. |
|
@tomscut Hi, does this WARN log be printed when only writing EC files ? This WARN logs also appeared in our cluster without writting any files, but not as many as you said.
|
Thanks @whbing for your comments. I found those logs were printed after completeFile. Triggered by FSDirWriteFileOp#completeFileInternal(). Our hadoop version is 3.1.0. |
Yes, those WARN logs were printed only writing EC files. Because the logs printed in BlockManager#chooseExcessRedundancyStriped(). |
|
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. |


JIRA: HDFS-16179
IMO, here is just detecting excess StorageType and setting the log level to debug has no effect.
We have a cluster that uses the EC policy to store data. The current log level is WARN here, and in about 50 minutes, 286,093 logs are printed, which can cause other important logs to drown out.