[SERVER-66542] Missing log/Update of the stats after the completion of a CatalogCache refresh Created: 18/May/22  Updated: 29/Oct/23  Resolved: 28/May/22

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 6.0.0-rc9, 6.1.0-rc0, 5.0.16

Type: Task Priority: Major - P3
Reporter: Sergi Mateo Bellido Assignee: Sergi Mateo Bellido
Resolution: Fixed Votes: 0
Labels: sharding-wfbf-day
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Problem/Incident
is caused by SERVER-58466 Minor optimization on the CatalogCach... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v6.0, v5.3, v5.0
Sprint: Sharding EMEA 2022-05-30
Participants:

 Description   

In SERVER-58466 we introduced an optimization on the lookup function of the CatalogCache to avoid building a new ChunkManager if this object is going to be the same than the one we had before. 

However, I forgot to also log a line stating that the refresh was completed. This log line is very useful for debugging purposes, so I propose to add it. The same applies for the update of the stats.

This fix will have to be backported to 6.0 but not to 5.0: the optimization was not backported to that version.



 Comments   
Comment by Githook User [ 27/Mar/23 ]

Author:

{'name': 'Sergi Mateo Bellido', 'email': 'sergi.mateo-bellido@mongodb.com', 'username': 'smateo'}

Message: SERVER-66542 Unifying paths on the CatalogCache lookup function

Before this change there was an early-exit path that wasn't updating the
stats neither logging a line.

(cherry picked from commit 46a8e36aade47b36837d89cccfa41e28ddad272c)
Branch: v5.0
https://github.com/mongodb/mongo/commit/a7d14387f1c04e37b6b8b3838be5f212ba2b54a0

Comment by Githook User [ 02/Jun/22 ]

Author:

{'name': 'Sergi Mateo Bellido', 'email': 'sergi.mateo-bellido@mongodb.com', 'username': 'smateo'}

Message: SERVER-66542 Unifying paths on the CatalogCache lookup function

Before this change there was an early-exit path that wasn't updating the
stats neither logging a line.

(cherry picked from commit 46a8e36aade47b36837d89cccfa41e28ddad272c)
Branch: v6.0
https://github.com/mongodb/mongo/commit/425b14f85f6d1f7b286ada3db4bfe421682f30b0

Comment by Githook User [ 27/May/22 ]

Author:

{'name': 'Sergi Mateo Bellido', 'email': 'sergi.mateo-bellido@mongodb.com', 'username': 'smateo'}

Message: SERVER-66542 Unifying paths on the CatalogCache lookup function

Before this change there was an early-exit path that wasn't updating the
stats neither logging a line.
Branch: master
https://github.com/mongodb/mongo/commit/46a8e36aade47b36837d89cccfa41e28ddad272c

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