[SERVER-6922] ReplicaSetMonitor should clean itself up (after stopping ReplicaSetMonitorWatcher) while program terminates Created: 03/Sep/12 Updated: 15/Feb/13 Resolved: 01/Oct/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Internal Client |
| Affects Version/s: | 2.2.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Gregor Macadam | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Operating System: | ALL | ||||||||||||
| Participants: | |||||||||||||
| Description |
|
When creating a ScopedDbConnection with a replica set initialiser there is assertion. See https://groups.google.com/forum/?fromgroups=#!topic/mongodb-user/m5HozQ8CzgY |
| Comments |
| Comment by Pieter Willem Jordaan [ 01/Oct/12 ] | ||||||||||||||||||
|
Hi
works. | ||||||||||||||||||
| Comment by Randolph Tan [ 01/Oct/12 ] | ||||||||||||||||||
|
Hi, Can you try adding:
at the end, just before return 0? | ||||||||||||||||||
| Comment by Pieter Willem Jordaan [ 01/Oct/12 ] | ||||||||||||||||||
|
I agree with this Jira. It makes debugging difficult because of the segfault. Till then I will use the workaround. | ||||||||||||||||||
| Comment by David Schneider [ 04/Sep/12 ] | ||||||||||||||||||
|
To cleanup the ReplicaSetMonitor you have to call mongo::ReplicaSetMonitor::remove("set_name", true);
|