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

[v6.0] CreateIndex command should check if featureFlagCollModIndexUnique is enabled when the indexOptions contain prepareUnique.

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.20
    • Affects Version/s: 6.0.0
    • Component/s: None
    • None
    • Storage Execution
    • Fully Compatible
    • ALL
    • Execution Team 2024-07-08, Execution Team 2024-07-22, Execution Team 2024-08-19, Execution Team 2024-09-02, Execution Team 2024-09-16, Execution Team 2024-09-30, Execution Team 2024-10-14, Execution Team 2024-10-28, Execution Team 2024-11-11, Execution Team 2024-11-25
    • 200

      The createIndex command wasn't checking if featureFlagCollModIndexUnique was enabled when indexOptions included prepareUnique. We previously relied on an inner layer feature flag check, but SERVER-87373 had to remove that check as it was causing invariant failures and crashing the server. We should have createIndex command to check for featureFlagCollModIndexUnique at the entry point, similar to how collMod does.

            Assignee:
            wei.hu@mongodb.com Wei Hu
            Reporter:
            suganthi.mani@mongodb.com Suganthi Mani
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: