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

CassandraAdapterDataTypesTest fails with initialization error

    XMLWordPrintableJSON

Details

    Description

      > Task :cassandra:test FAILED
      FAILURE   0.0sec, org.apache.calcite.test.CassandraAdapterTest > initializationError
          com.datastax.oss.driver.api.core.servererrors.WriteTimeoutException: Cassandra timeout during SIMPLE write query at consistency LOCAL_ONE (1 replica were required but only 0 acknowledged the write)
              at com.datastax.oss.driver.api.core.servererrors.WriteTimeoutException.copy(WriteTimeoutException.java:96)
              at com.datastax.oss.driver.internal.core.util.concurrent.CompletableFutures.getUninterruptibly(CompletableFutures.java:149)
              at com.datastax.oss.driver.internal.core.cql.CqlRequestSyncProcessor.process(CqlRequestSyncProcessor.java:53)
              at com.datastax.oss.driver.internal.core.cql.CqlRequestSyncProcessor.process(CqlRequestSyncProcessor.java:30)
              at com.datastax.oss.driver.internal.core.session.DefaultSession.execute(DefaultSession.java:230)
              at com.datastax.oss.driver.api.core.cql.SyncCqlSession.execute(SyncCqlSession.java:54)
              at com.datastax.oss.driver.api.core.cql.SyncCqlSession.execute(SyncCqlSession.java:78)
              at org.cassandraunit.utils.CqlOperations.lambda$execute$0(CqlOperations.java:18)
              at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
              at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)
              at org.cassandraunit.CQLDataLoader.load(CQLDataLoader.java:34)
              at org.apache.calcite.test.CassandraAdapterTest.load(CassandraAdapterTest.java:52)
      FAILURE  38.2sec,    1 completed,   1 failed,   0 skipped, org.apache.calcite.test.CassandraAdapterTest
      

      The root cause is probably a session leak, as suggested by the warning:

      CassandraAdapterDataTypesTest > testSimpleTypesRowType() STANDARD_OUT
          2022-02-14 04:36:56,298 [ForkJoinPool-1-worker-1] WARN  - You have too many session instances: 15 active, expected less than 4 (see 'advanced.session-leak.threshold' in the configuration)
      > Task :core:forbiddenApisMain
      

      For the full error see: https://ci.appveyor.com/project/ApacheSoftwareFoundation/calcite/builds/42562506/job/4ppus57wtv36689d

      Attachments

        Issue Links

          Activity

            People

              asolimando Alessandro Solimando
              asolimando Alessandro Solimando
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m