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

[v6.0] Opt out of PBWM lock before obtaining the global lock in compact

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.21
    • Affects Version/s: 6.0.20
    • Component/s: None
    • None
    • RSS Sydney
    • Fully Compatible
    • HappyAddy - 2025-03-04, PastaLaVista - 2025-03-18
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Compact in v6.0 we will still acquire the PBWM lock under the hood. As compact is a user operation, we don't opt out of `ShouldNotConflictWithSecondaryBatchApplicationBlock` and we will take the PBWM lock as part of acquiring the global lock here.

      When SERVER-89727 was done, the PWBM lock was removed from the codebase (it no longer exists right now on master), but the PBWM lock still exists in 6.0. As a workaround for this, this ticket should opt out of the state before we obtain the global lock. Since compact simply rearranges blocks of data, having a consistent viewpoint of the data shouldn't matter with compaction.

            Assignee:
            clarisse.cheah@mongodb.com Clarisse Cheah
            Reporter:
            clarisse.cheah@mongodb.com Clarisse Cheah
            Votes:
            1 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None