[SERVER-51773] list_indexes_with_build_uuids.js - IndexBuildTest.assertIndexes() sees different server state from IndexBuildTest.getIndexBuildOpId() Created: 20/Oct/20  Updated: 29/Oct/23  Resolved: 23/Oct/20

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.9.0

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

Issue Links:
Depends
Related
is related to SERVER-51703 index_secondary_wait_for_commit.js - ... Closed
is related to SERVER-51792 index_failover_key_errors.js and inde... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2020-11-02
Participants:
Linked BF Score: 23

 Description   

The listIndexes command in list_indexes_with_build_uuids.js is run on the secondary after checking the db.currentOp() output. However, this command may read the catalog state before the secondary has completed applying the batch of oplog entries containing the startIndexBuild command. This will lead to the test not detecting the in-progress index build.



 Comments   
Comment by Githook User [ 22/Oct/20 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-51773 list_indexes_with_build_uuids.js waits for replication before calling listIndexes
Branch: master
https://github.com/mongodb/mongo/commit/6108ecd5a88eec78050934bbef55059faea92477

Comment by Githook User [ 21/Oct/20 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-51773 add listIndexes command result to assertion message
Branch: master
https://github.com/mongodb/mongo/commit/b32db3a43ac2dadf3c05d522c9c7b243aa0851aa

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