[SERVER-1519] rs.initiate() generates bad config: all host _id's are 0 Created: 30/Jul/10 Updated: 12/Jul/16 Resolved: 02/Aug/10 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | 1.5.6 |
| Fix Version/s: | 1.5.8 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Tony Hannan | Assignee: | Dwight Merriman |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
db version v1.5.7-pre-, pdfile version 4.5 |
||
| Operating System: | ALL |
| Participants: |
| Description |
|
1. Start two replica set servers that have not been initiated yet 2. Start mongo shell connecting to one of them 3. Initiate replica set using default config In server1 log below, notice that generated configuration has _id 0 for both hosts. That is the problem. It works when you supply the config explicitly with unique host _ids. Fri Jul 30 12:12:34 [conn3] replSet replSetInitiate admin command received from client , { _id: 0, host: "<host>:27018" } ] } |
| Comments |
| Comment by Tony Hannan [ 03/Aug/10 ] |
|
works now |
| Comment by auto [ 02/Aug/10 ] |
|
Author: {'login': 'dwight', 'name': 'Dwight', 'email': 'dwight@10gen.com'}Message: rs |