cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jay Zhuang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-13060) NPE in StorageService.java while bootstrapping
Date Tue, 03 Jan 2017 06:08:58 GMT

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

Jay Zhuang commented on CASSANDRA-13060:
----------------------------------------

The root cause is fixed by CASSANDRA-12281. Patched "[Avoid blocking gossip during pending
range calculation|https://github.com/spodkowinski/cassandra/commit/2611e33720233ad724b2196f5c062ef5c58ecd10]"
to 3.0.10 and confirmed no NPE. Thanks [~spodxx@gmail.com] for the fix.

On the other hand, it's still worth doing null check in [StorageService|https://github.com/cooldoger/cassandra/commit/3f85e4ffb531c82ee16b8f6cf9b4c4e29ae1fd53]
as a small improvement.

> NPE in StorageService.java while bootstrapping
> ----------------------------------------------
>
>                 Key: CASSANDRA-13060
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-13060
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Jay Zhuang
>            Assignee: Jay Zhuang
>            Priority: Minor
>              Labels: lhf
>             Fix For: 3.0.x
>
>         Attachments: 13060-3.0.txt
>
>
> Lots of NPE happens when bootstrapping new node:
> {code}
> WARN  [SharedPool-Worker-1] 2016-12-19 23:09:09,034 AbstractLocalAwareExecutorService.java:169
- Uncaught exception on thread Thread[SharedPool-Worker-1,5,main]: {}
> java.lang.NullPointerException: null
>         at org.apache.cassandra.service.StorageService.isRpcReady(StorageService.java:1829)
~[apache-cassandra-3.0.10.jar:3.0.10]
>         at org.apache.cassandra.service.StorageService.notifyUp(StorageService.java:1787)
~[apache-cassandra-3.0.10.jar:3.0.10]
>         at org.apache.cassandra.service.StorageService.onAlive(StorageService.java:2424)
~[apache-cassandra-3.0.10.jar:3.0.10]
>         at org.apache.cassandra.gms.Gossiper.realMarkAlive(Gossiper.java:999) ~[apache-cassandra-3.0.10.jar:3.0.10]
>         at org.apache.cassandra.gms.Gossiper$3.response(Gossiper.java:979) ~[apache-cassandra-3.0.10.jar:3.0.10]
>         at org.apache.cassandra.net.ResponseVerbHandler.doVerb(ResponseVerbHandler.java:53)
~[apache-cassandra-3.0.10.jar:3.0.10]
>         at org.apache.cassandra.net.MessageDeliveryTask.run(MessageDeliveryTask.java:67)
~[apache-cassandra-3.0.10.jar:3.0.10]
>         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[na:1.8.0_111]
>         at org.apache.cassandra.concurrent.AbstractLocalAwareExecutorService$FutureTask.run(AbstractLocalAwareExecutorService.java:164)
~[apache-cassandra-3.0.10.jar:3.0.10]
>         at org.apache.cassandra.concurrent.AbstractLocalAwareExecutorService$LocalSessionFutureTask.run(AbstractLocalAwareExecutorService.java:136)
[apache-cassandra-3.0.10.jar:3.0.10]
>         at org.apache.cassandra.concurrent.SEPWorker.run(SEPWorker.java:105) [apache-cassandra-3.0.10.jar:3.0.10]
>         at java.lang.Thread.run(Thread.java:745) [na:1.8.0_111]
> {code}



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

Mime
View raw message