[SERVER-85690] Wait for stepdown to finish before continuing index build in index_build_unregisters_after_stepdown.js Created: 24/Jan/24  Updated: 26/Jan/24  Resolved: 26/Jan/24

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 8.0.0-rc0

Type: Bug Priority: Major - P3
Reporter: Shin Yee Tan Assignee: Shin Yee Tan
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.3, v7.2, v7.0
Sprint: Execution Team 2024-02-05
Participants:
Linked BF Score: 5

 Description   

In index_build_unregisters_after_stepdown.js, we force a stepdown and quickly attempt to run createIndex after. If the shell has not been updated with the new topology info with the new primary, we may run into a "NotWritablePrimary" error.



 Comments   
Comment by Githook User [ 26/Jan/24 ]

Author:

{'name': 'Shin Yee Tan', 'email': 'shinyee.tan@mongodb.com', 'username': 'shinyeet'}

Message: SERVER-85690 Add awaitNodesAgreeOnPrimary after stepdown in index_build_unregisters_after_stepdown.js (#18362)

GitOrigin-RevId: 91a00c70f933cef33d3a5db91dc91c10a67a5ab8
Branch: master
https://github.com/mongodb/mongo/commit/fb1126daf7f4af45a7c73dc2358fca76953d4188

Generated at Thu Feb 08 06:58:22 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.