[SERVER-50898] safe_secondary_reads_causal_consistency.js must wait for effects of _configsvrCommitChunkMigration to be majority-committed snapshot on all CSRS members Created: 11/Sep/20  Updated: 29/Oct/23  Resolved: 18/Sep/20

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 4.8.0, 4.4.17

Type: Task Priority: Major - P3
Reporter: Max Hirschhorn Assignee: Cheahuychou Mao
Resolution: Fixed Votes: 0
Labels: sharding-wfbf-day
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
is related to SERVER-48679 flushRoutingTableCacheUpdates should ... Closed
is related to SERVER-49550 Modify mongos_get_shard_version.js to... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.7, v4.4, v4.2
Sprint: Sharding 2020-09-21, Sharding 2020-10-05
Participants:
Linked BF Score: 0

 Description   

The safe_secondary_reads_causal_consistency.js test waits for the hangBeforePostMigrationCommitRefresh failpoint to be hit on the donor shard. This only ensures the donor shard has run the _configsvrCommitChunkMigration command against the config server primary and doesn't guarantee the effects of the _configsvrCommitChunkMigration command are visible on all CSRS members. The router may refresh from a node other than the CSRS primary and not see the effects of the _configsvrCommitChunkMigration command.

st.configRS.awaitLastOpCommitted();

prior to running the flushRouterConfig command would ensure the mongos0 process fetches the latest version of the routing table and will always attempt to route the _id:2 insert to shard1.



 Comments   
Comment by Githook User [ 05/Aug/22 ]

Author:

{'name': 'Cheahuychou Mao', 'email': 'cheahuychou.mao@mongodb.com', 'username': 'cheahuychou'}

Message: SERVER-50898 safe_secondary_reads_causal_consistency.js must wait for effects of _configsvrCommitChunkMigration to be majority-committed snapshot on all CSRS members

(cherry picked from commit d466890377b3a36206a98b621486d455873c7e66)
Branch: v4.4
https://github.com/mongodb/mongo/commit/e8b7d51f09b189b843b21587057f2a4798585e86

Comment by Githook User [ 18/Sep/20 ]

Author:

{'name': 'Cheahuychou Mao', 'email': 'cheahuychou.mao@mongodb.com', 'username': 'cheahuychou'}

Message: SERVER-50898 safe_secondary_reads_causal_consistency.js must wait for effects of _configsvrCommitChunkMigration to be majority-committed snapshot on all CSRS members
Branch: master
https://github.com/mongodb/mongo/commit/d466890377b3a36206a98b621486d455873c7e66

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