[jira] [Commented] (CASSANDRA-5631) NPE when creating column family shortly after multinode startup

2014-02-19 Thread Sylvain Lebresne (JIRA)

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

Sylvain Lebresne commented on CASSANDRA-5631:
-

Lgtm (nit: I'd rename serializeKeyspace to say addSerializedKeyspace).

bq. Can you not just wait for schema agreement in your client before going on 
to the next create?

For the record, Jeremiah is right that clients are supposed to wait for schema 
agreement if they want to guarantee the table creation won't fail just after 
the keyspace one (or alternatively make sure both creation goes through the 
same coordinator node). Of course, we shouldn't NPE internally if a user don't 
respect that and that's just what this ticket is about.

> NPE when creating column family shortly after multinode startup
> ---
>
> Key: CASSANDRA-5631
> URL: https://issues.apache.org/jira/browse/CASSANDRA-5631
> Project: Cassandra
>  Issue Type: Bug
>  Components: Core
>Affects Versions: 1.2.0
>Reporter: Martin Serrano
>Assignee: Aleksey Yeschenko
> Fix For: 1.2.16, 2.0.6, 2.1
>
> Attachments: 5631.txt
>
>
> I'm testing a 2-node cluster and creating a column family right after the 
> nodes startup.  I am using the Astyanax client.  Sometimes column family 
> creation fails and I see NPEs on the cassandra server:
> {noformat}
> 2013-06-12 14:55:31,773 ERROR CassandraDaemon [MigrationStage:1] - Exception 
> in thread Thread[MigrationStage:1,5,main]
> java.lang.NullPointerException
>   at org.apache.cassandra.db.DefsTable.addColumnFamily(DefsTable.java:510)
>   at 
> org.apache.cassandra.db.DefsTable.mergeColumnFamilies(DefsTable.java:444)
>   at org.apache.cassandra.db.DefsTable.mergeSchema(DefsTable.java:354)
>   at 
> org.apache.cassandra.db.DefinitionsUpdateVerbHandler$1.runMayThrow(DefinitionsUpdateVerbHandler.java:55)
>   at 
> org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>   at java.lang.Thread.run(Thread.java:722)
> {noformat}
> {noformat}
> 2013-06-12 14:55:31,880 ERROR CassandraDaemon [MigrationStage:1] - Exception 
> in thread Thread[MigrationStage:1,5,main]
> java.lang.NullPointerException
>   at 
> org.apache.cassandra.db.DefsTable.mergeColumnFamilies(DefsTable.java:475)
>   at org.apache.cassandra.db.DefsTable.mergeSchema(DefsTable.java:354)
>   at 
> org.apache.cassandra.db.DefinitionsUpdateVerbHandler$1.runMayThrow(DefinitionsUpdateVerbHandler.java:55)
>   at 
> org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>   at java.lang.Thread.run(Thread.java:722)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CASSANDRA-5631) NPE when creating column family shortly after multinode startup

2014-02-18 Thread Jeremiah Jordan (JIRA)

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

Jeremiah Jordan commented on CASSANDRA-5631:


If the issue is about the node not having gotten the create KS yet.  Can you 
not just wait for schema agreement in your client before going on to the next 
create?  That is how I do things to avoid these kinds of issues.

> NPE when creating column family shortly after multinode startup
> ---
>
> Key: CASSANDRA-5631
> URL: https://issues.apache.org/jira/browse/CASSANDRA-5631
> Project: Cassandra
>  Issue Type: Bug
>  Components: Core
>Affects Versions: 1.2.0
>Reporter: Martin Serrano
>Assignee: Aleksey Yeschenko
>
> I'm testing a 2-node cluster and creating a column family right after the 
> nodes startup.  I am using the Astyanax client.  Sometimes column family 
> creation fails and I see NPEs on the cassandra server:
> {noformat}
> 2013-06-12 14:55:31,773 ERROR CassandraDaemon [MigrationStage:1] - Exception 
> in thread Thread[MigrationStage:1,5,main]
> java.lang.NullPointerException
>   at org.apache.cassandra.db.DefsTable.addColumnFamily(DefsTable.java:510)
>   at 
> org.apache.cassandra.db.DefsTable.mergeColumnFamilies(DefsTable.java:444)
>   at org.apache.cassandra.db.DefsTable.mergeSchema(DefsTable.java:354)
>   at 
> org.apache.cassandra.db.DefinitionsUpdateVerbHandler$1.runMayThrow(DefinitionsUpdateVerbHandler.java:55)
>   at 
> org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>   at java.lang.Thread.run(Thread.java:722)
> {noformat}
> {noformat}
> 2013-06-12 14:55:31,880 ERROR CassandraDaemon [MigrationStage:1] - Exception 
> in thread Thread[MigrationStage:1,5,main]
> java.lang.NullPointerException
>   at 
> org.apache.cassandra.db.DefsTable.mergeColumnFamilies(DefsTable.java:475)
>   at org.apache.cassandra.db.DefsTable.mergeSchema(DefsTable.java:354)
>   at 
> org.apache.cassandra.db.DefinitionsUpdateVerbHandler$1.runMayThrow(DefinitionsUpdateVerbHandler.java:55)
>   at 
> org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>   at java.lang.Thread.run(Thread.java:722)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CASSANDRA-5631) NPE when creating column family shortly after multinode startup

2014-02-05 Thread Aleksey Yeschenko (JIRA)

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

Aleksey Yeschenko commented on CASSANDRA-5631:
--

bq. I think a fix would be to catch the NPEs above, and then, on learning about 
a new keyspace, check to see if any CFs should have been created for that 
keyspace.

This sounds reasonable to me. Another way would be to send the keyspace 
mutation serialized along with any column families created/altered messages, so 
that there will never be an NPE there in the first place. This had actually 
come up before. Will have a look.

> NPE when creating column family shortly after multinode startup
> ---
>
> Key: CASSANDRA-5631
> URL: https://issues.apache.org/jira/browse/CASSANDRA-5631
> Project: Cassandra
>  Issue Type: Bug
>  Components: Core
>Affects Versions: 1.2.0
>Reporter: Martin Serrano
>Assignee: Aleksey Yeschenko
>
> I'm testing a 2-node cluster and creating a column family right after the 
> nodes startup.  I am using the Astyanax client.  Sometimes column family 
> creation fails and I see NPEs on the cassandra server:
> {noformat}
> 2013-06-12 14:55:31,773 ERROR CassandraDaemon [MigrationStage:1] - Exception 
> in thread Thread[MigrationStage:1,5,main]
> java.lang.NullPointerException
>   at org.apache.cassandra.db.DefsTable.addColumnFamily(DefsTable.java:510)
>   at 
> org.apache.cassandra.db.DefsTable.mergeColumnFamilies(DefsTable.java:444)
>   at org.apache.cassandra.db.DefsTable.mergeSchema(DefsTable.java:354)
>   at 
> org.apache.cassandra.db.DefinitionsUpdateVerbHandler$1.runMayThrow(DefinitionsUpdateVerbHandler.java:55)
>   at 
> org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>   at java.lang.Thread.run(Thread.java:722)
> {noformat}
> {noformat}
> 2013-06-12 14:55:31,880 ERROR CassandraDaemon [MigrationStage:1] - Exception 
> in thread Thread[MigrationStage:1,5,main]
> java.lang.NullPointerException
>   at 
> org.apache.cassandra.db.DefsTable.mergeColumnFamilies(DefsTable.java:475)
>   at org.apache.cassandra.db.DefsTable.mergeSchema(DefsTable.java:354)
>   at 
> org.apache.cassandra.db.DefinitionsUpdateVerbHandler$1.runMayThrow(DefinitionsUpdateVerbHandler.java:55)
>   at 
> org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>   at java.lang.Thread.run(Thread.java:722)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CASSANDRA-5631) NPE when creating column family shortly after multinode startup

2014-01-30 Thread Tym Altman (JIRA)

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

Tym Altman commented on CASSANDRA-5631:
---

I'm just seeing the exact same thing on my 2 node cluster (cassandra 2.0.4).

