You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Pavel S. (JIRA)" <ji...@apache.org> on 2016/12/20 16:07:58 UTC

[jira] [Created] (CASSANDRA-13061) C* driver hangs forever in case of concurrent CREATE TABLE IF NOT EXISTS

Pavel S. created CASSANDRA-13061:
------------------------------------

             Summary: C* driver hangs forever in case of concurrent CREATE TABLE IF NOT EXISTS
                 Key: CASSANDRA-13061
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-13061
             Project: Cassandra
          Issue Type: Bug
          Components: Core
            Reporter: Pavel S.


Hi,

It's one-node setup and everything I'm doing is just running {{CREATE TABLE IF NOT EXISTS}} from several threads at the same time.

I'm getting this:

The problem is definitely related to CASSANDRA-5025

{code}
15:52:40.194 [cluster1-nio-worker-1] WARN  c.d.driver.core.RequestHandler - /127.0.0.1:9042 replied with server error (java.lang.RuntimeException: java.util.concurrent.ExecutionException: org.apache.cassandra.exceptions.ConfigurationException: Column family ID mismatch (found 5230d9a0-c6cc-11e6-9ece-6d2c86545d91; expected 51d06a20-c6cc-11e6-9ece-6d2c86545d91)), defuncting connection.
{code}

On C* 3.9:

{code}
[cqlsh 5.0.1 | Cassandra 3.9 | CQL spec 3.4.2 | Native protocol v4]
Use HELP for help.
cqlsh>
{code}

with latest driver: {{"com.datastax.cassandra" % "cassandra-driver-core" % "3.1.2"}}

The only difference with previous version is the fact that applications starts hanging forever with stack like

{code}
"pool-4-thread-5-ScalaTest-running-CassandraMwsRestTest" #37 prio=5 os_prio=31 tid=0x00007f7f7048a800 nid=0x5113 waiting on condition [0x0000700006010000]
   java.lang.Thread.State: WAITING (parking)
	at sun.misc.Unsafe.park(Native Method)
	- parking to wait for  <0x0000000796682630> (a com.datastax.driver.core.DefaultResultSetFuture)
	at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
	at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:445)
	at com.google.common.util.concurrent.Uninterruptibles.getUninterruptibly(Uninterruptibles.java:143)
	at com.datastax.driver.core.DefaultResultSetFuture.getUninterruptibly(DefaultResultSetFuture.java:243)
	at com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:68)
	at com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:43)
	at org.bitbucket.pshirshov.izumitk.cassandra.util.CassandraQueries$$anonfun$createTables$1.apply(CassandraQueries.scala:26)
	at org.bitbucket.pshirshov.izumitk.cassandra.util.CassandraQueries$$anonfun$createTables$1.apply(CassandraQueries.scala:25)
	at scala.collection.immutable.List.foreach(List.scala:381)
{code}



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