Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2314

Retry all functional tests once if a socket exception is thrown

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    Description

      In our CI loop we are getting frequent test failures in the replica set configuration due to unanticipated primary failovers, resulting in a thrown MongoSocketException.

      Consider implementing a test rule that retries all functional tests once upon a MongoSocketException being thrown. Due to the server selection implementation, the next try of the test will go into the server selection loop until the primary is re-located.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: