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

cluster.js calls an undefined function to iterate over the config server nodes

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.0-rc5, 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Fully Compatible
    • ALL
    • v6.0
    • Sharding EMEA 2022-05-02
    • 0

      SERVER-58683 changed the way cluster.js iterates through the nodes of the config server replica set to perform several operations (such as executeOnConfigNodes()) by relying on the st.forEachConfigServer function.
      Nevertheless, such function is undefined in Cluster.st, which is an object of type FSMShardingTest (and not ShardingTest).

      (The consequences of this may go unperceived when executeOnConfigNodes() gets invoked in the setup() of an FSM workload: an uncaught exception will appear in the test log and no operation will be applied to the config server nodes, but the workload itself will be executed anyway, and possibly pass the test assertions).

            paolo.polato@mongodb.com Paolo Polato
            paolo.polato@mongodb.com Paolo Polato
            0 Vote for this issue
            2 Start watching this issue