[SERVER-33455] Make the chunk move/split/merge methods update the chunk's history Created: 22/Feb/18  Updated: 29/Oct/23  Resolved: 14/Mar/18

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

Type: Task Priority: Major - P3
Reporter: Kaloian Manassiev Assignee: Martin Neupauer
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Sharding 2018-03-12, Sharding 2018-03-26
Participants:

 Description   

As part of this change we should modify the _configsvrCommitChunkMigration,
_configsvrCommitChunkSplit,
_configsvrCommitChunkMerge commands to include a timestamp at which the migration is considered prepared (this should be the latest in-memory clusterTime on the donor shard, as obtained through LogicalClock::get(opCtx)->getClusterTime()). The config server commands should thread-through this timestamp down to the catalog manager chunk operations, which is what should maintain the history array and perform cleanups if necessary.



 Comments   
Comment by Githook User [ 14/Mar/18 ]

Author:

{'email': 'martin.neupauer@mongodb.com', 'name': 'Martin Neupauer', 'username': 'MartinNeupauer'}

Message: SERVER-33455 SERVER-33452 - Add history to the chunk type and update move/split/merge methods.

The Chunk type has an array of the past history that we maintain in the sharding manager.
When a chunk is moved we add a new entry to the history, the chunk split copies the history to new
chunks and finally the merge drops any previous history and creates only the latest entry.
Branch: master
https://github.com/mongodb/mongo/commit/7db37fa2823760ae2a9f061f5682c6bb3c2c3ad0

Comment by Githook User [ 14/Mar/18 ]

Author:

{'email': 'martin.neupauer@mongodb.com', 'name': 'Martin Neupauer', 'username': 'MartinNeupauer'}

Message: Revert "SERVER-33455 SERVER-33452 - Add history to the chunk type and update move/split/merge methods."

This reverts commit 5b42a86b74380953db29455dc68e133166c81005.
Branch: master
https://github.com/mongodb/mongo/commit/ebbd763514514d3ed77c25477c61d71df0d91420

Comment by Githook User [ 14/Mar/18 ]

Author:

{'email': 'martin.neupauer@mongodb.com', 'name': 'Martin Neupauer', 'username': 'MartinNeupauer'}

Message: SERVER-33455 SERVER-33452 - Add history to the chunk type and update move/split/merge methods.

The Chunk type has an array of the past history that we maintain in the sharding manager.
When a chunk is moved we add a new entry to the history, the chunk split copies the history to new
chunks and finally the merge drops any previous history and creates only the latest entry.
Branch: master
https://github.com/mongodb/mongo/commit/5b42a86b74380953db29455dc68e133166c81005

Generated at Thu Feb 08 04:33:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.