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

num_rollbacks_to_zero stats not changing for the rollback to zero

    XMLWordPrintable

Details

    • Untriaged
    • 1
    • Yes

    Description

      num_rollbacks_to_zero stats is not changing when flushing the bucket,

       

      2021-07-27T23:11:44.081-07:00 [Info] Indexer::startKeyspaceIdStream Success Stream MAINT_STREAM KeyspaceId beer-sample Cid  SessionId 2
      2021-07-27T23:11:44.081-07:00 [Info] Indexer::handleRecoveryDone StreamId MAINT_STREAM KeyspaceId beer-sample SessionId 2
      2021-07-27T23:11:44.081-07:00 [Info] Timekeeper::handleRecoveryDone StreamId MAINT_STREAM KeyspaceId beer-sample
      2021-07-27T23:11:44.081-07:00 [Info] Timekeeper::resetWaitForRecovery Stream MAINT_STREAM KeyspaceId beer-sample
      2021-07-27T23:11:44.081-07:00 [Info] Timekeeper::handleRecoveryDone MAINT_STREAM beer-sample. Received nil mergeTs. Considering it as rollback to 0
      2021-07-27T23:11:44.081-07:00 [Info] Timekeeper::handleRecoveryDone Call RepairStream to check for vbucket for repair. StreamId MAINT_STREAM keyspaceId beer-sample
      2021-07-27T23:11:44.081-07:00 [Info] Timekeeper::handleRecoveryDone Call RepairMissingStreamBegin to check for vbucket for repair. StreamId MAINT_STREAM keyspaceId beer-sample
       
       
      lfc@Hemants-MacBook-Pro testrunner % curl -X GET -u 'Administrator:password' 'http://10.112.190.101:9102/stats' 2>/dev/null | jq | grep num_rollbacks 
        "MAINT_STREAM:beer-sample:num_rollbacks": 0,
        "MAINT_STREAM:beer-sample:num_rollbacks_to_zero": 0,
      

      Attachments

        Issue Links

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

          Activity

            Varun Velamuri and Jeelan Poola, this bug was introduced in 7.0.0. It is really helpful to have it fixed in 7.0.1 as this is a regression and second we rely on this stat for validation in many of our recovery test.

            hemant.rajput Hemant Rajput added a comment - Varun Velamuri  and Jeelan Poola , this bug was introduced in 7.0.0. It is really helpful to have it fixed in 7.0.1 as this is a regression and second we rely on this stat for validation in many of our recovery test.

            Mihir Kamdar Adding this to 7.0.1 list as this seems to affect recovery tests as described by Hemanth above. Thank you!

            jeelan.poola Jeelan Poola added a comment - Mihir Kamdar Adding this to 7.0.1 list as this seems to affect recovery tests as described by Hemanth above. Thank you!

            Hi Jeelan Poola lets take it in 7.0.1

            mihir.kamdar Mihir Kamdar (Inactive) added a comment - Hi Jeelan Poola lets take it in 7.0.1

            Hemant Rajput, Fix is merged to master. The next Neo build should contain the fix.

            varun.velamuri Varun Velamuri added a comment - Hemant Rajput , Fix is merged to master. The next Neo build should contain the fix.

            Build couchbase-server-7.1.0-1124 contains indexing commit 5409998 with commit message:
            MB-47622 Do not remove keyspace stats during recovery

            build-team Couchbase Build Team added a comment - Build couchbase-server-7.1.0-1124 contains indexing commit 5409998 with commit message: MB-47622 Do not remove keyspace stats during recovery

            Validated on 7.1.0-1986

             

            lfc@LFCs-MacBook-Pro testrunner % curl -X GET -u 'Administrator:password' 'http://10.112.205.101:9102/stats' 2>/dev/null | jq | grep num_rollbacks 
              "MAINT_STREAM:test:num_rollbacks": 0,
              "MAINT_STREAM:test:num_rollbacks_to_zero": 0,
             
            Flush the bucket
             
            lfc@LFCs-MacBook-Pro testrunner % curl -X GET -u 'Administrator:password' 'http://10.112.205.101:9102/stats' 2>/dev/null | jq | grep num_rollbacks 
              "MAINT_STREAM:test:num_rollbacks": 1,
              "MAINT_STREAM:test:num_rollbacks_to_zero": 0,
            lfc@LFCs-MacBook-Pro testrunner % 

            hemant.rajput Hemant Rajput added a comment - Validated on 7.1.0-1986   lfc@LFCs-MacBook-Pro testrunner % curl -X GET -u 'Administrator:password' 'http://10.112.205.101:9102/stats' 2>/dev/null | jq | grep num_rollbacks    "MAINT_STREAM:test:num_rollbacks": 0,   "MAINT_STREAM:test:num_rollbacks_to_zero": 0,   Flush the bucket   lfc@LFCs-MacBook-Pro testrunner % curl -X GET -u 'Administrator:password' 'http://10.112.205.101:9102/stats' 2>/dev/null | jq | grep num_rollbacks    "MAINT_STREAM:test:num_rollbacks": 1,   "MAINT_STREAM:test:num_rollbacks_to_zero": 0, lfc@LFCs-MacBook-Pro testrunner % 

            People

              hemant.rajput Hemant Rajput
              hemant.rajput Hemant Rajput
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty