Operational Defect Database

BugZero found this defect 20 days ago.

MongoDB | 2656543

_should_wait_for_balancer_round logic is not robust to config server failover

Last update date:

4/29/2024

Affected products:

MongoDB Server

Affected releases:

No affected releases provided.

Fixed releases:

No fixed releases provided.

Description:

Info

The logic relies on checking the numBalancerRounds returned from the balancerStatus command. However, this number is just a in-memory value of the balancer task for that mongod process. This value is not shared across the replica set. For example, if a primary was running for a while, it can have the numRounds as 600, but if it fail overs to another node that is running the balancer for the first time, the counter can be reset to 1. This means that this condition to wait for balancer round to be greater than last known round number can wait for unnecessary number of rounds.

Top User Comments


Steps to Reproduce


Additional Resources / Links

Share:

BugZero® Risk Score

What's this?

Coming soon

Status

Needs Scheduling

Learn More

Search:

...