Uploaded image for project: 'Couchbase Gateway'
  1. Couchbase Gateway
  2. CBG-253

Unused bulk_docs reserved sequences may not be released

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 2.6.0
    • Component/s: SyncGateway
    • Security Level: Public
    • Labels:
      None
    • Sprint:
      CBG Sprint 15, CBG Sprint 16, CBG Sprint 19
    • Story Points:
      5

      Description

      1.x push replications (using _bulk_docs) reserve blocks of sequences in order to reduce the number of incr operations being performed.  

      If a document included in the bulk_docs batch fails before a sequence is allocated (most commonly due to Sync Function rejection, but potentially a few additional corner cases associated with invalid data), the sequence is not released, and won't be used until the next document write.

      When a SG node is under low load, this can result in the sequence being abandoned after CacheSkippedSeqMaxWait, but subsequently allocated by the node on the next write.  This may result in the document not being replicated until the document is next updated.

        Attachments

          Issue Links

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

            Activity

            Hide
            adamf Adam Fraser added a comment -

            Will be addressed by new sequence allocation process.

            Show
            adamf Adam Fraser added a comment - Will be addressed by new sequence allocation process.
            Hide
            adamf Adam Fraser added a comment - - edited

            James Flather Sorry, missed this question earlier - yes, this has always been the behaviour.  Removed the affects version as it was misleading.

            Show
            adamf Adam Fraser added a comment - - edited James Flather  Sorry, missed this question earlier - yes, this has always been the behaviour.  Removed the affects version as it was misleading.

              People

              Assignee:
              adamf Adam Fraser
              Reporter:
              adamf Adam Fraser
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes

                    PagerDuty