...
Collmod is designed to be propagated to all the shards owning chunks and to the DBPrimary shard (that's because we need to keep a copy of the collection metadata on the DBPrimary for design purposes). However, the createIndex command is only targeting all the shards owning chunks, skipping the DBPrimary if it doesn't own any chunks. So, if a collmod is called over an index that is not present on the DBPrimary, it will fail with a NoIndexFound error.
xgen-internal-githook commented on Tue, 17 Oct 2023 14:32:29 +0000: Author: {'name': 'Pol Pinol Castuera', 'email': 'pol.pinol@mongodb.com', 'username': 'PolPinol'} Message: SERVER-71819 Broadcast collMod command to all shards (cherry picked from commit eec54ec63e557e18f0e8361335b9a39887572b4d) SERVER-81033 Ignore the `collMod` response from the db primary shard if it has no chunks (cherry picked from commit 76ef13cd2ef0798606f8387a088a1edff1093d9a) Branch: v7.1 https://github.com/mongodb/mongo/commit/a332192a120fd0f482ad7c5e6be4fe331b3c38e1 xgen-internal-githook commented on Wed, 4 Oct 2023 09:15:06 +0000: Author: {'name': 'Pol Pinol Castuera', 'email': 'pol.pinol@mongodb.com', 'username': 'PolPinol'} Message: SERVER-71819 Broadcast collMod command to all shards (cherry picked from commit eec54ec63e557e18f0e8361335b9a39887572b4d) SERVER-81033 Ignore the `collMod` response from the db primary shard if it has no chunks (cherry picked from commit 76ef13cd2ef0798606f8387a088a1edff1093d9a) Branch: v6.0 https://github.com/mongodb/mongo/commit/b707967712ee3fd3cae5431f736e91f665b0133a xgen-internal-githook commented on Wed, 4 Oct 2023 08:37:07 +0000: Author: {'name': 'Pol Pinol Castuera', 'email': 'pol.pinol@mongodb.com', 'username': 'PolPinol'} Message: SERVER-71819 Broadcast collMod command to all shards (cherry picked from commit eec54ec63e557e18f0e8361335b9a39887572b4d) SERVER-81033 Ignore the `collMod` response from the db primary shard if it has no chunks (cherry picked from commit 76ef13cd2ef0798606f8387a088a1edff1093d9a) Branch: v7.0 https://github.com/mongodb/mongo/commit/6b4286cab30323314e68773755ac47086136d1d5 xgen-internal-githook commented on Tue, 19 Sep 2023 08:57:59 +0000: Author: {'name': 'Pol Pinol Castuera', 'email': 'pol.pinol@mongodb.com', 'username': 'PolPinol'} Message: SERVER-81033 Ignore the `collMod` response from the db primary shard if it has no chunks Branch: master https://github.com/mongodb/mongo/commit/76ef13cd2ef0798606f8387a088a1edff1093d9a
Click on a version to see all relevant bugs
MongoDB Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.