Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
2.8.0, 3.0.0
-
None
-
hadoop-2.7.3, hadoop-2.8.0
-
Reviewed
-
-
HDFS, DiskChecks
-
Patch
Description
In ThrottledAsyncChecker class,it members of the completedChecks is WeakHashMap, its definition is as follows:
this.completedChecks = new WeakHashMap<>();
and one of its uses is as follows in schedule method:
if (completedChecks.containsKey(target))
after "completedChecks.containsKey(target)", may be happen garbage collection, and result may be null.
Attachments
Issue Links
- duplicates
-
HDFS-14074 DataNode runs async disk checks maybe throws NullPointerException, and DataNode failed to register to NameSpace.
- Resolved