Commit eac7b24
JAVA-3055: Prevent PreparedStatement cache to be polluted if a request is cancelled.
There was a critical issue when the external code cancels a request, indeed the cached CompletableFuture will then always throw a CancellationException.
This may happens, for example, when used by reactive like Mono.zip or Mono.firstWithValue.
patch by Luc Boutier; reviewed by Alexandre Dutra and Bret McGuire
reference: #17571 parent 04d34a8 commit eac7b24
File tree
1 file changed
+3
-1
lines changed- core/src/main/java/com/datastax/oss/driver/internal/core/cql
1 file changed
+3
-1
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
163 | 165 | | |
164 | 166 | | |
165 | 167 | | |
| |||
0 commit comments