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

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.4, v4.2, v4.0, v3.6
    • Sprint:
      Sharding 2020-04-20, Sharding 2020-05-04
    • Linked BF Score:
      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

            Assignee:
            jack.mulrow Jack Mulrow
            Reporter:
            jack.mulrow Jack Mulrow
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: