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

Remove version check from tests when 8.1 becomes last LTS.

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing

      The behaviour of the split chunk function in src/mongo/s/commands/cluster_split_cmd.cpp is changed in SERVER-97411.

      Some test were adjusted to support different behaviours for versions before and after 8.1 to work with multiversion tests:

      jstests/sharding/basic_split.js
      jstests/sharding/compound_hashed_shard_key_sharding_cmds.js
      jstests/sharding/key_string.js

      The featureCompatibilityVersion is used to validate different return results of 

      adminCommand({split: "user" ...

      like

      const fcvDoc = configDB.adminCommand({getParameter: 1, featureCompatibilityVersion: 1});
      if (MongoRunner.compareBinVersions(fcvDoc.featureCompatibilityVersion.version, "8.1") >= 0)
      { ... 
       
      

      It can be removed after versions below 8.1 are not used in multiversion tests any more.

            Assignee:
            Unassigned Unassigned
            Reporter:
            igor.praznik@mongodb.com Igor Praznik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: