Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-13061

C* driver hangs forever in case of concurrent CREATE TABLE IF NOT EXISTS

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Duplicate
    • None
    • Legacy/Core
    • None
    • Normal

    Description

      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

      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.
      

      On C* 3.9:

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

      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

      "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)
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pshirshov Pavel S.
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: