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

Revert MigrationDestinationManager AlternativeClientRegion changes and blacklist tests

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • CAR Team 2024-04-01
    • 147

      SERVER-86741 introduced changes on FCV downgrade to truncate sessions that are in use. This exposed a bug in the MigrationDestinationManager in which we were attempting to yield a session while on a different client than the one with the session checked out. This could cause an invariant due to trying to do a write when re-checking-out the session on the wrong client.

      SERVER-87872 attempted to fix this by changing back to the original client before yielding the session. However, this fix did not take into acocunt the fact that two of the runWithoutSession calls are done from a different thread than the original. This causes invalid access errors when trying to change back to the original session.

      Additionally, the truncate of the sessions can cause migrations to fail during FCV downgrade due to being interrupted.

      The goal of this ticket is to revert SERVER-87872 and blacklist any tests that are failing. Some of these tests (primarily the timeseries tests in the fcv upgrade downgrade passthrough) should be disabled due to the fact that the truncate of the sessions can now cause migrations to fail on downgrade. Others (the concurrency_sharded.*balancer tests with _setFCV) should be re-enabled once the invariant problem in the migration destination manager is fixed.

            Assignee:
            allison.easton@mongodb.com Allison Easton
            Reporter:
            allison.easton@mongodb.com Allison Easton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: