Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
-
None
-
1
-
SDK46
Description
Suggested Release Note:
When Couchbase Server is too busy to start a new KV range scan, the SDK now retries instead of throwing a `CouchbaseException`.
RangeScanOrcherstrator - should trigger a RangeScanForPartitionFailedException.
- or -
KeyValueMessageHandler : could also retry SERVER_BUSY.
private RetryReason statusCodeIndicatesRetry(final ResponseStatus status, final Request<?> request) { |
switch (status) { |
case LOCKED: |
return request instanceof UnlockRequest ? null : RetryReason.KV_LOCKED; |
case TEMPORARY_FAILURE: |
return RetryReason.KV_TEMPORARY_FAILURE; |
case SYNC_WRITE_IN_PROGRESS: |
return RetryReason.KV_SYNC_WRITE_IN_PROGRESS; |
case SYNC_WRITE_RE_COMMIT_IN_PROGRESS: |
return RetryReason.KV_SYNC_WRITE_RE_COMMIT_IN_PROGRESS; |
default: |
return null; |
}
|
}
|