[SERVER-64858] Unable to remove unreachable members from the replica set. Created: 24/Mar/22 Updated: 16/May/22 Resolved: 16/May/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Aasawari Sahasrabuddhe | Assignee: | Eric Sedor |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Operating System: | ALL | |||||||
| Steps To Reproduce: |
|
|||||||
| Participants: |
| Description |
|
A replica set deployed in an kubernetes environment, and tried to add two nodes which are unreachable were and added, but rs.remove() does not remove it once when logged in inside pod using mongo.
Note: This does not depend on the k8 environment and this issue doesn't seem to affect mongosh but only the mongo shell. I tested this on MongoDB v5.0.7. |
| Comments |
| Comment by Eric Sedor [ 16/May/22 ] |
|
Thanks aasawari.sahasrabuddhe@mongodb.com. Since the mongo shell is deprecated and this works in mongosh, I'm going to close out this ticket. We really recommend that users move to mongosh wherever possible. |
| Comment by Aasawari Sahasrabuddhe [ 16/May/22 ] |
|
Hi Eric, Apologies for the delay. I have uploaded the requested files. The nodes are unreachable because I created a new replica set and added two nodes that do not exist. Please note that this seems to affect only the mongo shell and does not seem to affect mongosh. |
| Comment by Eric Sedor [ 11/May/22 ] |
|
Hi aasawari.sahasrabuddhe@mongodb.com, I've created a secure upload portal for you. Files uploaded to this portal are hosted on Box, are visible only to MongoDB employees, and are routinely deleted after some time. Can you perform a reproduction of this and then, for each node in the replica set, would you please archive (tar or zip) and upload to that link:
Can you also clarify how the nodes have been made to be "unreachable"? |
| Comment by Aasawari Sahasrabuddhe [ 24/Mar/22 ] |
|
The rs.remove() does work when logged in to the pod using mongosh |