[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: |
|
||||||||
| 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: (cherry picked from commit a86cebf1f3e71d70d83de592128ada08493321be) |
| Comment by Githook User [ 17/May/22 ] |
|
Author: {'name': 'Erwin Pe', 'email': 'erwin.pe@mongodb.com', 'username': 'erwee'}Message: (cherry picked from commit a86cebf1f3e71d70d83de592128ada08493321be) |
| Comment by Githook User [ 09/May/22 ] |
|
Author: {'name': 'Erwin Pe', 'email': 'erwin.pe@mongodb.com', 'username': 'erwee'}Message: |
| Comment by Githook User [ 09/May/22 ] |
|
Author: {'name': 'Erwin Pe', 'email': 'erwin.pe@mongodb.com', 'username': 'erwee'}Message: |