[SERVER-51703] index_secondary_wait_for_commit.js - IndexBuildTest.assertIndexes() sees different server state from IndexBuildTest.getIndexBuildOpId() Created: 16/Oct/20  Updated: 29/Oct/23  Resolved: 21/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
related to SERVER-51773 list_indexes_with_build_uuids.js - I... Closed
is related to SERVER-51792 index_failover_key_errors.js and inde... Closed
is related to SERVER-47866 Secondary readers do not need to reac... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2020-11-02
Participants:
Linked BF Score: 21

 Description   

Most tests for index builds, such as index_secondary_wait_for_commit.js use the index_build.js test helper to detect the presence of index builds in the server. We have observed instances where IndexBuildTest.assertIndexes() fails to detect index builds (mostly like because of the operation time used for the read) that were detected by IndexBuildTest.getIndexBuildOpId(), which provides an explicit local read concern to the aggregation command.



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

Author:

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

Message: SERVER-51703 index_secondary_wait_for_commit.js waits for replication before calling listIndexes
Branch: master
https://github.com/mongodb/mongo/commit/4219b4d7be92d6f9a512bba9c0d8c91eb52f54e3

Comment by Benety Goh [ 16/Oct/20 ]

The replication wait suggested in this ticket will also help stabilize the test due to recent changes around secondary reads in SERVER-47866.

Comment by Benety Goh [ 16/Oct/20 ]

This ticket was motivated by a failure in index_secondary_wait_for_commit.js in our CI system. One possible solution that addresses the test failure directly is to await replication before calling IndexBuildTest.assertIndexes().

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