Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.6.0
Description
BlockManager#invalidateWorkForOneNode looks up a DataNode by the datanodeUuid and passes the resultant DatanodeDescriptor to InvalidateBlocks#invalidateWork. However, if a wrong or outdated datanodeUuid is used, a null pointer will be passed to invalidateWork which will use it to lookup in a TreeMap. Since the key type is DatanodeDescriptor, key comparison is based on the IP address. A null key will crash the NameNode with an NPE.
Attachments
Attachments
Issue Links
- requires
-
HDFS-7211 Block invalidation work should be ordered
- Open