Commit Graph

143 Commits

Author SHA1 Message Date
Eliot Horowitz
ff0a56cbe5 nicer error message if you try two moveChunks at same time 2011-10-17 15:14:28 -04:00
dwight
08c3888312 make a long running operation terminate if the client has disconnected. we check for this at the beginning
of every request but intra request.  if a request will run for a very long time this is bad.

probably not for backporting -- might be nuances need to smoke for a while

also some yield code cleaning, really just making it easier to read.
2011-10-11 15:16:01 -04:00
Kristina
723c6fbffb make getlasterror return an optime, not an int64 SERVER-3665 2011-09-16 13:05:49 -04:00
Mathias Stearn
0e20be567e use LOG(x) everywhere in mongos 2011-08-08 19:52:56 -04:00
gregs
e5d902202f full API change to command interface, add options SERVER-3405 2011-07-27 15:59:27 -04:00
Eliot Horowitz
a33ed96808 more consistent timing for waiting for commit
check replication status before go into critical section
2011-07-24 00:56:06 -04:00
dwight
eced9583f7 unsafe use of type bool warning on vstudio 2011-07-22 11:46:49 -04:00
Eliot Horowitz
dced9acda8 when deleteing a chunk, wait for replication 2011-07-22 02:10:21 -04:00
Eliot Horowitz
70ef42d223 make sure to wait for core chunk move as well as delta 2011-07-18 08:17:51 -04:00
Eliot Horowitz
f8a3803df9 iniate lastOpApplied 2011-07-17 20:52:57 -04:00
Eliot Horowitz
1a2e5dffc4 try to make log more useful 2011-07-16 18:05:10 -04:00
Eliot Horowitz
8e477b32ee better logging message for moveChunk commit repl 2011-07-16 15:06:43 -04:00
Eliot Horowitz
65e14132a5 better logging for moveChunk commit 2011-07-16 13:28:00 -04:00
Eliot Horowitz
880d735d4c fix chunk cleanup 2011-07-07 02:08:55 -04:00
Eliot Horowitz
9dc66207d3 don't remove old chunk data while in the middle of a migrate 2011-07-06 01:17:39 -04:00
Eliot Horowitz
6cd435b005 SERVER-2563 - make ClientCursor check disk location for record in memory if its going to be needed 2011-06-23 15:46:10 -04:00
Kristina
c4a92236f3 fix auth test and missing hook call 2011-06-23 13:32:05 -04:00
Kristina
9e5a8a53d3 add auth support SERVER-921 2011-06-22 14:22:09 -04:00
Eliot Horowitz
61be4fc835 some include cleaning 2011-06-21 01:56:49 -04:00
Jens Rantil
2bfa1817b5 Merge branch 'master' of https://github.com/mongodb/mongo 2011-05-27 11:38:18 +02:00
Eliot Horowitz
453a586af6 fix spinlock deadlock 2011-05-26 21:23:23 -04:00
Jens Rantil
2c8088f180 Fixing a bunch of spelling mistakes, and a few grammatical errors. No functionality has been changed. 2011-05-26 11:59:13 +02:00
Eliot Horowitz
d010e85f47 better diagnostic message 2011-05-18 17:36:55 -04:00
Eliot Horowitz
0f3cd12149 added a spinlock around _cloneLocs 2011-05-18 12:55:38 -04:00
Eliot Horowitz
0ae14a5055 fix locking and comment 2011-05-18 11:09:03 -04:00
Mathias Stearn
bc1d98cd05 Yield lock while building array of objects to migrate 2011-05-11 15:19:06 -04:00
Eliot Horowitz
56080a9fa4 can't use scoped_ptr with ClientCursor 2011-05-04 14:09:48 -04:00
Dwight
a3cd52048a Merge branch 'master' into main
Conflicts:
	SConstruct
	db/btree.h
	db/db.vcxproj.filters
	db/dbcommands_admin.cpp
	db/geo/2d.cpp
	db/pdfile.cpp
	dbtests/test.vcxproj.filters
2011-05-03 15:53:27 -04:00
Eliot Horowitz
aaad7824cd put all migrate log messages in a migrate RamLog 2011-05-02 14:39:16 -04:00
Eliot Horowitz
e98a9e6c2d cleaning up some logging 2011-05-02 14:33:24 -04:00
Eliot Horowitz
6543ca6e0f better error logging 2011-04-28 11:08:36 -04:00
Dwight
846a7a0bc5 checkpoint index v2 work 2011-04-21 14:53:10 -04:00
Eliot Horowitz
57f9a4ad59 check slave status before chunk migrate commit starts SERVER-2974 2011-04-21 02:10:46 -04:00
Eliot Horowitz
ad187ed5c4 clean error messages 2011-04-15 16:30:23 -04:00
gregs
301376410c conversion of unneeded caused_by macros to methods 2011-04-01 09:45:10 -04:00
gregs
ea1a8d7b1d more accurate migrate errors 2011-03-23 12:47:05 -04:00
Eliot Horowitz
3d6f23651f fix migrate with oversize docs SERVER-2744 180 2011-03-11 16:51:14 -05:00
Eliot Horowitz
40adfd5ebd make sure that index creation is logged on secondaries during migrate SERVER-2665 2011-03-01 23:58:58 -05:00
greg
737a20b8fa Fixes for distributed lock handling time skew.
In general, the current distributed lock is susceptible to time skew in config servers and mongos clients.  This update
uses an algorithm that checks for time skew, as well as providing some more robust tests to make sure a distributed
lock cannot be forced prematurely.  Some documentation on the website, currently hidden from non-10gen, gives more
info.
2011-03-01 14:15:26 -05:00
Eliot Horowitz
f7c8abd417 fix bug in background cursor cleanup that was counting threads wrong preventing migrations back to a shard SERVER-2576 2011-02-17 11:04:51 -05:00
Eliot Horowitz
a4153eb6ed If migrate fails due to oversized chunk, try to split that chunk SERVER-2519 2011-02-16 15:51:25 -05:00
Eliot Horowitz
cfd8af10a2 make sure to init variable 2011-02-13 10:09:10 -05:00
Eliot Horowitz
44f73de7e0 better migrate commit error handling 2011-02-09 00:56:21 -05:00
Eliot Horowitz
58efac445a fix race condition in MigrateFromStatus done() 2011-02-04 23:51:17 -05:00
Eliot Horowitz
84e7e2ce17 don't allow a shard to be the TO of a migrate while its still cleaning up old data SERVER-1842 2011-01-21 19:10:51 -05:00
Alberto Lerner
8a37c45ed7 fix: commitNow requires read lock 2011-01-12 08:49:45 -05:00
Alberto Lerner
91647267b3 Revert "fix: if durability is on, mods would have been journalled already"
This reverts commit b7ca305721.
2011-01-12 08:45:53 -05:00
Alberto Lerner
b7ca305721 fix: if durability is on, mods would have been journalled already 2011-01-11 10:13:30 -08:00
Eliot Horowitz
b828d21630 ran astyle SERVER-2304 2011-01-04 00:40:41 -05:00
Alberto Lerner
2e1be2738a correct messages 2010-12-29 11:59:31 -05:00