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

Fix the "running under stepdown" checks performed by some JS tests

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 8.1.0-rc0, 7.3.2, 8.0.0-rc3
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • v8.0, v7.3
    • CAR Team 2024-04-15, CAR Team 2024-04-29
    • 16

      A few sharding js tests (such as merge_all_chunks_on_shard.js have to skip or alter the execution of specific test cases based on whether the logic is running under a suite with periodic CSRS stepdown events in background. 

      The traditional way to do this was to check for the existence of the ContinuousStepdown class created by the override method, but after SERVER-79182, this is no more visible from a js test (unless the symbol gets explicitly imported).

      Existing checks should hence be adapted to the introduction of ES modules into the code base.

            Assignee:
            paolo.polato@mongodb.com Paolo Polato
            Reporter:
            paolo.polato@mongodb.com Paolo Polato
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: