[SERVER-8869] Command to merge two co-located, adjacent chunks Created: 06/Mar/13  Updated: 11/Jul/16  Resolved: 16/Aug/13

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

Type: Improvement Priority: Major - P3
Reporter: Alberto Lerner Assignee: Randolph Tan
Resolution: Done Votes: 3
Labels: balancer, chunks, merge
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by DOCS-1837 Document Merge chunks command Closed
Related
related to SERVER-2487 Remove empty chunks (consolidate to n... Closed
Participants:

 Description   

This is a metadata-only operation. If two chunks are co-located and share one boundary, we'd like to be able to create a single chunk out of the two original in an atomic operation.

This is the first step towards support generic chunk merges in the future.



 Comments   
Comment by Greg Studer [ 16/Aug/13 ]

Merge command takes min/max bounds of the chunks to merge, and will only succeed if one or both of the two merged chunks is empty.

Code is pretty flexible though, we should be able to relax when safe in the future.

Comment by auto [ 15/Aug/13 ]

Author:

{u'username': u'gregstuder', u'name': u'Greg Studer', u'email': u'greg@10gen.com'}

Message: SERVER-8869 mongos command passthrough for mergeChunks plus tests
Branch: master
https://github.com/mongodb/mongo/commit/d53c3240e3f83080f6a9e36edb9b118ff9f97f9b

Comment by auto [ 14/Aug/13 ]

Author:

{u'username': u'gregstuder', u'name': u'Greg Studer', u'email': u'greg@10gen.com'}

Message: SERVER-8869 command to merge co-located chunks
Branch: master
https://github.com/mongodb/mongo/commit/350392319a81bc9a43dd7befff33ff41798504f3

Comment by auto [ 13/Aug/13 ]

Author:

{u'username': u'gregstuder', u'name': u'Greg Studer', u'email': u'greg@10gen.com'}

Message: Revert "SERVER-8869 command to merge co-located chunks"

This reverts commit a58ae77d0e5035cb4b541751dbe042e9173deea5.
Branch: master
https://github.com/mongodb/mongo/commit/5c03be3aca41801c807ed49666020c4a8088549d

Comment by auto [ 13/Aug/13 ]

Author:

{u'username': u'gregstuder', u'name': u'Greg Studer', u'email': u'greg@10gen.com'}

Message: SERVER-8869 command to merge co-located chunks
Branch: master
https://github.com/mongodb/mongo/commit/a58ae77d0e5035cb4b541751dbe042e9173deea5

Comment by auto [ 01/Aug/13 ]

Author:

{u'username': u'gregstuder', u'name': u'Greg Studer', u'email': u'greg@10gen.com'}

Message: SERVER-8869 merge chunks: metadata clone and sharding state piece
Branch: master
https://github.com/mongodb/mongo/commit/57213bdd0d1abf214f4a7db3f6e4aa161a69a9c5

Generated at Thu Feb 08 03:18:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.