Remove the assertion preventing schema ops concurrent with step-up/step-down

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Schema Management
    • None
    • Storage Engines - Foundations
    • 486.904
    • None
    • None

      In WT-17656 we added checks to the WT_WITH_SCHEMA_LOCK(_NOWAIT) macros that assert that we are not currently in the middle of a role-transition. This was not allowed to happen with synchronous step-ups/step-downs, as a concurrent user-initiated schema operation could potentially interfere with the process (e.g. BF-42866).

              WT_ASSERT_ALWAYS(session,                                                             \
                !F_ISSET_ATOMIC_32(                                                                 \
                  S2C(session), WT_CONN_RECONFIGURING_STEP_UP | WT_CONN_RECONFIGURING_STEP_DOWN) || \
                  F_ISSET(session, WT_SESSION_INTERNAL),                                            \
                "schema lock acquired during role transition"); 

      With asynchronous step-up/step-down, concurrent user-driven schema operations should now be permitted, and we should remove the assertions along with the associated python test test_layered_stepup12.py.

            Assignee:
            [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            Alexander Pullen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: