[SERVER-1871] Assertions are threw on the server removed from the replica set Created: 29/Sep/10 Updated: 12/Jul/16 Resolved: 17/Nov/10 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | 1.6.3 |
| Fix Version/s: | 1.7.4 |
| Type: | Bug | Priority: | Trivial - P5 |
| Reporter: | Louis Opter | Assignee: | Kristina Chodorow (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Linux 2.6.34.2 on Ubuntu 10.04 userland, mongodb 1.6.3 from 10gen packages |
||
| Attachments: |
|
| Operating System: | ALL |
| Participants: |
| Description |
|
When it is removed from a replica set mongod throws assertions. I expect mongod to handle this more gracefully. Please, find attached the assertion threw and printed in the log of the removed server in the attached file. The assertion is more or less threw in loop, I have only copied it once for sake of clarity. The removed server was a secondary server in the replica set. |
| Comments |
| Comment by Kristina Chodorow (Inactive) [ 17/Nov/10 ] |
|
You can't remove a primary with a reconfig, so that's okay. I made it exit once it's disconnected. |
| Comment by auto [ 17/Nov/10 ] |
|
Author: {'login': 'kchodorow', 'name': 'Kristina Chodorow', 'email': 'kristina@10gen.com'}Message: shutdown server when removed from replica set |
| Comment by Louis Opter [ 02/Oct/10 ] |
|
I think I would go for the simplest way to fix this in the code. However, one question I asked myself when I was removing this server which caused this assertion was: Can I run rs.reconfig(); on the server (which is a primary) I am about to remove? Finally, to remove any ambiguity, I have elected a new primary and run the command from this new primary. If it is possible to run rs.reconfig() on the server to remove, then kill it might be a bad idea. |
| Comment by Dwight Merriman [ 01/Oct/10 ] |
|
agreed it should be cleaner. will fix. do you think the removed server should terminate or just sit there quietly? |
| Comment by Louis Opter [ 30/Sep/10 ] |
|
Yes it is. |
| Comment by Dwight Merriman [ 30/Sep/10 ] |
|
is this from the server which was removed? |