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

Overload startParallelShell in auto_retry_on_network_error.js to connect after loading the auto_retry_on_network_error.js override

    XMLWordPrintable

Details

    • Fully Compatible
    • ALL
    • v4.4, v4.2, v4.0, v3.6
    • Sharding 2020-04-20, Sharding 2020-05-04
    • 12

    Description

      In the retryable_writes_jscore_stepdown_passthrough, startParallelShell is called with the connection string of the underlying replica set, so it immediately calls connect to set the global db object. If there is a stepdown during connect, the test will fail, because the auto_retry_on_network_error.js override is not loaded yet.

      This was also a problem for the main test shell, and it was fixed by starting the shell with --nodb and passing an eval string that calls connect after loading the auto_retry passthrough. startParallelShell should be overriden in auto_retry_on_network_error.js to do the same thing.

      Attachments

        Activity

          People

            jack.mulrow@mongodb.com Jack Mulrow
            jack.mulrow@mongodb.com Jack Mulrow
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: