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

powertest.py should call replSetReconfigure command only after successful replSetGetConfig

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Backport Requested:
      v4.0, v3.6
    • Sprint:
      TIG 2018-07-02
    • Linked BF Score:
      46
    • Story Points:
      2

      Description

      replSetReconfig is not safe to retry when there's an AutoReconnect error. If it succeeded before the network was disconnected, it will likely fail the retry.

      I believe it is safe to retry the whole else-clause starting with replSetGetConfig

      https://github.com/mongodb/mongo/blob/1d89d2c88bcb39045701b87612b866ae2eb49378/pytests/powertest.py#L1440

      In this case, if the previous reconfig succeeded, the "if" at line 1457 will prevent attempting to reconfig again.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: