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

Unused bulk_docs reserved sequences may not be released

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Unresolved
    • None
    • 2.6.0
    • SyncGateway
    • Security Level: Public
    • None
    • CBG Sprint 15, CBG Sprint 16, CBG Sprint 19
    • 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

            adamf Adam Fraser added a comment -

            Will be addressed by new sequence allocation process.

            adamf Adam Fraser added a comment - Will be addressed by new sequence allocation process.
            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.

            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

              adamf Adam Fraser
              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