Commit Graph

169 Commits

Author SHA1 Message Date
Aaron
d4e08f8a5c log when can't connect to arbiter MINOR 2009-04-30 11:27:00 -04:00
Aaron
947c18dea1 only log reclone once MINOR 2009-04-29 17:28:14 -04:00
Aaron
feb797fabf validate initial sync status in e2e test 2009-04-28 15:33:56 -04:00
Aaron
8083500f7c actually log MINOR 2009-04-27 16:10:21 -04:00
Aaron
e501658529 new master kills new slave before updating own state 2009-04-27 15:32:27 -04:00
Aaron
7560c29dc2 ensure there are no pending ops from new slave before saving position in new master's local oplog 2009-04-27 15:30:17 -04:00
Aaron
992bb3f069 more robust detection of filling up local oplog 2009-04-27 15:11:43 -04:00
Aaron
8305e4cd77 always get owned id and include that mem in returned size 2009-04-27 10:31:32 -04:00
Aaron
8d72ed78c3 don't even check id sets on slave side 2009-04-24 18:14:35 -04:00
Aaron
a074f284b5 remove log MINOR 2009-04-24 15:05:08 -04:00
Aaron
10c0670c52 test for upgrading to collection based set storage 2009-04-24 14:35:13 -04:00
Aaron
c710e7b01a implement upgrade to collection based set storage 2009-04-24 11:14:29 -04:00
Aaron
63cc171bbb tests for db and mem based id sets 2009-04-23 18:01:24 -04:00
Aaron
35ad913596 implement id tracker using db storage 2009-04-23 16:00:57 -04:00
Aaron
be64ebd0ad abstract id management code to a class 2009-04-23 15:00:40 -04:00
Aaron
c9bf4e8527 relocate IdSets objects, fix bug tracking local id 2009-04-23 14:44:05 -04:00
Aaron
c303686482 treat empty database same as just created database when figuring ownership 2009-04-23 13:55:07 -04:00
Aaron
8bf9e88cf1 require manual resync on filled oplog 2009-04-23 12:16:18 -04:00
Aaron
20214fdded keep incompleteCloneDbs updated 2009-04-22 19:10:23 -04:00
Aaron
855b26d008 remove deubg logging MINOR 2009-04-22 17:52:33 -04:00
Aaron
429ea669d7 don't add to incomplete clone list unless going to start clone immediately 2009-04-22 17:45:43 -04:00
Aaron
86bfe9dbdf refactor pairing code 2009-04-22 17:44:23 -04:00
Aaron
047b1fb589 no longer need to filter remote db list with local db list 2009-04-22 16:25:53 -04:00
Aaron
efd6a1ec92 test auto reclone without subsequent write 2009-04-22 15:57:26 -04:00
Aaron
e54bfd896a merge 2009-04-22 15:34:59 -04:00
Aaron
0eb64ee342 get rid of 'dbs' list 2009-04-22 13:53:35 -04:00
Aaron
12d259e8a5 get rid of initialPull variable -- no longer necessary 2009-04-22 11:57:45 -04:00
Aaron
4a3631017b new master forces new slave to resync if either master or slave oplog has filled since while both are master 2009-04-22 10:52:32 -04:00
Aaron
eb5fa5c7d8 add index id in userCreateNS, unless this is not requested in create spec 2009-04-21 15:42:22 -04:00
Aaron
bf656b52ff add sigkill case, handle writes to master during oplog reconciliation 2009-04-17 13:21:50 -04:00
Aaron
3a834f87d4 better 'initialPull' semantics 2009-04-17 10:38:11 -04:00
Aaron
f660a76369 pairing checkpoint 2009-04-16 11:36:06 -04:00
Aaron
0f9c165ad0 don't require new connection for oplog reconciliation, just slave writing to oplog 2009-04-10 17:55:55 -04:00
Aaron
ea5b205666 must be exactly one master when applying oplog after initial sync completed 2009-04-10 17:03:45 -04:00
Aaron
969a20b4f6 track ids across multiple namespaces, handle mods correctly 2009-04-10 15:24:11 -04:00
Aaron
f5b887069c rough first cut of new pair oplog reconciliation logic 2009-04-09 18:50:29 -04:00
Aaron
28a140ee8c basic arbitration e2e test, with minor code fix 2009-04-03 14:24:05 -04:00
Aaron
df91e7d5b1 Fix ReplSource memory leaks 2009-04-01 16:00:56 -04:00
Aaron
cec6d1af97 Persist dbs to add 2009-03-31 14:05:20 -04:00
Aaron
c54883ff61 Always list databases if syncedTo is initial 2009-03-31 12:09:55 -04:00
Aaron
a1706a3d1b Reset ReplSource on resync 2009-03-31 11:44:35 -04:00
Aaron
d74b108dd4 include \!justCreated case, for redundancy 2009-03-31 10:23:05 -04:00
Aaron
d9dff04bbd Don't log db presence explicitly 2009-03-30 17:08:06 -04:00
Aaron
529780f250 Apply first entry when 'initial' 2009-03-30 16:28:52 -04:00
Aaron
ca46791a7b Just exit if --only specified without --source 2009-03-24 11:46:55 -04:00
Aaron
a1a76f96bf Check --pairwith peer spec against local.sources on startup 2009-03-23 11:38:22 -04:00
Aaron
5a276ef621 Replace emptyObj with BSONObj() 2009-03-19 16:23:04 -04:00
Aaron
6d10afbd49 Find requested oplog entry starting from tail of log 2009-03-18 17:24:10 -04:00
Aaron
ef94f514b7 On resync, clear all nontrivial local dbs that exist on remote machine 2009-03-18 13:45:32 -04:00
Aaron
5711417230 Handle 'only' spec when reading db list 2009-03-17 18:22:17 -04:00