hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yi Liang (JIRA)" <j...@apache.org>
Subject [jira] [Issue Comment Deleted] (HBASE-16234) Expect and handle nulls when assigning replicas
Date Thu, 28 Jul 2016 21:43:20 GMT

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

Yi Liang updated HBASE-16234:
-----------------------------
    Comment: was deleted

(was: Hi [~chenheng], i just check the following code in the AssignmentManager.java, it seems
that all the other place do not deal with the primary replica, all of them skip the primary
replica. So you are right, we can continue directly,  I will modify the code. Thanks for your
help.)

> Expect and handle nulls when assigning replicas
> -----------------------------------------------
>
>                 Key: HBASE-16234
>                 URL: https://issues.apache.org/jira/browse/HBASE-16234
>             Project: HBase
>          Issue Type: Bug
>          Components: Region Assignment
>    Affects Versions: 2.0.0
>            Reporter: Harsh J
>            Assignee: Yi Liang
>         Attachments: HBASE-16234-V1.patch, HBASE-16234-V1.patch, HBASE-16234-V2.patch,
HBASE-16234-V3.patch
>
>
> Observed this on a cluster:
> {code}
> FATAL org.apache.hadoop.hbase.master.HMaster: Unhandled exception. Starting shutdown.

> java.lang.NullPointerException 
> at org.apache.hadoop.hbase.master.AssignmentManager.replicaRegionsNotRecordedInMeta(AssignmentManager.java:2799)

> at org.apache.hadoop.hbase.master.AssignmentManager.assignAllUserRegions(AssignmentManager.java:2778)

> at org.apache.hadoop.hbase.master.AssignmentManager.processDeadServersAndRegionsInTransition(AssignmentManager.java:638)

> at org.apache.hadoop.hbase.master.AssignmentManager.joinCluster(AssignmentManager.java:485)

> at org.apache.hadoop.hbase.master.HMaster.finishActiveMasterInitialization(HMaster.java:723)

> at org.apache.hadoop.hbase.master.HMaster.access$500(HMaster.java:169) 
> at org.apache.hadoop.hbase.master.HMaster$1.run(HMaster.java:1481) 
> at java.lang.Thread.run(Thread.java:745) 
> {code}
> It looks like {{FSTableDescriptors#get(…)}} can be expected to return null in some
cases, but {{AssignmentManager.replicaRegionsNotRecordedInMeta(…)}} does not currently have
any handling for such a possibility.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message