Elffuss BraidHub

kikocis/java-driver public

Fixed DowngradingConsistencyRetryPolicy (JAVA-737 follow-up)
Changeseta8fd72b9ccb65cd3a78e0c19db8ee24d9d81da4ce851969b7c0845c1dedcdf52
AuthorKevin Gallardo <kevin.gallardo@datastax.com> · 2015-06-24 10:38 +01:00
CommitterKevin Gallardo <kevin.gallardo@datastax.com> · 2015-06-24 10:38 +01:00
Parents44de4c82067d

Browse the files at this changeset

1 file changed

modified driver-core/src/main/java/com/datastax/driver/core/policies/DowngradingConsistencyRetryPolicy.java +1 −1
@@ -156,7 +156,7 @@
156156 case SIMPLE:
157157 case BATCH:
158158 // Since we provide atomicity there is no point in retrying
159- return requiredAcks > 0 ? RetryDecision.ignore() : RetryDecision.rethrow();
159+ return receivedAcks > 0 ? RetryDecision.ignore() : RetryDecision.rethrow();
160160 case UNLOGGED_BATCH:
161161 // Since only part of the batch could have been persisted,
162162 // retry with whatever consistency should allow to persist all