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

Introduce sharding passthrough tests

    • Type: Icon: Task Task
    • 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
    • CAR Team 2024-02-19, CAR Team 2024-03-04

      core (or passthrough) tests are those that do not make assumptions of the cluster topology. For instance:
       - they can be executed on a replica set or a sharded cluster.
       - they do not make any assumption about the config server being embedded or dedicated.
       - they do not make any assumption on the number of replica set nodes.

      These types of tests are very useful because we can run them with different cluster topology/configurations and ensure that everything works as expected on all those different configurations.

      Currently, we do not have any core tests for commands that can be executed exclusively in sharded cluster (e.g. shardCollection, refineShardKey, resharding etc...). Usually for those commands we rely on sharding tests living in the "jstests/sharding" folder. These tests explicitly spawn a sharded cluster, using the ShardingTest JS fixture, thus we only execute them in one cluster configuration that is the one specified by the test itself.

      The goal of this ticket is to introduce a new class of sharding core tests that can be executed in several passthrough suites.

      Those tests will be placed under "jstests/core_sharding" folder.

            Assignee:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Reporter:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: