Dmitry Kropachev
Dmitry Kropachev
Closes #356 Since netty `bootstrap.connect` uses only first address of unresolved InetSocketAddress 4.x does not even try to connect to other when it fails. This PR makes driver resolve unresolved...
Closes https://github.com/scylladb/java-driver/issues/368 ## Before ### `NoNodeAvailableException` ``` NoNodeAvailableException(showing first 0 nodes): com.datastax.oss.driver.api.core.NoNodeAvailableException: No node was available to execute the query at com.datastax.oss.driver.api.core.NoNodeAvailableException.copy(NoNodeAvailableException.java:56) at com.datastax.oss.driver.internal.core.util.concurrent.CompletableFutures.getUninterruptibly(CompletableFutures.java:151) at com.datastax.oss.driver.internal.core.cql.CqlRequestSyncProcessor.process(CqlRequestSyncProcessor.java:55) at com.datastax.oss.driver.internal.core.cql.CqlRequestSyncProcessor.process(CqlRequestSyncProcessor.java:32) at com.datastax.oss.driver.internal.core.session.DefaultSession.execute(DefaultSession.java:239)...
By some reason it push jars to sonatype, but don't release them. On 4.x, it looks like this: ``` [INFO] * Upload of locally staged artifacts finished. [INFO] * Closing...
``` Error: Tests run: 8, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 147.811 s
Test failure: ``` Error: Tests run: 8, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 95.227 s
``` Error: Tests run: 5, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 11.938 s
``` Warning: Javadoc Warnings Warning: /home/runner/work/java-driver/java-driver/core-shaded/target/shaded-sources/com/datastax/oss/driver/shaded/netty/util/Recycler.java:27: error: package org.jetbrains.annotations does not exist Warning: import org.jetbrains.annotations.VisibleForTesting; Warning: ^ Warning: /home/runner/work/java-driver/java-driver/core-shaded/target/shaded-sources/com/datastax/oss/driver/shaded/netty/util/concurrent/GlobalEventExecutor.java:24: error: package org.jetbrains.annotations.Async does not exist Warning: import org.jetbrains.annotations.Async.Schedule; Warning: ^...
It is followup for: https://github.com/scylladb/java-driver/pull/427 According to https://github.com/scylladb/cassandra-stress/issues/38#issuecomment-2621495909 there is still difference between Shuffled and not shuffled replicas, which made me think that array shuffling operations are very expensive. Solution...