[SERVER-1418] addshard fails with duplicate key error Created: 13/Jul/10 Updated: 12/Jul/16 Resolved: 21/Jul/10 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | 1.5.4 |
| Fix Version/s: | 1.5.6 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Bryon Ross | Assignee: | Alberto Lerner |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Operating System: | ALL |
| Participants: |
| Description |
|
If two or more shards are added and then the first shard is removed, future addshard commands will fail with a duplicate key error. > use admin ) { "shards" : [ ], "ok" : 1 }> db.runCommand( {addshard : "server1:27018"}) { "added" : "server1:27018", "ok" : 1 }> db.runCommand( {addshard : "server2:27018"}) { "added" : "server2:27018", "ok" : 1 }> db.runCommand( {listshards : 1} ) , { "_id" : "shard1", "host" : "server2:27018" } ], ) ) ) ], ) |
| Comments |
| Comment by Alberto Lerner [ 21/Jul/10 ] |
|
Author: {'login': 'alerner', 'name': 'Alberto Lerner', 'email': 'alerner@10gen.com'}Message: |
| Comment by auto [ 20/Jul/10 ] |
|
Author: {'login': 'alerner', 'name': 'Alberto Lerner', 'email': 'alerner@10gen.com'}Message: |