[SERVER-12908] balancer aggressively retries when inconsistency is detected Created: 26/Feb/14  Updated: 11/Jul/16  Resolved: 03/Mar/14

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 2.4.10, 2.6.0-rc1

Type: Bug Priority: Major - P3
Reporter: Greg Studer Assignee: Greg Studer
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   
Issue Status as of March 28, 2014

ISSUE SUMMARY
MongoDB contains logic to automatically detect inconsistencies between config servers. If an inconsistency is detected during a balancer round, the usual sleep time is skipped and the balancer immediately retries. This leads to fast balancer retries which always fail.

USER IMPACT
Apart from frequent queries on the config database and potentially high volume of logging messages, there is no serious impact of this bug.

SOLUTION
The balancer now honors the sleep time even if it detects a config server inconsistency.

WORKAROUNDS
None

AFFECTED VERSIONS
Versions 2.4.6 to 2.4.9 are affected by this bug. Before 2.4.6, the balancer did not check for config server inconsistency.

PATCHES
The fix is included in the 2.4.10 production release and the 2.6.0-rc1 release candidate, which will evolve into the 2.6.0 production release.

Original Description

Non-regression, but pretty annoying.

Basically if isConfigServerConsistent() is ever false in the balancer loop, we'll immediately retry instead of sleeping the normal "sleepTime". This leads to fast balancer retries which always fail.



 Comments   
Comment by Githook User [ 10/Mar/14 ]

Author:

{u'username': u'gregstuder', u'name': u'Greg Studer', u'email': u'greg@10gen.com'}

Message: SERVER-12908 don't aggressively retry when config inconsistency detected in balancer
Branch: v2.4
https://github.com/mongodb/mongo/commit/14e868877c82d3b01544187516245631faaf458e

Comment by Githook User [ 03/Mar/14 ]

Author:

{u'username': u'gregstuder', u'name': u'Greg Studer', u'email': u'greg@10gen.com'}

Message: SERVER-12908 don't aggressively retry when config inconsistency detected in balancer
Branch: master
https://github.com/mongodb/mongo/commit/1ffdd358b9fa048794a09bbc644f6043dde15eeb

Generated at Thu Feb 08 03:30:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.