[SERVER-65999] Fix the sharding test for two simultaneous compacts in fle2_contention_compact.js Created: 27/Apr/22  Updated: 29/Oct/23  Resolved: 09/May/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.0-rc6, 6.1.0-rc0

Type: Task Priority: Major - P3
Reporter: Erwin Pe Assignee: Erwin Pe
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Backport Requested:
v6.0
Sprint: Security 2022-05-16
Participants:
Linked BF Score: 69

 Description   

The test for verifying that two simultaneous compactStructuredEncryptionData commands on the same encrypted collection are serialized assumes that the second compact command that is sent from a parallel shell will block until the first compact operation finishes. This is true for the replica set version of this command, but not for the sharded version. The sharded version of this command is performed by a CompactStructuredEncryptionDataCoordinator instance, which is a primary only service; if the first compact request is running on an instance, and the second compact request is on the same collection as the first compact, then the second compact request is "joined" with the same coordinator instance and will return the same reply as the first compact request.



 Comments   
Comment by Githook User [ 17/May/22 ]

Author:

{'name': 'Erwin Pe', 'email': 'erwin.pe@mongodb.com', 'username': 'erwee'}

Message: SERVER-65999 Fix the sharding test for two simultaneous compacts

(cherry picked from commit a86cebf1f3e71d70d83de592128ada08493321be)
Branch: v6.0
https://github.com/mongodb/mongo/commit/86483f603c2de7ee5ec5f013798d38c770e35859

Comment by Githook User [ 17/May/22 ]

Author:

{'name': 'Erwin Pe', 'email': 'erwin.pe@mongodb.com', 'username': 'erwee'}

Message: SERVER-65999 Fix the sharding test for two simultaneous compacts

(cherry picked from commit a86cebf1f3e71d70d83de592128ada08493321be)
Branch: v6.0
https://github.com/10gen/mongo-enterprise-modules/commit/833e3ec70bb5383275b2075b421a809c212ef7b5

Comment by Githook User [ 09/May/22 ]

Author:

{'name': 'Erwin Pe', 'email': 'erwin.pe@mongodb.com', 'username': 'erwee'}

Message: SERVER-65999 Fix the sharding test for two simultaneous compacts
Branch: master
https://github.com/mongodb/mongo/commit/a86cebf1f3e71d70d83de592128ada08493321be

Comment by Githook User [ 09/May/22 ]

Author:

{'name': 'Erwin Pe', 'email': 'erwin.pe@mongodb.com', 'username': 'erwee'}

Message: SERVER-65999 Fix the sharding test for two simultaneous compacts
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/9f3e72c36ac8faa803b7dcb7164ea11e3f021c7c

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