[SERVER-8072] Migrations calculate majority incorrectly when waiting for writes to replicate Created: 03/Jan/13  Updated: 06/May/13  Resolved: 03/Jan/13

Status: Closed
Project: Core Server
Component/s: Replication, Sharding
Affects Version/s: 2.2.2
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Spencer Brody (Inactive) Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-5351 migrations should use better slave co... Closed
Operating System: ALL
Participants:

 Description   

During migrations we wait for writes to be replicated to a majority of nodes. To figure out how many nodes are in a majority we call getSlaveCount() (and divide it by 2 and add 1). The number reported by getSlaveCount(), however, may include old nodes that are no longer part of the set (or are now known by a different identifier). This could potentially cause us to wait for more nodes than exist - meaning that we will never acknowledge the writes as replicated.


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