Mutable hash codes may lead to orphaned instances in a collection. Instances must always be removed prior to modification of hash code values, and re-inserted. Although current code appears to do this, the mutable hash code is a landmine.
- is related to
HDFS-7433 Optimize performance of DatanodeManager's node map