Details
-
Sub-task
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
Reviewed
Description
Some code cleanup for DatanodeDescriptor and HeartbeatManager. The changes include:
- Change DataDescriptor#isAlive and DatanodeDescriptor#needKeyUpdate from public to private
- Use EnumMap for HeartbeatManager#storageTypeStatesMap
- Move the isInStartupSafeMode out of the namesystem lock in heartbeatCheck