> NPE when creating column family shortly after multinode startup
> ---
>
> Key: CASSANDRA-5631
> URL: https://issues.apache.org/jira/browse/CASSANDRA-5631
> Project: Cassandra
>  Issue Type: Bug
>  Components: Core
>Affects Versions: 1.2.0
>Reporter: Martin Serrano
>Assignee: Aleksey Yeschenko
>
> I'm testing a 2-node cluster and creating a column family right after the 
> nodes startup.  I am using the Astyanax client.  Sometimes column family 
> creation fails and I see NPEs on the cassandra server:
> {noformat}
> 2013-06-12 14:55:31,773 ERROR CassandraDaemon [MigrationStage:1] - Exception 
> in thread Thread[MigrationStage:1,5,main]
> java.lang.NullPointerException
>   at org.apache.cassandra.db.DefsTable.addColumnFamily(DefsTable.java:510)
>   at 
> org.apache.cassandra.db.DefsTable.mergeColumnFamilies(DefsTable.java:444)
>   at org.apache.cassandra.db.DefsTable.mergeSchema(DefsTable.java:354)
>   at 
> org.apache.cassandra.db.DefinitionsUpdateVerbHandler$1.runMayThrow(DefinitionsUpdateVerbHandler.java:55)
>   at 
> org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>   at java.lang.Thread.run(Thread.java:722)
> {noformat}
> {noformat}
> 2013-06-12 14:55:31,880 ERROR CassandraDaemon [MigrationStage:1] - Exception 
> in thread Thread[MigrationStage:1,5,main]
> java.lang.NullPointerException
>   at 
> org.apache.cassandra.db.DefsTable.mergeColumnFamilies(DefsTable.java:475)
>   at org.apache.cassandra.db.DefsTable.mergeSchema(DefsTable.java:354)
>   at 
> org.apache.cassandra.db.DefinitionsUpdateVerbHandler$1.runMayThrow(DefinitionsUpdateVerbHandler.java:55)
>   at 
> org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>   at java.lang.Thread.run(Thread.java:722)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CASSANDRA-5631) NPE when creating column family shortly after multinode startup

2014-01-24 Thread Richard Low (JIRA)

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

Richard Low commented on CASSANDRA-5631:


I've seen this on Cassandra 1.2.11.  It happens if you create a keyspace, 
following quickly by creating a column family within that keyspace.  The NPE is 
thrown because Schema.instance.getTableDefinition returns null for the keyspace 
but it isn't checked.

In the case I saw, the node that threw the NPE had problems so it wasn't 
receiving many messages - it didn't get the create keyspace message but did get 
the create CF message.  Even if a node doesn't have any problems, the ordering 
of these messages is not guaranteed.  The node will get the create keyspace 
message some time later (probably about 60 seconds later when another node has 
noticed the schema version is wrong) but it won't attempt to recreate the CF 
unless there is a further CF change (create, update or delete) within that 
keyspace.  Only then is the current cached schema compared with the on disk 
schema (in DefsTable.mergeColumnFamilies).  It then notices the CF doesn't 
exist so creates it.  This could never happen, so the node won't ever create 
the CF (unless it is restarted).

I think a fix would be to catch the NPEs above, and then, on learning about a 
new keyspace, check to see if any CFs should have been created for that 
keyspace.

I haven't tried to repro this on 2.0 but the code looks almost identical so I 
would expect it to still be present.

Could someone reopen the ticket please?

> NPE when creating column family shortly after multinode startup
> ---
>
> Key: CASSANDRA-5631
> URL: https://issues.apache.org/jira/browse/CASSANDRA-5631
> Project: Cassandra
>  Issue Type: Bug
>  Components: Core
>Affects Versions: 1.2.0
>Reporter: Martin Serrano
>
> I'm testing a 2-node cluster and creating a column family right after the 
> nodes startup.  I am using the Astyanax client.  Sometimes column family 
> creation fails and I see NPEs on the cassandra server:
> {noformat}
> 2013-06-12 14:55:31,773 ERROR CassandraDaemon [MigrationStage:1] - Exception 
> in thread Thread[MigrationStage:1,5,main]
> java.lang.NullPointerException
>   at org.apache.cassandra.db.DefsTable.addColumnFamily(DefsTable.java:510)
>   at 
> org.apache.cassandra.db.DefsTable.mergeColumnFamilies(DefsTable.java:444)
>   at org.apache.cassandra.db.DefsTable.mergeSchema(DefsTable.java:354)
>   at 
> org.apache.cassandra.db.DefinitionsUpdateVerbHandler$1.runMayThrow(DefinitionsUpdateVerbHandler.java:55)
>   at 
> org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>   at java.lang.Thread.run(Thread.java:722)
> {noformat}
> {noformat}
> 2013-06-12 14:55:31,880 ERROR CassandraDaemon [MigrationStage:1] - Exception 
> in thread Thread[MigrationStage:1,5,main]
> java.lang.NullPointerException
>   at 
> org.apache.cassandra.db.DefsTable.mergeColumnFamilies(DefsTable.java:475)
>   at org.apache.cassandra.db.DefsTable.mergeSchema(DefsTable.java:354)
>   at 
> org.apache.cassandra.db.DefinitionsUpdateVerbHandler$1.runMayThrow(DefinitionsUpdateVerbHandler.java:55)
>   at 
> org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>   at java.lang.Thread.run(Thread.java:722)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CASSANDRA-5631) NPE when creating column family shortly after multinode startup

2013-06-13 Thread Martin Serrano (JIRA)

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

Martin Serrano commented on CASSANDRA-5631:
---

I was incorrect regarding Astyanax support.  I just had a classpath issue.  
Anyway, I have tested in 1.2.5 and can no longer reproduce.  Thanks!

> NPE when creating column family shortly after multinode startup
> ---
>
> Key: CASSANDRA-5631
> URL: https://issues.apache.org/jira/browse/CASSANDRA-5631
> Project: Cassandra
>  Issue Type: Bug
>  Components: Core
>Affects Versions: 1.2.0
>Reporter: Martin Serrano
>
> I'm testing a 2-node cluster and creating a column family right after the 
> nodes startup.  I am using the Astyanax client.  Sometimes column family 
> creation fails and I see NPEs on the cassandra server:
> {noformat}
> 2013-06-12 14:55:31,773 ERROR CassandraDaemon [MigrationStage:1] - Exception 
> in thread Thread[MigrationStage:1,5,main]
> java.lang.NullPointerException
>   at org.apache.cassandra.db.DefsTable.addColumnFamily(DefsTable.java:510)
>   at 
> org.apache.cassandra.db.DefsTable.mergeColumnFamilies(DefsTable.java:444)
>   at org.apache.cassandra.db.DefsTable.mergeSchema(DefsTable.java:354)
>   at 
> org.apache.cassandra.db.DefinitionsUpdateVerbHandler$1.runMayThrow(DefinitionsUpdateVerbHandler.java:55)
>   at 
> org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>   at java.lang.Thread.run(Thread.java:722)
> {noformat}
> {noformat}
> 2013-06-12 14:55:31,880 ERROR CassandraDaemon [MigrationStage:1] - Exception 
> in thread Thread[MigrationStage:1,5,main]
> java.lang.NullPointerException
>   at 
> org.apache.cassandra.db.DefsTable.mergeColumnFamilies(DefsTable.java:475)
>   at org.apache.cassandra.db.DefsTable.mergeSchema(DefsTable.java:354)
>   at 
> org.apache.cassandra.db.DefinitionsUpdateVerbHandler$1.runMayThrow(DefinitionsUpdateVerbHandler.java:55)
>   at 
> org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>   at java.lang.Thread.run(Thread.java:722)
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CASSANDRA-5631) NPE when creating column family shortly after multinode startup

2013-06-12 Thread Martin Serrano (JIRA)

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

Martin Serrano commented on CASSANDRA-5631:
---

Unfortunately we are using the Astyanax client which only supports up to 1.2.2. 
 Is there anything I can do to detect this case and retry?  or work around it?

> NPE when creating column family shortly after multinode startup
> ---
>
> Key: CASSANDRA-5631
> URL: https://issues.apache.org/jira/browse/CASSANDRA-5631
> Project: Cassandra
>  Issue Type: Bug
>  Components: Core
>Affects Versions: 1.2.0
>Reporter: Martin Serrano
>
> I'm testing a 2-node cluster and creating a column family right after the 
> nodes startup.  I am using the Astyanax client.  Sometimes column family 
> creation fails and I see NPEs on the cassandra server:
> {noformat}
> 2013-06-12 14:55:31,773 ERROR CassandraDaemon [MigrationStage:1] - Exception 
> in thread Thread[MigrationStage:1,5,main]
> java.lang.NullPointerException
>   at org.apache.cassandra.db.DefsTable.addColumnFamily(DefsTable.java:510)
>   at 
> org.apache.cassandra.db.DefsTable.mergeColumnFamilies(DefsTable.java:444)
>   at org.apache.cassandra.db.DefsTable.mergeSchema(DefsTable.java:354)
>   at 
> org.apache.cassandra.db.DefinitionsUpdateVerbHandler$1.runMayThrow(DefinitionsUpdateVerbHandler.java:55)
>   at 
> org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>   at java.lang.Thread.run(Thread.java:722)
> {noformat}
> {noformat}
> 2013-06-12 14:55:31,880 ERROR CassandraDaemon [MigrationStage:1] - Exception 
> in thread Thread[MigrationStage:1,5,main]
> java.lang.NullPointerException
>   at 
> org.apache.cassandra.db.DefsTable.mergeColumnFamilies(DefsTable.java:475)
>   at org.apache.cassandra.db.DefsTable.mergeSchema(DefsTable.java:354)
>   at 
> org.apache.cassandra.db.DefinitionsUpdateVerbHandler$1.runMayThrow(DefinitionsUpdateVerbHandler.java:55)
>   at 
> org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>   at java.lang.Thread.run(Thread.java:722)
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CASSANDRA-5631) NPE when creating column family shortly after multinode startup

2013-06-12 Thread Jonathan Ellis (JIRA)

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

Jonathan Ellis commented on CASSANDRA-5631:
---

Please test 1.2.5

> NPE when creating column family shortly after multinode startup
> ---
>
> Key: CASSANDRA-5631
> URL: https://issues.apache.org/jira/browse/CASSANDRA-5631
> Project: Cassandra
>  Issue Type: Bug
>  Components: Core
>Affects Versions: 1.2.0
>Reporter: Martin Serrano
>
> I'm testing a 2-node cluster and creating a column family right after the 
> nodes startup.  I am using the Astyanax client.  Sometimes column family 
> creation fails and I see NPEs on the cassandra server:
> {noformat}
> 2013-06-12 14:55:31,773 ERROR CassandraDaemon [MigrationStage:1] - Exception 
> in thread Thread[MigrationStage:1,5,main]
> java.lang.NullPointerException
>   at org.apache.cassandra.db.DefsTable.addColumnFamily(DefsTable.java:510)
>   at 
> org.apache.cassandra.db.DefsTable.mergeColumnFamilies(DefsTable.java:444)
>   at org.apache.cassandra.db.DefsTable.mergeSchema(DefsTable.java:354)
>   at 
> org.apache.cassandra.db.DefinitionsUpdateVerbHandler$1.runMayThrow(DefinitionsUpdateVerbHandler.java:55)
>   at 
> org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>   at java.lang.Thread.run(Thread.java:722)
> {noformat}
> {noformat}
> 2013-06-12 14:55:31,880 ERROR CassandraDaemon [MigrationStage:1] - Exception 
> in thread Thread[MigrationStage:1,5,main]
> java.lang.NullPointerException
>   at 
> org.apache.cassandra.db.DefsTable.mergeColumnFamilies(DefsTable.java:475)
>   at org.apache.cassandra.db.DefsTable.mergeSchema(DefsTable.java:354)
>   at 
> org.apache.cassandra.db.DefinitionsUpdateVerbHandler$1.runMayThrow(DefinitionsUpdateVerbHandler.java:55)
>   at 
> org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>   at java.lang.Thread.run(Thread.java:722)
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira