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

[BP MB-41691] - rebalance causes very large number of TIME_WAIT connections

    XMLWordPrintable

Details

    • Untriaged
    • 1
    • No

    Description

      Index rebalance can result in very large number of TIME_WAIT connections. There is a bug in waitForIndexBuild routine which causes it not to terminate at the end of the batch. Rather, it remains active till the end of rebalance. Due to the bug, it reaches a state where it will be in a for loop collection stats/status till next batch or end of rebalance. Each such collection creates new http.Client object which will lead to TIME_WAIT connections when freed by golang GC.

      This can lead to rebalance failure with following error:

      dial tcp 127.0.0.1:9102: connect: cannot assign requested address
      

      Attachments

        Issue Links

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

          Activity

            People

              deepkaran.salooja Deepkaran Salooja
              jeelan.poola Jeelan Poola
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty