Skip to content

Commit 11cbae3

Browse files
committed
Merge branch '4.11.x' into 4.12.x
2 parents a92bc7d + 4da0ccb commit 11cbae3

File tree

49 files changed

+428
-201
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+428
-201
lines changed

changelog/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
<!-- Note: contrary to 3.x, insert new entries *first* in their section -->
44

5+
### 4.12.1 (in progress)
6+
7+
Merged from 4.11.x:
8+
9+
- [bug] JAVA-2949: Provide mapper support for CompletionStage<Stream<T>>
10+
- [bug] JAVA-2950: Remove reference to Reflection class from DependencyCheck
11+
512
### 4.12.0
613

714
- [improvement] JAVA-2935: Make GetEntity and SetEntity methods resilient to incomplete data
@@ -18,6 +25,11 @@ Merged from 4.11.x:
1825
- [bug] JAVA-2943: Prevent session leak with wrong keyspace name
1926
- [bug] JAVA-2938: OverloadedException message is misleading
2027

28+
### 4.11.3 (in progress)
29+
30+
- [bug] JAVA-2949: Provide mapper support for CompletionStage<Stream<T>>
31+
- [bug] JAVA-2950: Remove reference to Reflection class from DependencyCheck
32+
2133
### 4.11.2
2234

2335
- [bug] JAVA-2932: Make DefaultDriverConfigLoader.close() resilient to terminated executors

core/src/main/java/com/datastax/dse/driver/internal/core/type/codec/DseTypeCodecsRegistrar.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@
1515
*/
1616
package com.datastax.dse.driver.internal.core.type.codec;
1717

18+
import static com.datastax.oss.driver.internal.core.util.Dependency.ESRI;
19+
1820
import com.datastax.dse.driver.api.core.type.codec.DseTypeCodecs;
1921
import com.datastax.oss.driver.api.core.type.codec.registry.MutableCodecRegistry;
20-
import com.datastax.oss.driver.internal.core.util.DependencyCheck;
22+
import com.datastax.oss.driver.internal.core.util.DefaultDependencyChecker;
2123
import org.slf4j.Logger;
2224
import org.slf4j.LoggerFactory;
2325

@@ -27,7 +29,7 @@ public class DseTypeCodecsRegistrar {
2729

2830
public static void registerDseCodecs(MutableCodecRegistry registry) {
2931
registry.register(DseTypeCodecs.DATE_RANGE);
30-
if (DependencyCheck.ESRI.isPresent()) {
32+
if (DefaultDependencyChecker.isPresent(ESRI)) {
3133
registry.register(DseTypeCodecs.LINE_STRING, DseTypeCodecs.POINT, DseTypeCodecs.POLYGON);
3234
} else {
3335
LOG.debug("ESRI was not found on the classpath: geo codecs will not be available");

core/src/main/java/com/datastax/dse/driver/internal/core/type/codec/DseTypeCodecsRegistrarSubstitutions.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@
1515
*/
1616
package com.datastax.dse.driver.internal.core.type.codec;
1717

18+
import static com.datastax.oss.driver.internal.core.util.Dependency.ESRI;
19+
1820
import com.datastax.dse.driver.api.core.type.codec.DseTypeCodecs;
1921
import com.datastax.oss.driver.api.core.type.codec.registry.MutableCodecRegistry;
20-
import com.datastax.oss.driver.internal.core.util.DependencyCheck;
22+
import com.datastax.oss.driver.internal.core.util.GraalDependencyChecker;
2123
import com.oracle.svm.core.annotate.Substitute;
2224
import com.oracle.svm.core.annotate.TargetClass;
2325
import java.util.function.BooleanSupplier;
@@ -37,7 +39,7 @@ public static void registerDseCodecs(MutableCodecRegistry registry) {
3739
public static class EsriMissing implements BooleanSupplier {
3840
@Override
3941
public boolean getAsBoolean() {
40-
return !DependencyCheck.ESRI.isPresent();
42+
return !GraalDependencyChecker.isPresent(ESRI);
4143
}
4244
}
4345
}

core/src/main/java/com/datastax/oss/driver/api/core/connection/HeartbeatException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
*
2929
* <p>Heartbeat queries are sent automatically on idle connections, to ensure that they are still
3030
* alive. If a heartbeat query fails, the connection is closed, and all pending queries are aborted.
31-
* The exception will be passed to {@link RetryPolicy#onRequestAborted(Request, Throwable, int)},
32-
* which decides what to do next (the default policy retries the query on the next node).
31+
* The exception will be passed to {@link RetryPolicy#onRequestAbortedVerdict(Request, Throwable,
32+
* int)}, which decides what to do next (the default policy retries the query on the next node).
3333
*/
3434
public class HeartbeatException extends DriverException {
3535

core/src/main/java/com/datastax/oss/driver/api/core/servererrors/ReadFailureException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* <p>This happens when some of the replicas that were contacted by the coordinator replied with an
3434
* error.
3535
*
36-
* <p>This exception is processed by {@link RetryPolicy#onErrorResponse(Request,
36+
* <p>This exception is processed by {@link RetryPolicy#onErrorResponseVerdict(Request,
3737
* CoordinatorException, int)}, which will decide if it is rethrown directly to the client or if the
3838
* request should be retried. If all other tried nodes also fail, this exception will appear in the
3939
* {@link AllNodesFailedException} thrown to the client.

core/src/main/java/com/datastax/oss/driver/api/core/servererrors/ReadTimeoutException.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
/**
2828
* A server-side timeout during a read query.
2929
*
30-
* <p>This exception is processed by {@link RetryPolicy#onReadTimeout(Request, ConsistencyLevel,
31-
* int, int, boolean, int)}, which will decide if it is rethrown directly to the client or if the
32-
* request should be retried. If all other tried nodes also fail, this exception will appear in the
33-
* {@link AllNodesFailedException} thrown to the client.
30+
* <p>This exception is processed by {@link RetryPolicy#onReadTimeoutVerdict(Request,
31+
* ConsistencyLevel, int, int, boolean, int)}, which will decide if it is rethrown directly to the
32+
* client or if the request should be retried. If all other tried nodes also fail, this exception
33+
* will appear in the {@link AllNodesFailedException} thrown to the client.
3434
*/
3535
public class ReadTimeoutException extends QueryConsistencyException {
3636

core/src/main/java/com/datastax/oss/driver/api/core/servererrors/ServerError.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*
3030
* <p>This should be considered as a server bug and reported as such.
3131
*
32-
* <p>This exception is processed by {@link RetryPolicy#onErrorResponse(Request,
32+
* <p>This exception is processed by {@link RetryPolicy#onErrorResponseVerdict(Request,
3333
* CoordinatorException, int)}, which will decide if it is rethrown directly to the client or if the
3434
* request should be retried. If all other tried nodes also fail, this exception will appear in the
3535
* {@link AllNodesFailedException} thrown to the client.

core/src/main/java/com/datastax/oss/driver/api/core/servererrors/TruncateException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
/**
2828
* An error during a truncation operation.
2929
*
30-
* <p>This exception is processed by {@link RetryPolicy#onErrorResponse(Request,
30+
* <p>This exception is processed by {@link RetryPolicy#onErrorResponseVerdict(Request,
3131
* CoordinatorException, int)}, which will decide if it is rethrown directly to the client or if the
3232
* request should be retried. If all other tried nodes also fail, this exception will appear in the
3333
* {@link AllNodesFailedException} thrown to the client.

core/src/main/java/com/datastax/oss/driver/api/core/servererrors/UnavailableException.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
* Thrown when the coordinator knows there is not enough replicas alive to perform a query with the
2929
* requested consistency level.
3030
*
31-
* <p>This exception is processed by {@link RetryPolicy#onUnavailable(Request, ConsistencyLevel,
32-
* int, int, int)}, which will decide if it is rethrown directly to the client or if the request
33-
* should be retried. If all other tried nodes also fail, this exception will appear in the {@link
34-
* AllNodesFailedException} thrown to the client.
31+
* <p>This exception is processed by {@link RetryPolicy#onUnavailableVerdict(Request,
32+
* ConsistencyLevel, int, int, int)}, which will decide if it is rethrown directly to the client or
33+
* if the request should be retried. If all other tried nodes also fail, this exception will appear
34+
* in the {@link AllNodesFailedException} thrown to the client.
3535
*/
3636
public class UnavailableException extends QueryExecutionException {
3737
private final ConsistencyLevel consistencyLevel;

core/src/main/java/com/datastax/oss/driver/api/core/servererrors/WriteFailureException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* <p>This happens when some of the replicas that were contacted by the coordinator replied with an
3434
* error.
3535
*
36-
* <p>This exception is processed by {@link RetryPolicy#onErrorResponse(Request,
36+
* <p>This exception is processed by {@link RetryPolicy#onErrorResponseVerdict(Request,
3737
* CoordinatorException, int)}, which will decide if it is rethrown directly to the client or if the
3838
* request should be retried. If all other tried nodes also fail, this exception will appear in the
3939
* {@link AllNodesFailedException} thrown to the client.

0 commit comments

Comments
 (0)