powertest.py should call replSetReconfigure command only after successful replSetGetConfig

XMLWordPrintableJSON

    • Fully Compatible
    • v4.0, v3.6
    • TIG 2018-07-02
    • 46
    • 2
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

              Assignee:
              Jonathan Abrahams (Inactive)
              Reporter:
              Matthew Russotto
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: