hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-15933) NullPointerException may be thrown from SimpleRegionNormalizer#getRegionSize()
Date Thu, 02 Jun 2016 16:29:59 GMT

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

Ted Yu updated HBASE-15933:
---------------------------
    Attachment: 15933.addendum

Addendum fixes corner case so that we make merge decision when sizes of both regions are known.

> NullPointerException may be thrown from SimpleRegionNormalizer#getRegionSize()
> ------------------------------------------------------------------------------
>
>                 Key: HBASE-15933
>                 URL: https://issues.apache.org/jira/browse/HBASE-15933
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Assignee: Ted Yu
>             Fix For: 2.0.0, 1.4.0
>
>         Attachments: 15933.addendum, 15933.v1.txt
>
>
> The following was observed in master log:
> {code}
> 2016-05-26 00:09:54,716 INFO  [AM.ZK.Worker-pool2-t6917] master.RegionStates: Transition
{7669ce6bec40dd44bb2388ff4d610b7b state=CLOSED, ts=1464221394716, server=x.net,60020,1463615066136}
to {7669ce6bec40dd44bb2388ff4d610b7b state=OFFLINE, ts=1464221394716, server=x.net,60020,1463615066136}
> 2016-05-26 00:09:54,717 ERROR [y.net,60000,1463614725717_ChoreService_1] normalizer.RegionNormalizerChore:
Caught error
> java.lang.NullPointerException
>   at org.apache.hadoop.hbase.master.normalizer.SimpleRegionNormalizer.getRegionSize(SimpleRegionNormalizer.java:174)
>   at org.apache.hadoop.hbase.master.normalizer.SimpleRegionNormalizer.computePlanForTable(SimpleRegionNormalizer.java:99)
>   at org.apache.hadoop.hbase.master.HMaster.normalizeRegions(HMaster.java:1406)
>   at org.apache.hadoop.hbase.master.normalizer.RegionNormalizerChore.chore(RegionNormalizerChore.java:49)
>   at org.apache.hadoop.hbase.ScheduledChore.run(ScheduledChore.java:185)
>   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>   at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
>   at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
>   at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
>   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> {code}
> DEBUG was not turned on.
> Looks like race condition where the Map returned by getRegionsLoad() no longer contained
certain region.



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

Mime
View raw message