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

changes_left does not go to 0 in collection migration with OSO mode

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • Morpheus
    • 7.0.0, 7.0.1, 7.0.2, 7.0.3, 7.0.4, 7.1.4, 7.0.5, 7.1.0, 7.1.1, 7.1.2, 7.1.3
    • XDCR
    • None
    • Untriaged
    • 0
    • Unknown

    Description

      This can be reproduced by running 5a_multi_target_migration_tc.shlib. If we turn off OSO, changes_left will go to 0.

      In ThroughSeqnoTracker, there are multiple DualSortedSeqnoListWithLock used that assume seqnos are sorted. In OSO mode, that's no longer the case. That causes list search to fail to find results. Here is one example:

      https://github.com/couchbase/goxdcr/blob/cc2da8364000df680ca476fb765ba334425f8ada/service_impl/through_seqno_tracker_service.go#L1707

      where searching seqno 7 in the list [7, 2] will fail to find its index.

      Attachments

        Issue Links

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

          Activity

            People

              ashokkumar.alluri Ashok Alluri
              lilei.chen Lilei Chen (Inactive)
              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