[SERVER-44830] Modify StaleConfigException handlers to handle a single shard invalidation. Created: 25/Nov/19  Updated: 29/Oct/23  Resolved: 08/Jan/20

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 4.3.3

Type: Task Priority: Major - P3
Reporter: Blake Oler Assignee: Blake Oler
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Sharding 2020-01-13
Participants:

 Description   

Places where onStaleShardVersion is currently called:

  • mongos_process_interface.cpp
  • version_manager.cpp – no exception, but shard ID
  • cluster_map_reduce.cpp – no exception, but shard ID
  • cluster_merge_chunks_cmd.cpp – no exception, but shard ID
  • cluster_split_cmd.cpp – no exception, but shard ID
  • cluster_move_chunk_cmd.cpp – no exception, but shard ID
  • cluster_split_cmd.cpp – no exception, but shard ID
  • cluster_find.cpp – exception available
  • chunk_manager_targeter.cpp – exception available, but need to pipe through to level of onStaleShardVersion

Places where invalidateShardedCollection is currently called that should be changed to onStaleShardVersion:

  • strategy.cpp::runCommand – exception is available
  • parallel.cpp – exception is available
  • strategy.cpp::explainFind – exception is available

Places where invalidateShardedCollection is currently called that should be changed to onEpochChange:

  • configsvr_drop_collection_command.cpp – we are changing the epoch
  • cluster_drop_cmd.cpp – nothing available, but we're changing the epoch... hmm
  • cluster_map_reduce.cpp – nothing, but we're changing the epoch
  • cluster_shard_collection.cpp – nothing, but we're changing the epoch
  • version_manager.cpp

Places where invalidateShardedCollection is currently called that should be changed to forceWaitOnRefresh:

  • catalog_cache.cpp::getCollectionRoutingInfoWithRefresh
  • catalog_cache.cpp::getShardedCollectionRoutingInfoWithRefresh


 Comments   
Comment by Githook User [ 07/Jan/20 ]

Author:

{'name': 'Blake Oler', 'email': 'blake.oler@mongodb.com', 'username': 'BlakeIsBlake'}

Message: SERVER-44830 Modify StaleConfigException handlers to handle a single shard invalidation
Branch: master
https://github.com/mongodb/mongo/commit/191de9ac2f0a8651f3de2fb39b6d70a471dc040c

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