hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey Stepachev (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-13133) NPE when running TestSplitLogManager
Date Mon, 02 Mar 2015 01:10:04 GMT

    [ https://issues.apache.org/jira/browse/HBASE-13133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14342576#comment-14342576
] 

Andrey Stepachev commented on HBASE-13133:
------------------------------------------

not sure about root of the problem, but it seems can happen that async read callback was set
in ZKSplitLogManagerCoordination#getDataSetWatch and called before 
method SplitLogManagerCoordination#setDetails was called and details were set.
it seems that patch can be very straitforward, need to change order of initialization.

but other possibility for that is not set coordination engine, in that case details would
not
be initialized, but chore still can be called.


> NPE when running TestSplitLogManager
> ------------------------------------
>
>                 Key: HBASE-13133
>                 URL: https://issues.apache.org/jira/browse/HBASE-13133
>             Project: HBase
>          Issue Type: Bug
>            Reporter: zhangduo
>
> https://builds.apache.org/job/HBase-TRUNK/6187/testReport/junit/org.apache.hadoop.hbase.master/TestSplitLogManager/testOrphanTaskAcquisition/
> {noformat}
> 2015-03-01 01:34:58,902 INFO  [Thread-23] master.TestSplitLogManager(298): TestOrphanTaskAcquisition
> 2015-03-01 01:34:58,904 DEBUG [Thread-23] coordination.ZKSplitLogManagerCoordination(870):
Distributed log replay=true
> 2015-03-01 01:34:58,907 INFO  [Thread-23] coordination.ZKSplitLogManagerCoordination(594):
found orphan task orphan%2Ftest%2Fslash
> 2015-03-01 01:34:58,913 INFO  [Thread-23] coordination.ZKSplitLogManagerCoordination(598):
Found 1 orphan tasks and 0 rescan nodes
> 2015-03-01 01:34:58,913 ERROR [main-EventThread] zookeeper.ClientCnxn$EventThread(613):
Caught unexpected throwable
> java.lang.NullPointerException
> 	at org.apache.hadoop.hbase.coordination.ZKSplitLogManagerCoordination.findOrCreateOrphanTask(ZKSplitLogManagerCoordination.java:546)
> 	at org.apache.hadoop.hbase.coordination.ZKSplitLogManagerCoordination.heartbeat(ZKSplitLogManagerCoordination.java:556)
> 	at org.apache.hadoop.hbase.coordination.ZKSplitLogManagerCoordination.getDataSetWatchSuccess(ZKSplitLogManagerCoordination.java:467)
> 	at org.apache.hadoop.hbase.coordination.ZKSplitLogManagerCoordination.access$700(ZKSplitLogManagerCoordination.java:74)
> 	at org.apache.hadoop.hbase.coordination.ZKSplitLogManagerCoordination$GetDataAsyncCallback.processResult(ZKSplitLogManagerCoordination.java:1020)
> 	at org.apache.zookeeper.ClientCnxn$EventThread.processEvent(ClientCnxn.java:561)
> 	at org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:498)
> {noformat}
> I got this NPE almost every time when running TestSplitLogManager locally. I am not sure
whether it is the root cause of test failing, but seems related.



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

Mime
View raw message