Commit Graph

128 Commits

Author SHA1 Message Date
Dwight
9a02f4a03f SERVER-3609 we acquire a write lock on every operation applied. if we do multiple operations in a write lock starvation can be avoided when there is very heavy simultaneous read load. 2011-10-14 13:44:23 -04:00
dwight
f32f57710a replset log when requerying during sync 2011-10-10 17:57:34 -04:00
Kristina
d21c163de2 Make secondaries go into recovering state when auth is wrong SERVER-3715 2011-10-05 16:56:06 -04:00
dwight
a0288e57f0 clearer logging 2011-09-22 22:44:06 -04:00
dwight
00ebd4c1f9 on a missing object, thats ok as a delete may occur later 2011-09-22 22:34:54 -04:00
Kristina
e9c2884d35 retry initial syncing oplog until we run out of targets SERVER-3183 2011-09-21 17:40:50 -04:00
Kristina
a398ef5dcd more flexibility on source choice for initial sync SERVER-3183 2011-09-21 15:06:27 -04:00
dwight
5857346b9b continuation of initial sync fix 2011-09-19 21:38:45 -04:00
Kristina
1f4be0a35c stop initial sync once minvalid is reached SERVER-3899 2011-09-19 13:06:04 -04:00
dwight
fa6ebc65be fix a possible issue with initial sync with replication when updates are in flight.
also correct UpdateResult in one case
2011-09-18 17:23:28 -04:00
dwight
e00aa7eb32 cleaning minor 2011-09-18 15:35:46 -04:00
Kristina
6b61f6a212 change log to warning SERVER-3712 2011-08-30 11:18:45 -04:00
dwight
63c87fe20c use LOG() more 2011-08-02 02:36:46 -04:00
Kristina
c84f98ab80 maintenance mode for commands SERVER-3427 2011-07-29 11:48:09 -04:00
Kristina
1154090a71 display error doc when sync fails 2011-07-29 11:31:20 -04:00
Kristina
b3e61c8c6b unlock ghost sync before going to a remote server 2011-07-18 18:08:12 -04:00
Kristina
0adffac1b2 put ghost sync startup method back in 2011-07-18 17:01:44 -04:00
dwight
09a6f288b2 standardize thread names a bit, including starting
all replset threads with 'rs' and user camelcase for thread
names and remove spaces for compactness in our logging
2011-07-16 18:18:03 -04:00
Eliot Horowitz
a1ab42a281 fix concurrency around GhostSync 2011-07-16 08:03:52 -04:00
Eliot Horowitz
beb8dc7084 remove unused method in GhostSync 2011-07-16 07:33:01 -04:00
Eliot Horowitz
d5bb38763d log cleaning 2011-07-15 10:59:24 -04:00
Kristina
db06c7a6d3 slave tracking optimizations 2011-07-14 13:40:22 -04:00
Kristina
f37b39fab8 use tailing queries for initial sync 2011-07-06 10:21:06 -04:00
Kristina
759e1e646d allow members to stay gracefully alive when removed from a set 2011-06-14 16:05:44 -04:00
Kristina
ab883bc2ed fix rs log messages 2011-06-10 09:59:17 -04:00
Kristina
f0337ae981 fast sync passthrough SERVER-992 2011-06-09 15:05:34 -04:00
Kristina
a3b4ae9f1c less verbose logging for slaveDelay SERVER-2437 2011-06-01 11:06:23 -04:00
Kristina
191b585ef9 stale members cannot become primary SERVER-2969 2011-05-27 12:37:27 -04:00
dwight
bd5b607137 make applylogop slightly faster and general applyop cleaning 2011-05-23 20:03:18 -04:00
dwight
0c02f32878 comments, cleaning 2011-05-23 20:03:03 -04:00
Kristina
08730e6a5f don't assert on legit query errors, just retry 2011-05-17 15:04:34 -04:00
Kristina
e14f0af046 less aggressive about updating oplog pos 2011-05-16 14:52:40 -04:00
Kristina
86b739cdcc fixed sync cache access 2011-05-14 11:43:25 -04:00
Kristina
8f2db1d98c removed extra lock and added more logging 2011-05-13 10:55:35 -04:00
Kristina
3a8448bac6 acquire rs lock before write lock when saving config 2011-05-12 22:38:10 -04:00
Kristina
9c4a6bebd2 make sure we don't create a sync loop 2011-05-12 15:21:37 -04:00
Kristina
cf2d5f41a0 fix sync error messages 2011-05-11 10:09:14 -04:00
Kristina
7616b49d6d Revert "unreferenced var warning"
This reverts commit e0f23a5a16.
2011-05-11 09:18:16 -04:00
dwight
e0f23a5a16 unreferenced var warning 2011-05-10 21:34:30 -04:00
Kristina
115a795e99 op passthrough for w SERVER-992 2011-05-10 19:15:58 -04:00
Kristina
ff711f0d48 better logging 2011-05-10 17:35:55 -04:00
Eliot Horowitz
c83b140fbe store authed username in AuthenticationInfo SERVER-3074 2011-05-10 14:50:32 -04:00
Kristina
9dbe9864db more locking during theReplSet fields' r/w SERVER-3032 2011-05-04 18:46:16 -04:00
Kristina
5eaaddba61 more debugging info on sync errors SERVER-3031 2011-05-03 12:01:31 -04:00
Kristina
1008b8240e some rephrasing and comments 2011-05-02 18:26:08 -04:00
Dwight
0195c538dd all the replSet logging starts with the word replset for easy grepping; a couple changes to keep that consistent 2011-04-28 15:47:10 -04:00
gregs
a27401fa56 better logging in case of reconfig issues 2011-04-28 15:12:54 -04:00
Greg Studer
a4467c4849 fix for priority1.js - check still in rs before sync 2011-04-27 09:29:45 -07:00
gregs
ee92cf9882 log default rs heartbeats 2011-04-26 14:28:30 -04:00
Kristina
12c745e387 comments 2011-04-13 14:30:12 -04:00