Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-29512

ActiveStream's initial backfill does not respect the purge-seqno

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 4.6.4, 5.0.1, 5.1.1, 5.5.0
    • Fix Version/s: 5.5.0
    • Component/s: couchbase-bucket
    • Labels:
    • Triage:
      Untriaged
    • Is this a Regression?:
      Unknown

      Description

      When a stream is first requested, the rollback logic checks if the start-seqno is below the purge-seqno, however by the time the backfill is actually scheduled to run, the purge-seqno could of changed (i.e. compaction finished).

      • streamRequest - compare startSeqno against vb->getPurgeSeqno(), stream is OK and backfill is scheduled
      • compaction finishes and sets purgeSeqno to be > than startSeqno
      • backfill runs and is started from the requested point and may miss deletions which have been purged

        Attachments

          Issue Links

          For Gerrit Dashboard: MB-29512
          # Subject Branch Project Status CR V

            Activity

            Hide
            build-team Couchbase Build Team added a comment -

            Build couchbase-server-5.5.0-2685 contains kv_engine commit de9e025dc2978997769e456f4c78fe30feb60206 with commit message:
            MB-29480, MB-29512: Fail backfills that go below purge-seqno
            https://github.com/couchbase/kv_engine/commit/de9e025dc2978997769e456f4c78fe30feb60206

            Show
            build-team Couchbase Build Team added a comment - Build couchbase-server-5.5.0-2685 contains kv_engine commit de9e025dc2978997769e456f4c78fe30feb60206 with commit message: MB-29480 , MB-29512 : Fail backfills that go below purge-seqno https://github.com/couchbase/kv_engine/commit/de9e025dc2978997769e456f4c78fe30feb60206
            Hide
            build-team Couchbase Build Team added a comment -

            Build couchbase-server-6.0.0-1110 contains kv_engine commit de9e025dc2978997769e456f4c78fe30feb60206 with commit message:
            MB-29480, MB-29512: Fail backfills that go below purge-seqno
            https://github.com/couchbase/kv_engine/commit/de9e025dc2978997769e456f4c78fe30feb60206

            Show
            build-team Couchbase Build Team added a comment - Build couchbase-server-6.0.0-1110 contains kv_engine commit de9e025dc2978997769e456f4c78fe30feb60206 with commit message: MB-29480 , MB-29512 : Fail backfills that go below purge-seqno https://github.com/couchbase/kv_engine/commit/de9e025dc2978997769e456f4c78fe30feb60206

              People

              • Assignee:
                jwalker Jim Walker
                Reporter:
                jwalker Jim Walker
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes

                    PagerDuty

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