[SERVER-42862] Prevent shard refreshes in mergeChunks command from joining earlier refreshes Created: 16/Aug/19  Updated: 29/Oct/23  Resolved: 19/Aug/19

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 4.3.1, 4.2.6, 4.0.19

Type: Bug Priority: Major - P3
Reporter: James Heppenstall (Inactive) Assignee: James Heppenstall (Inactive)
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:
v4.2, v4.0
Sprint: Sharding 2019-08-26
Participants:
Linked BF Score: 0

 Description   

Set forceRefreshFromThisThread to true in the first calls to forceShardFilteringMetadataRefresh in the mergeChunks command. This prevents any shard refreshes from joining earlier refreshes, which could be stale.



 Comments   
Comment by Githook User [ 08/Apr/20 ]

Author:

{'name': 'Jamie Heppenstall', 'email': 'jamie.heppenstall@mongodb.com', 'username': 'JamesHeppenstall'}

Message: SERVER-42862 Set forceRefreshFromThisThread to true in forceShardFilteringMetadataRefresh in the mergeChunks command

(cherry picked from commit 8e4627ad9eb9b57a63d2893ce5096be773b32742)
Branch: v4.2
https://github.com/mongodb/mongo/commit/f6aa02a52d2ca5926fc142e7c421ce842553b2a5

Comment by Githook User [ 08/Apr/20 ]

Author:

{'name': 'Jamie Heppenstall', 'email': 'jamie.heppenstall@mongodb.com', 'username': 'JamesHeppenstall'}

Message: SERVER-42862 Set forceRefreshFromThisThread to true in forceShardFilteringMetadataRefresh in the mergeChunks command

(cherry picked from commit 8e4627ad9eb9b57a63d2893ce5096be773b32742)
Branch: v4.0
https://github.com/mongodb/mongo/commit/2d731cc96b0d09deaf4fbd20356f7901d4e70c4e

Comment by Githook User [ 19/Aug/19 ]

Author:

{'name': 'Jamie Heppenstall', 'email': 'jamie.heppenstall@mongodb.com', 'username': 'JamesHeppenstall'}

Message: SERVER-42862 Set forceRefreshFromThisThread to true in forceShardFilteringMetadataRefresh in the mergeChunks command
Branch: master
https://github.com/mongodb/mongo/commit/8e4627ad9eb9b57a63d2893ce5096be773b32742

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