Properly handle exceptions in threads created by MongoClient

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Unknown
    • 5.6.0
    • Affects Version/s: None
    • Component/s: SDAM
    • None
    • None
    • Fully Compatible
    • Java Drivers
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      From https://github.com/mongodb/mongo-java-driver/pull/1764

      Please allow me to contribute this bugfix. The problem with Throwable in this line is that
      it catches errors (OutOfMemoryError in particular) and doesn't let JVM crash leaving it
      in zombie state - unable to recover, unable to exit.

              Assignee:
              Valentin Kavalenka
              Reporter:
              Ross Lawley
              Ross Lawley
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: