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

Ensure that scheduled jobs for cluster monitoring use daemon threads

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.12.0, 3.0.0
    • None
    • Cluster Management
    • None

    Description

      Now that the driver has switched over to ScheduledExecutorService for monitoring the cluster, applications that use the driver no longer exit unless MongoClient is explicitly closed. To fix this, the driver needs to create the service with a thread factory that creates daemon threads.

      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: