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

XDCR - changes_left stats could become negative during rebalancing

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 7.1.0
    • 7.1.0
    • XDCR
    • None
    • Untriaged
    • 1
    • Yes

    Description

      Note - this only applies to the Neo branch due to MB-45983 improvement

      Before the MB-45983 improvement, statsMgr itself would have memcached clients to grab the Vb -> high seqno map. This means that once a pipeline is created, its list of VBs to calculate total_changes and docs_processed are static.

      However, with MB-45983, statsMgr is now a subscriber to bucket topology service and as VBs are moved out during rebalancing, it is now possible for total_changes to be < than docs_processed (since docs_processed is static per pipeline).

      The fix here is to take an intercept such that only the VBs that this node owns will be considered for calculating docs_processed as well as total_changes, and so that the stats will remain either 0 or positive.

      Attachments

        Issue Links

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

          Activity

            People

              pavithra.mahamani Pavithra Mahamani (Inactive)
              neil.huang Neil Huang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty