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

Retrieve existing doc metadata prior to calling downloadOrVerifyAttachments

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.0
    • SyncGateway
    • Security Level: Public
    • None
    • CBG Sprint 82
    • 5

    Description

      Retrieving the existing document metadata prior to calling downloadOrVerifyAttachments fixes two issues:

      Inability to identify whether the oldest entry in the provided history is a common ancestor or a new revision to Sync Gateway, which adds uncertainty to the revpos calculation, resulting in unnecessary proveAttachment calls in some scenarios.  Those scenarios only result in an additional proveAttachment call in the v1 case, but would result in an additional getAttachment in the v2 case.

      This can also be used to identify cases where multiple instances of the same attachment are being added to a document.

       

       

       

       

      Attachments

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

        Activity

          Build sync_gateway-3.0.0-419 contains sync_gateway commit 160339f with commit message:
          CBG-1590: Retrieve existing doc metadata prior to calling downloadOrVerifyAttachments (#5250)

          build-team Couchbase Build Team added a comment - Build sync_gateway-3.0.0-419 contains sync_gateway commit 160339f with commit message: CBG-1590 : Retrieve existing doc metadata prior to calling downloadOrVerifyAttachments (#5250)

          People

            jacques.rascagneres Jacques Rascagneres
            adamf Adam Fraser
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty