You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Virag Kothari (JIRA)" <ji...@apache.org> on 2014/08/14 06:14:11 UTC

[jira] [Created] (HBASE-11740) RegionStates.getRegionAssignments() gets stuck on clone

Virag Kothari created HBASE-11740:
-------------------------------------

             Summary: RegionStates.getRegionAssignments() gets stuck on clone
                 Key: HBASE-11740
                 URL: https://issues.apache.org/jira/browse/HBASE-11740
             Project: HBase
          Issue Type: Bug
          Components: Region Assignment
            Reporter: Virag Kothari
            Assignee: Virag Kothari


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 (O(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.




--
This message was sent by Atlassian JIRA
(v6.2#6252)