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

Switch ShardRoleTest to use ShardServerTestFixture

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0, 8.0.0-rc10
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Catalog and Routing
    • Fully Compatible
    • v8.0
    • CAR Team 2024-06-24

      The C++ ShardRoleTest unit-test already emulates a good part of what ShardServerTestFixture does, but it fails to initialize the sharding state and the Grid which precludes writing certain classes of tests against sharded collections. A specific example is this one, which can't be run against a sharded collection, because it tries to schedule a cleanup-task on the Grid's fixed executor.

      This ticket is to just switch ShardRoleTest to use the ShardServerTextFixture without changing the behavior of any of the existing tests.

            Assignee:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: