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

ReplicaSetStatus does not interrupt the Updater thread on close

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.8.0
    • Affects Version/s: 2.6.3
    • Component/s: Cluster Management
    • Labels:
      None
    • Fully Compatible

      com.mongodb.ReplicaSetStatus.Updater thread should be interrupted and closed gracefully upon Mongo.close() call. I know it's a daemon thread, but in Tomcat, when redeploying I get:

      SEVERE: The web application [/ssp] appears to have started a thread named [ReplicaSetStatus:Updater] but has failed to stop it. This is very likely to create a memory leak.

      Also see: JAVA-191

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

              Created:
              Updated:
              Resolved: