[SERVER-1510] original primary in replica set after reboot didn't get back (rollback fails) Created: 29/Jul/10  Updated: 12/Jul/16  Resolved: 30/Jul/10

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: 1.5.6
Fix Version/s: 1.5.7

Type: Bug Priority: Major - P3
Reporter: Che-Ching Wu Assignee: Dwight Merriman
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Cent OS 5.4


Attachments: File mongod.log.gz    
Operating System: Linux
Participants:

 Description   

1. start shard11, shard12, arbiter using these commands

  1. /opt/mongodb/bin/mongod --fork --dbpath /var/lib/mongo/ --logpath /var/log/mongo/mongod.log --logappend --rest --replSet shard1/shard11,shard12,arbiter
  1. echo 'cfg = {_id: "shard1", members:[{_id: 0, host:"vm-tablestoreshard11"},{_id: 1, host:"vm-tablestoreshard12"},{_id: 2, host:"vm-tablestoreconfig1", "arbiterOnly": true}]}; rs.initiate(cfg);' | /opt/mongodb/bin/mongo

The first command was executed in three servers

2. feeds data
3. kill mongod on shard11 and then the feeding was stopped
4. feeds again
5. start mongod on shard11 and got this message on screen

0x533770 0x4dfbc2 0x55ffdc 0x55d784 0x67ac78 0x67e95b 0x6814b0 0x6826c8 0x682b7d 0x7fa960 0x379ce064a7 0x379c2d3c2d
/opt/mongodb/bin/mongod(_ZN5mongo11msgassertedEiPKc+0x1e0) [0x533770]
/opt/mongodb/bin/mongod(_ZN5mongo7BSONObj4initEPKcb+0x1a2) [0x4dfbc2]
/opt/mongodb/bin/mongod(_ZN5mongo14DBClientCursor4nextEv+0x13c) [0x55ffdc]
/opt/mongodb/bin/mongod(_ZN5mongo14DBClientCursor8nextSafeEv+0x34) [0x55d784]
/opt/mongodb/bin/mongod [0x67ac78]
/opt/mongodb/bin/mongod(_ZN5mongo11ReplSetImpl12syncRollbackERNS_11OplogReaderE+0x4db) [0x67e95b]
/opt/mongodb/bin/mongod(_ZN5mongo11ReplSetImpl8syncTailEv+0x7a0) [0x6814b0]
/opt/mongodb/bin/mongod(_ZN5mongo11ReplSetImpl10syncThreadEv+0x58) [0x6826c8]
/opt/mongodb/bin/mongod(_ZN5mongo15startSyncThreadEv+0xcd) [0x682b7d]
/opt/mongodb/bin/mongod(thread_proxy+0x80) [0x7fa960]
/lib64/libpthread.so.0 [0x379ce064a7]
/lib64/libc.so.6(clone+0x6d) [0x379c2d3c2d]



 Comments   
Comment by Che-Ching Wu [ 30/Jul/10 ]

Yes, the latest build seems work well now. Thanks.

Comment by Dwight Merriman [ 29/Jul/10 ]

can you try it with the (very) latest code? it may work now.

Generated at Thu Feb 08 02:57:14 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.