[SERVER-32125] applyOps with collMod may remove UUIDs from collections Created: 30/Nov/17  Updated: 30/Oct/23  Resolved: 30/Nov/17

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 3.6.0-rc8, 3.7.1

Type: Bug Priority: Blocker - P1
Reporter: Spencer Jackson Assignee: Geert Bosch
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v3.6
Sprint: Storage 2017-12-04
Participants:
Linked BF Score: 0

 Description   

The following command may remove UUIDs from collections, even if in 3.6 FCV:

db.runCommand({applyOps: [{ns: "test.$cmd", op: "c", o: {collMod: "col"}}]})
{ "applied" : 1, "results" : [ true ], "ok" : 1 }

2017-11-30T11:38:12.809-0500 I ACCESS [conn1] Successfully authenticated as principal sajack on test
2017-11-30T11:38:16.371-0500 I COMMAND [conn1] Removing UUID 3bf5c40d-a25a-478e-bb91-fb6f762d504c from collection test.col



 Comments   
Comment by Githook User [ 01/Dec/17 ]

Author:

{'name': 'Geert Bosch', 'username': 'GeertBosch', 'email': 'geert@mongodb.com'}

Message: SERVER-32125 Add tag required_fcv36 to test case
Branch: v3.6
https://github.com/mongodb/mongo/commit/3c81217d2c14aa335f7273fb822541e31a2cc0f1

Comment by Githook User [ 30/Nov/17 ]

Author:

{'name': 'Geert Bosch', 'username': 'GeertBosch', 'email': 'geert@mongodb.com'}

Message: SERVER-32125 Only add/remove UUIDs during upgrade/downgrade

(cherry picked from commit e1f3a9bccaadce1772d6cf7d5f9b44ca3adbee3e)
Branch: v3.6
https://github.com/mongodb/mongo/commit/33025572fa0964a67528f9f2317a0f2cd6a03310

Comment by Githook User [ 30/Nov/17 ]

Author:

{'name': 'Geert Bosch', 'username': 'GeertBosch', 'email': 'geert@mongodb.com'}

Message: SERVER-32125 Only add/remove UUIDs during upgrade/downgrade
Branch: master
https://github.com/mongodb/mongo/commit/e1f3a9bccaadce1772d6cf7d5f9b44ca3adbee3e

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