You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Sylvain Lebresne (JIRA)" <ji...@apache.org> on 2013/10/23 10:09:47 UTC

[jira] [Updated] (CASSANDRA-6211) NPE in system.log

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

Sylvain Lebresne updated CASSANDRA-6211:
----------------------------------------

    Attachment: 6211.txt

When we load the paxos state, we assume that if the state is not empty then it must have an in_progress_ballot. But that's not guaranteed (at least not with the current code) since a node could get a commit without ever having seen the prepare/propose (it was dead for them or is just lagging behind). Besides, another reason (for having a non-empty state but no in_progress_ballot) is that we use TTL and the in_progress_ballot is the first thing that would TTL.

Anyway, attaching simple patch that test for the presence of in_progress_ballot.

> NPE in system.log
> -----------------
>
>                 Key: CASSANDRA-6211
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6211
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>         Environment: java version "1.7.0_25"
> Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
> Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)
> Linux hostname 2.6.32-279.el6.x86_64 #1 SMP Thu Jun 21 15:00:18 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux
>            Reporter: Mikhail Mazursky
>            Assignee: Sylvain Lebresne
>              Labels: npe, nullpointerexception
>             Fix For: 2.0.3
>
>         Attachments: 6211.txt
>
>
> I wrote a stresstest to test C* and my code that uses CAS heavily. I see strange exception messages in logs:
> {noformat}
> ERROR [MutationStage:320] 2013-10-17 13:59:10,710 CassandraDaemon.java (line 185) Exception in thread Thread[MutationStage:320,5,main]
> java.lang.NullPointerException
> ERROR [MutationStage:328] 2013-10-17 13:59:10,718 CassandraDaemon.java (line 185) Exception in thread Thread[MutationStage:328,5,main]
> java.lang.NullPointerException
> ERROR [MutationStage:327] 2013-10-17 13:59:10,732 CassandraDaemon.java (line 185) Exception in thread Thread[MutationStage:327,5,main]
> java.lang.NullPointerException
> ERROR [MutationStage:325] 2013-10-17 13:59:10,750 CassandraDaemon.java (line 185) Exception in thread Thread[MutationStage:325,5,main]
> java.lang.NullPointerException
> ERROR [MutationStage:326] 2013-10-17 13:59:10,762 CassandraDaemon.java (line 185) Exception in thread Thread[MutationStage:326,5,main]
> java.lang.NullPointerException
> ERROR [MutationStage:330] 2013-10-17 13:59:10,768 CassandraDaemon.java (line 185) Exception in thread Thread[MutationStage:330,5,main]
> java.lang.NullPointerException
> ERROR [MutationStage:331] 2013-10-17 13:59:10,775 CassandraDaemon.java (line 185) Exception in thread Thread[MutationStage:331,5,main]
> java.lang.NullPointerException
> ERROR [MutationStage:334] 2013-10-17 13:59:10,789 CassandraDaemon.java (line 185) Exception in thread Thread[MutationStage:334,5,main]
> java.lang.NullPointerException
> ERROR [MutationStage:329] 2013-10-17 13:59:10,803 CassandraDaemon.java (line 185) Exception in thread Thread[MutationStage:329,5,main]
> java.lang.NullPointerException
> ERROR [MutationStage:335] 2013-10-17 13:59:10,812 CassandraDaemon.java (line 185) Exception in thread Thread[MutationStage:335,5,main]
> java.lang.NullPointerException
> ERROR [MutationStage:333] 2013-10-17 13:59:10,826 CassandraDaemon.java (line 185) Exception in thread Thread[MutationStage:333,5,main]
> java.lang.NullPointerException
> ERROR [MutationStage:332] 2013-10-17 13:59:10,834 CassandraDaemon.java (line 185) Exception in thread Thread[MutationStage:332,5,main]
> java.lang.NullPointerException
> ERROR [MutationStage:337] 2013-10-17 13:59:10,842 CassandraDaemon.java (line 185) Exception in thread Thread[MutationStage:337,5,main]
> java.lang.NullPointerException
> ERROR [MutationStage:336] 2013-10-17 13:59:10,859 CassandraDaemon.java (line 185) Exception in thread Thread[MutationStage:336,5,main]
> java.lang.NullPointerException
> ERROR [MutationStage:338] 2013-10-17 13:59:10,870 CassandraDaemon.java (line 185) Exception in thread Thread[MutationStage:338,5,main]
> java.lang.NullPointerException
> ERROR [MutationStage:339] 2013-10-17 13:59:10,884 CassandraDaemon.java (line 185) Exception in thread Thread[MutationStage:339,5,main]
> java.lang.NullPointerException
> ERROR [MutationStage:341] 2013-10-17 13:59:10,894 CassandraDaemon.java (line 185) Exception in thread Thread[MutationStage:341,5,main]
> java.lang.NullPointerException
> ERROR [MutationStage:340] 2013-10-17 13:59:10,910 CassandraDaemon.java (line 185) Exception in thread Thread[MutationStage:340,5,main]
> java.lang.NullPointerException
> ERROR [MutationStage:344] 2013-10-17 13:59:10,920 CassandraDaemon.java (line 185) Exception in thread Thread[MutationStage:344,5,main]
> java.lang.NullPointerException
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.1#6144)