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

powertest.py should call replSetReconfigure command only after successful replSetGetConfig

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

      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 Jonathan Abrahams
            Reporter:
            matthew.russotto@mongodb.com Matthew Russotto
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: