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

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 6.0.0-rc6, 6.1.0-rc0
    • None
    • None
    • Fully Compatible
    • v6.0
    • Security 2022-05-16
    • 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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: