[SERVER-76406] Avoid querying previous config.placementHistory documents when inserting new ones Created: 21/Apr/23  Updated: 29/Oct/23  Resolved: 27/Apr/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0, 7.0.0-rc1

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

Issue Links:
Backports
Depends
is depended on by SERVER-76045 Create a new server command to rebuil... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v7.0
Sprint: Sharding EMEA 2023-05-01
Participants:

 Description   

While most DDLs just insert new document into config.placementHistory as part of their commit, moveChunk and renameCollection perform first a lookup into the same collection to retrieve the latest placement information and build a new document on top of it.

If such behaviour were removed, it could be possible to perform arbitrary trimming of the config.placementHistory log without the need to block any DDL.



 Comments   
Comment by Githook User [ 04/May/23 ]

Author:

{'name': 'Paolo Polato', 'email': 'paolo.polato@mongodb.com', 'username': 'ppolato'}

Message: SERVER-76406 Avoid querying previous config.placementHistory documents when inserting new ones

(cherry picked from commit fb296603f20992ef9dee1a8d483e722a702adcec)
Branch: v7.0
https://github.com/mongodb/mongo/commit/b80a9bcaefc2c64c930e7a5776fba5d346c0c4e9

Comment by Githook User [ 27/Apr/23 ]

Author:

{'name': 'Paolo Polato', 'email': 'paolo.polato@mongodb.com', 'username': 'ppolato'}

Message: SERVER-76406 Avoid querying previous config.placementHistory documents when inserting new ones
Branch: master
https://github.com/mongodb/mongo/commit/fb296603f20992ef9dee1a8d483e722a702adcec

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