[ https://issues.apache.org/jira/browse/CALCITE-5011?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alessandro Solimando resolved CALCITE-5011. ------------------------------------------- Fix Version/s: 1.30.0 Resolution: Fixed Fixed via [e81cd20bfbf3cdc8fa430663b8f971119193cc3e|https://github.com/apache/calcite/commit/e81cd20bfbf3cdc8fa430663b8f971119193cc3e]. > CassandraAdapterDataTypesTest fails with initialization error > ------------------------------------------------------------- > > Key: CALCITE-5011 > URL: https://issues.apache.org/jira/browse/CALCITE-5011 > Project: Calcite > Issue Type: Bug > Components: tests > Affects Versions: 1.29.0 > Reporter: Alessandro Solimando > Assignee: Alessandro Solimando > Priority: Major > Labels: pull-request-available, test-stability > Fix For: 1.30.0 > > Time Spent: 40m > Remaining Estimate: 0h > > {noformat} > > 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 > {noformat} > The root cause is probably a session leak, as suggested by the warning: > {noformat} > 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 > {noformat} > For the full error see: > https://ci.appveyor.com/project/ApacheSoftwareFoundation/calcite/builds/42562506/job/4ppus57wtv36689d -- This message was sent by Atlassian Jira (v8.20.1#820001)