...
When splitting a chunk, if the shard keys are sufficiently small and the number of documents is really high, it may happen the following: Chunk splitter invokes autoSplitVector (or splitVector, in older versions), getting more than 8192 split points. The split points are passed to splitChunkAtMultiplePoints This assert is triggered As a result, huge chunks will never be split, unless some smaller chunk is manually created. This problem can also impact shardCollection: when sharding an existing non-empty collection in presence of zones for such collection, the SingleChunkOnPrimarySplitPolicy is applied. There will only be one gigantic chunk on the primary shard that is then expected to be split by the chunk splitter.
xgen-internal-githook commented on Mon, 21 Feb 2022 22:44:25 +0000: Author: {'name': 'Paolo Polato', 'email': 'paolo.polato@mongodb.com', 'username': 'ppolato'} Message: SERVER-63203 fix checkMetadataForSuccessfulSplitChunk() Branch: v5.0 https://github.com/mongodb/mongo/commit/899918e1f72e75fbdbd6266cffcbc87442abeb43 xgen-internal-githook commented on Mon, 21 Feb 2022 22:44:23 +0000: Author: {'name': 'Paolo Polato', 'email': 'paolo.polato@mongodb.com', 'username': 'ppolato'} Message: SERVER-63203 Do not fail chunk split if more than 8192 points are requested (cherry picked from commit d018b7e964dafa5085152af03916bde0ac74f947) (cherry picked from commit 125477c2b843bd02f387b4ec183bba9d641d349c) Branch: v5.0 https://github.com/mongodb/mongo/commit/c7699bb6bded2948ba33063c77ef3adb8fa78095 xgen-internal-githook commented on Mon, 21 Feb 2022 21:30:38 +0000: Author: {'name': 'Paolo Polato', 'email': 'paolo.polato@mongodb.com', 'username': 'ppolato'} Message: SERVER-63203 Do not fail chunk split if more than 8192 points are requested Branch: v4.2 https://github.com/mongodb/mongo/commit/d08bae0fe6df2357ac9d26500e4e71954507b5a3 xgen-internal-githook commented on Mon, 21 Feb 2022 21:24:49 +0000: Author: {'name': 'Paolo Polato', 'email': 'paolo.polato@mongodb.com', 'username': 'ppolato'} Message: SERVER-63203 Do not fail chunk split if more than 8192 points are requested Branch: v4.4 https://github.com/mongodb/mongo/commit/db0c685310ef4d928bbfe513b669d8fab8b7bfac xgen-internal-githook commented on Mon, 21 Feb 2022 21:11:46 +0000: Author: {'name': 'Paolo Polato', 'email': 'paolo.polato@mongodb.com', 'username': 'ppolato'} Message: SERVER-63203 fix checkMetadataForSuccessfulSplitChunk() Branch: v5.3 https://github.com/mongodb/mongo/commit/c6cf3ce83c7c9d30278cee43b2a7eb06ddd47816 xgen-internal-githook commented on Mon, 21 Feb 2022 17:32:10 +0000: Author: {'name': 'Paolo Polato', 'email': 'paolo.polato@mongodb.com', 'username': 'ppolato'} Message: SERVER-63203 fix checkMetadataForSuccessfulSplitChunk() Branch: master https://github.com/mongodb/mongo/commit/4cdd3f9439ba0eb8e6540465638d5cac3aca1fdf xgen-internal-githook commented on Wed, 16 Feb 2022 15:18:59 +0000: Author: {'name': 'Paolo Polato', 'email': 'paolo.polato@mongodb.com', 'username': 'ppolato'} Message: SERVER-63203 Do not fail chunk split if more than 8192 points are requested (cherry picked from commit d018b7e964dafa5085152af03916bde0ac74f947) Branch: v5.2 https://github.com/mongodb/mongo/commit/125477c2b843bd02f387b4ec183bba9d641d349c xgen-internal-githook commented on Thu, 10 Feb 2022 14:15:31 +0000: Author: {'name': 'Paolo Polato', 'email': 'paolo.polato@mongodb.com', 'username': 'ppolato'} Message: SERVER-63203 Do not fail chunk split if more than 8192 points are requested Branch: master https://github.com/mongodb/mongo/commit/d018b7e964dafa5085152af03916bde0ac74f947