Fix how ShardingTest handles setParameters

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • None
    • ALL
    • Security 2021-04-05
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

       

      When adding setParameters for sharding tests like this:

      options = {
          ...,
          other: {
            mongosOptions: {
              setParameter: {
                param1: val,
                param2 ...
              }
            },
          }
        }
      st = new ShardingTest(options);

      The test runner adds an extra setParameter - migrationLockAcquisitionMaxWaitMS for the mongos which causes it to fail to start. Instead, a user has to add set parameters like this - setParameter: "param1=val", which does not allow a user to specify multiple setParameters in an intuitive way (or possibly at all). See this example for how the ShardingTest set parameter needs to be specified.

       

            Assignee:
            Benjamin Caimano (Inactive)
            Reporter:
            Shreyas Kalyan
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: