Details
-
Bug
-
Resolution: Fixed
-
Critical
-
Cheshire-Cat
-
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
- is a backport of
-
MB-41691 rebalance causes very large number of TIME_WAIT connections
- Closed