Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-4084

Cassandra tests: random initializationError after OperationTimedOutException

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.23.0
    • Fix Version/s: None
    • Component/s: cassandra-adapter
    • Labels:
      None

      Description

      (maybe related to CALCITE-2442)

      It seems that, under certain configuration(s), cassandra tests fail with initializationError.
      See example here: https://builds.apache.org/job/Calcite-Master/1802/jdk=JDK%201.8%20(latest),label_exp=ubuntu/consoleFull

      In the last 5 executions of Jenkins "JDK 1.8 (latest),ubuntu", we can see this error 3 times (#1800, #1802, #1804):
      https://builds.apache.org/job/Calcite-Master/jdk=JDK%201.8%20(latest),label_exp=ubuntu/
      The error does not seem to be happening on JDK11 or JDK13.

      Error message:

      > Task :cassandra:test
                6.4sec, org.apache.calcite.test.CassandraAdapterTest > testSortOffset()
               71.4sec,   11 completed,   0 failed,   0 skipped, org.apache.calcite.test.CassandraAdapterTest
      FAILURE   0.0sec, org.apache.calcite.test.CassandraAdapterDataTypesTest > initializationError
          com.datastax.driver.core.exceptions.OperationTimedOutException: [localhost/127.0.0.1:9142] Timed out waiting for server response
              at com.datastax.driver.core.exceptions.OperationTimedOutException.copy(OperationTimedOutException.java:43)
              at com.datastax.driver.core.exceptions.OperationTimedOutException.copy(OperationTimedOutException.java:25)
              at com.datastax.driver.core.DriverThrowables.propagateCause(DriverThrowables.java:35)
              at com.datastax.driver.core.DefaultResultSetFuture.getUninterruptibly(DefaultResultSetFuture.java:293)
              at com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:58)
              at com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:39)
              at org.cassandraunit.utils.CqlOperations.lambda$execute$0(CqlOperations.java:16)
              at org.cassandraunit.utils.CqlOperations.lambda$dropKeyspace$3(CqlOperations.java:29)
              at org.cassandraunit.CQLDataLoader.initKeyspaceContext(CQLDataLoader.java:51)
              at org.cassandraunit.CQLDataLoader.load(CQLDataLoader.java:30)
              at org.apache.calcite.test.CassandraAdapterDataTypesTest.load(CassandraAdapterDataTypesTest.java:53)
              Caused by: com.datastax.driver.core.exceptions.OperationTimedOutException: [localhost/127.0.0.1:9142] Timed out waiting for server response
                  at com.datastax.driver.core.RequestHandler$SpeculativeExecution.onTimeout(RequestHandler.java:954)
                  at com.datastax.driver.core.Connection$ResponseHandler$1.run(Connection.java:1575)
                  at io.netty.util.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:625)
                  at io.netty.util.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:700)
                  at io.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:428)
                  at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)
                  at java.lang.Thread.run(Thread.java:748)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                rubenql Ruben Q L
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: