Uploaded image for project: 'Java Couchbase JVM Core'
  1. Java Couchbase JVM Core
  2. JVMCBC-1426

RangeScanCreate / KeyValueMessageHandler does not retry server busy

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.5.0
    • 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;
          }
        }
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            david.nault David Nault
            michael.reiche Michael Reiche
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty