[SERVER-51441] Get rid of ReplicaSetMonitor::get() Created: 08/Oct/20 Updated: 10/Oct/20 Resolved: 10/Oct/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Andrew Shuvalov (Inactive) | Assignee: | Andrew Shuvalov (Inactive) |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Participants: | |||||||||
| Description |
|
As the ReplicaSetMonitor is behaving like cache, it is not guaranteed that the ReplicaSetMonitor::get() returns an existing instance, which could be garbage collected. We need to always create a new instance in the cache when there is none. See https://jira.mongodb.org/browse/SERVER-51440 for details. |
| Comments |
| Comment by Andrew Shuvalov (Inactive) [ 10/Oct/20 ] |
|
Hopefully we don't need this |