Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-65999

Fix the sharding test for two simultaneous compacts in fle2_contention_compact.js

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.0-rc6, 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • v6.0
    • Security 2022-05-16
    • 69

      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.

            Assignee:
            erwin.pe@mongodb.com Erwin Pe
            Reporter:
            erwin.pe@mongodb.com Erwin Pe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: