hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jimmy Xiang (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (HBASE-11740) RegionStates.getRegionAssignments() gets stuck on clone
Date Fri, 15 Aug 2014 17:29:20 GMT

     [ https://issues.apache.org/jira/browse/HBASE-11740?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Jimmy Xiang reassigned HBASE-11740:

    Assignee: Jimmy Xiang  (was: Virag Kothari)

> RegionStates.getRegionAssignments() gets stuck on clone
> -------------------------------------------------------
>                 Key: HBASE-11740
>                 URL: https://issues.apache.org/jira/browse/HBASE-11740
>             Project: HBase
>          Issue Type: Sub-task
>          Components: Region Assignment
>            Reporter: Virag Kothari
>            Assignee: Jimmy Xiang
>         Attachments: HBASE-11740.patch, HBASE-11740_2.patch
> 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.

This message was sent by Atlassian JIRA

View raw message