Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
Reviewed
Description
This happens in processDeadServersAndRegionsInTransition() on Master startup. RegionAssigments is a tree map and TreeMap.clone() is expensive as it builds a tree from sorted data (Order of n). There were a million entries in RegionAssigments and from jstack, thread was stuck in TreeMap.buildFromSorted() for couple of hours.
Instead of this shadow clone, wrapping as an unmodifiable Map should be enough.