[JAVA-1072] Ensure that scheduled jobs for cluster monitoring use daemon threads Created: 09/Jan/14 Updated: 03/Apr/14 Resolved: 17/Jan/14 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Cluster Management |
| Affects Version/s: | None |
| Fix Version/s: | 2.12.0, 3.0.0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Jeffrey Yemin | Assignee: | Jeffrey Yemin |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| 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. |
| Comments |
| Comment by Githook User [ 17/Jan/14 ] |
|
Author: {u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}Message: |
| Comment by Githook User [ 15/Jan/14 ] |
|
Author: {u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}Message: |