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

Compact() shouldn't trigger import errors

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.6.0
    • Component/s: SyncGateway
    • Security Level: Public
    • Labels:
      None
    • Sprint:
      CBG Sprint 11
    • Story Points:
      8

      Description

      It looks like when we call Compact() and write a "_purged":true doc, this will go through the import process and throw an error about having a _ leading property (because it's one we don't check for. This is pretty much benign, as we bail out at that point, but it would be nice if we didn't complain about it and bailed out a bit earlier.

      Will try and add logs demonstrating this, but because it relies on tombstones and metadata purge, it's a pain to do a clean repro without waiting at least an hour!

        Attachments

        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 -

          Should be able to repro by simulating the compact 'create/delete' process without needing to wait an hour, and make the fix to avoid import noise in that case.  

          Show
          adamf Adam Fraser added a comment - Should be able to repro by simulating the compact 'create/delete' process without needing to wait an hour, and make the fix to avoid import noise in that case.  
          Hide
          build-team Couchbase Build Team added a comment -

          Build sync_gateway-2.6.0-2 contains sync_gateway commit 280120a with commit message:
          CBG-189: Import not attempted on purged document (#3951)

          Show
          build-team Couchbase Build Team added a comment - Build sync_gateway-2.6.0-2 contains sync_gateway commit 280120a with commit message: CBG-189 : Import not attempted on purged document (#3951)
          Hide
          build-team Couchbase Build Team added a comment -

          Build sync_gateway-2.6.0-2 contains sync_gateway commit 280120a with commit message:
          CBG-189: Import not attempted on purged document (#3951)

          Show
          build-team Couchbase Build Team added a comment - Build sync_gateway-2.6.0-2 contains sync_gateway commit 280120a with commit message: CBG-189 : Import not attempted on purged document (#3951)

            People

            • Assignee:
              jacques.rascagneres Jacques Rascagneres
              Reporter:
              James Flather James Flather
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.