[SERVER-56976] 'setIndexCommitQuorum' command has no effect while the index build is waiting for the commit quorum to be satisfied Created: 14/May/21  Updated: 29/Oct/23  Resolved: 20/May/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 5.0.0, 4.4.6
Fix Version/s: 4.4.7, 5.0.0-rc0, 5.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Gregory Wlodarek Assignee: Gregory Wlodarek
Resolution: Fixed Votes: 0
Labels: post-rc0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.0, v4.4
Sprint: Execution Team 2021-05-31
Participants:

 Description   

There was an issue that came from the field, where the rolling index build procedure was incomplete. This led to one of the secondaries having the index finished, but none of the other nodes had this index.

Eventually, the same index build was started on the primary. But because the commit quorum default is votingMembers, which is all data-bearing replica set members, the index build was not able to satisfy the commit quorum. This is because the secondary that already had the index built, treated the startIndexBuild oplog entry as a noop.

In an attempt to get out of this situation, the setIndexCommitQuorum command was used to make the commit quorum satisfactory again. However, it turns out when the index build is already waiting for votes from the other nodes, it doesn't see the change by the setIndexCommitQuorum command. This would also be problematic for normal index build operations that use this command and is not limited to this specific issue.



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 22/May/21 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-56976 'setIndexCommitQuorum' command has no effect while the index build is waiting for the commit quorum to be satisfied

(cherry picked from commit a05828b76b27b5198ca2917ba5f979458c084358)
Branch: v4.4
https://github.com/mongodb/mongo/commit/22038af2c5e4be12ad86357b01db198af3171767

Comment by Githook User [ 21/May/21 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-56976 'setIndexCommitQuorum' command has no effect while the index build is waiting for the commit quorum to be satisfied

(cherry picked from commit a05828b76b27b5198ca2917ba5f979458c084358)
Branch: v5.0
https://github.com/mongodb/mongo/commit/37467e874b3cde1831ee625c2f0657eb4a451fd0

Comment by Githook User [ 20/May/21 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-56976 'setIndexCommitQuorum' command has no effect while the index build is waiting for the commit quorum to be satisfied
Branch: master
https://github.com/mongodb/mongo/commit/a05828b76b27b5198ca2917ba5f979458c084358

Generated at Thu Feb 08 05:40:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.