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

Driver throws IllegalStateException unnecessarily

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.12.5, 2.13.0
    • Affects Version/s: None
    • Component/s: API
    • None

      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.

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

              Created:
              Updated:
              Resolved: