-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
HDFS-16552. Fix NPE for TestBlockManager #4210
Conversation
💔 -1 overall
This message was automatically generated. |
Hi @tasanuma , could you please take a look at this. Thank you. |
@tomscut Thanks for reporting it. I'm not sure why CI didn't catch it in #4138. Instead of fixing BlockManager, I prefer to fix the unit test. How about adding the following line to the top of NameNode.initMetrics(new Configuration(), HdfsServerConstants.NamenodeRole.NAMENODE); |
Thanks @tasanuma for your suggestions. I will update it. |
+1, pending Jenkins. |
🎊 +1 overall
This message was automatically generated. |
Thanks for fixing it, @tomscut! |
(cherry picked from commit 5ebbacc)
(cherry picked from commit 5ebbacc)
Thank you @tasanuma . |
JIRA: HDFS-16552.
Fix NPE for BlockManager#scheduleReconstruction.
There is a NPE in BlockManager when run TestBlockManager#testSkipReconstructionWithManyBusyNodes2. Because NameNodeMetrics is not initialized in this unit test.
Related ci link, see this.