[SERVER-34448] Disable chunk splitting functionality in mongos Created: 12/Apr/18  Updated: 29/Oct/23  Resolved: 09/Aug/18

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

Type: Task Priority: Major - P3
Reporter: Matthew Saltz (Inactive) Assignee: Matthew Saltz (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-39683 shard request to split a same chunk a... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2018-07-30, Sharding 2018-08-13
Participants:
Linked BF Score: 0

 Description   

For enabling autosplitting on mongod, we also need to disable autosplitting functionality in mongos. This requires the following work:

  • Remove call to splitIfNeeded in ClusterWriter::write in cluster_write.cpp
  • Remove function updateChunkStatsAndSplitIfNeeded from everywhere it's called (cluster_write.cpp, cluster_find_and_modify.cpp, cluster_map_reduce.cpp)
  • Adjust any tests this breaks

There may also be other dead utility functions and such that should be removed.



 Comments   
Comment by Githook User [ 09/Aug/18 ]

Author:

{'name': 'Matthew Saltz', 'email': 'matthew.saltz@mongodb.com', 'username': 'saltzm'}

Message: SERVER-34448 Remove miscellaneous now-unused autosplitter code from mongos
Branch: master
https://github.com/mongodb/mongo/commit/ec3d7647e061ef9270c2e40fa22c1c996153e83d

Comment by Githook User [ 09/Aug/18 ]

Author:

{'name': 'Matthew Saltz', 'email': 'matthew.saltz@mongodb.com', 'username': 'saltzm'}

Message: SERVER-34448 Remove autosplitting logic from map-reduce on mongos
Branch: master
https://github.com/mongodb/mongo/commit/b225e12c9759f88c7d7d4e30fa4e7c13be1dc95a

Comment by Githook User [ 09/Aug/18 ]

Author:

{'name': 'Matthew Saltz', 'email': 'matthew.saltz@mongodb.com', 'username': 'saltzm'}

Message: SERVER-34448 Remove autosplitting logic from find-and-modify on mongos
Branch: master
https://github.com/mongodb/mongo/commit/4363a94cd3ebb72a125f25bcdee110c12a82f40b

Comment by Githook User [ 09/Aug/18 ]

Author:

{'name': 'Matthew Saltz', 'email': 'matthew.saltz@mongodb.com', 'username': 'saltzm'}

Message: SERVER-34448 Remove splitIfNeeded from the write path on mongos
Branch: master
https://github.com/mongodb/mongo/commit/dfb72285175a63c958ffafcdc7b9eedc64d7380e

Comment by Githook User [ 09/Aug/18 ]

Author:

{'name': 'Matthew Saltz', 'email': 'matthew.saltz@mongodb.com', 'username': 'saltzm'}

Message: SERVER-34448 Enable autosplitting on the shard and disable on mongos

SERVER-34449 Handle upgrade/downgrade logic for autosplitting on shard

SERVER-34448 Wait for chunk splitting in top chunk optimization tests

SERVER-34448 Require persistence in shard_existing_coll_chunk_count.js
Branch: master
https://github.com/mongodb/mongo/commit/da38575dde0a316c30d6579fa61a8c64376a4062

Comment by Githook User [ 09/Aug/18 ]

Author:

{'name': 'Matthew Saltz', 'email': 'matthew.saltz@mongodb.com', 'username': 'saltzm'}

Message: SERVER-34448 Change ChunkSplitStateDriver::tryInitiateSplit to return shared_ptr
Branch: master
https://github.com/mongodb/mongo/commit/770b51316bed3f708698d57f8e9963646d612ac7

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