Details
Description
To get debug info, we dynamically change the logger of BlockPlacementPolicyDefault to debug when namenode is running. However, the Namenode crashs. From the log, we find some NPE in BlockPlacementPolicyDefault.chooseRandom. Because StringBuilder builder will be used 4 times in BlockPlacementPolicyDefault.chooseRandom method. While the builder only initializes in the first time of this method. If we change the logger of BlockPlacementPolicyDefault to debug after the part, the builder in remaining part is NULL and cause NPE
Attachments
Attachments
Issue Links
- relates to
-
HDFS-14103 Review Logging of BlockPlacementPolicyDefault
- Resolved