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

Explicitly close DCP streams after abrupt rebalance termination

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.1.4, 4.1.1
    • 3.1.3
    • ns_server
    • Security Level: Public
    • None
    • Untriaged
    • Unknown

    Description

      When rebalance abruptly terminates ns_server closes the connection on DCP consumer replication streams and lets KV engine close the streams when it figures out that the connection is closed, as opposed to closing each stream in the connection explicitly. ns_server then opens these streams again – which is racy in KV engine as it may take some time for the connection close to get picked up.

      Rather ns_server should explicitly close the streams in the situation of an abruptly terminated rebalance. This is equivalent to simply closing the connection but has the positive side effect of removing raciness and reducing the probability of any problem in KV Engine.

      Attachments

        Issue Links

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

          Activity

            People

              ritam.sharma Ritam Sharma
              dfinlay Dave Finlay
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty