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

Add missing assertion in fle2_compact_coordinator.js

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0, 8.0.4
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Security
    • Fully Compatible
    • v8.0
    • Security 2024-07-22
    • 0

      In fle2_compact_coordinator.js, the test runStepdownDuringCompactPhaseBeforeESCCleanup asserts that the ESC count may only be 11 after the compaction test completes. However, in reality, this count can either be 11 or 1 depending on when the reissued shardsvrCompactStructuredEncryptionData command arrives at the new primary after step-up. If it arrives while the resumed coordinator is executing, then the reissued command will simply join the active coordinator, and there shall be no documents removed from the ESC (count remains 11). But, if it arrives after the resumed coordinator has finished, then it will start a new coordinator that will end up deleting the 10 stale ESC non-anchor documents (and therefore the count ends up being just 1).

            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: