[SERVER-84296] Rename CatalogCache::invalidateShardOrEntireCollectionEntryForShardedCollection function Created: 19/Dec/23  Updated: 21/Dec/23

Status: Blocked
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Tommaso Tocci Assignee: Backlog - Catalog and Routing
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-78495 Throw out vestiges of enableFinerGrai... In Code Review
Assigned Teams:
Catalog and Routing
Participants:

 Description   

In SERVER-78495 we removed the possibility of marking a specific shard as stale, so the name of this function should be changed now to something more meaningful.

Additionally, we could remove the ShardId from function parameters since it is not used anymore.

When choosing the new name for this function we should take into account that this function:

  • Is not shard specific anymore.
  • Does not really invalidate the cache entry, just advances the “known” time in the underlying ReadThroughCache, so all the subsequent accesses to the cached entry that require casual consistency will trigger a cache entry refresh.
  • It does not act only on sharded collections

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