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

Driver throws IllegalStateException unnecessarily

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.12.5, 2.13.0
    • None
    • API
    • None

    Description

      The driver in some cases will throw an IllegalStateException indicating that the MongoClient has been closed, even in situations where it's not necessary. For example, the check is made in DBTCPConnector.releasePort, which is called in a number of places after an operation is completed.

      It would be better just to allow those in-flight operations to complete normally and not throw.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: