Commit Graph

120 Commits

Author SHA1 Message Date
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
Alberto Lerner
6da107cc62 makes a bit easier to detect an aborted move in config.changelog 2010-12-28 18:49:53 -05:00
Alberto Lerner
5e5ed8bb03 message warns explicitly that operation aborted 2010-12-28 14:54:29 -05:00
Alberto Lerner
84a30c24e9 log if moveChunk/splitChunk did not pass admission checks 2010-12-27 14:30:54 -05:00
Alberto Lerner
6c3aac4b9a better logging messages 2010-12-19 17:55:36 -05:00
Alberto Lerner
fc38980536 SERVER-2040 deleted that message by mistake in last commit 2010-12-19 16:11:01 -05:00
Alberto Lerner
63c23a2359 SERVER-2024 if a network error is raised during migrate commit, pause, and recheck 2010-12-19 16:04:45 -05:00
Alberto Lerner
34613b0bde make finding a stuck/slow migrate a bit easier 2010-12-18 18:38:43 -05:00
Alberto Lerner
d3d11d6863 SERVER-1358 (Fix) chunk size accounting was using sum of all chunks on shards 2010-12-18 15:13:52 -05:00
Alberto Lerner
a3b3c83f96 SERVER-1358 don't migrate a chunk larger than max chunk size (but allow explicit override) 2010-12-17 17:49:47 -05:00
Alberto Lerner
2325d9c61a SERVER-2119 push migrated chunk data to secondary/journal at migrate commit 2010-12-15 17:19:51 -05:00
Alberto Lerner
4597deb9d4 SERVER-2024 disambiguate 2010-12-11 16:25:44 -05:00
Alberto Lerner
d2e9c85869 SERVER-2024 on migrate commit, either update both TO/FROM shards or none 2010-12-11 16:17:57 -05:00
Alberto Lerner
c6016d1ac7 fix: reset version to the right number if migrate commit fails 2010-12-08 16:16:29 -05:00
Alberto Lerner
b9c944466f hook new versioning machinery and allow mongod to maintain per-chunk state 2010-12-04 14:49:09 -05:00
Alberto Lerner
2382b52810 dblock is deprecated 2010-11-24 18:49:19 -05:00
Alberto Lerner
82dbe74c87 comment 2010-11-24 10:42:22 -05:00
Alberto Lerner
2478a98d79 SERVER-2119 Just to tie code site and JIRA item 2010-11-18 12:35:31 -05:00
Alberto Lerner
e58d6da404 SERVER-2024 reminder comment; implementation depends on new state on ChunkMater that's coming up 2010-11-12 23:41:41 -05:00
Alberto Lerner
e982a191b6 add 'passed' message 2010-11-09 17:38:08 -05:00
Alberto Lerner
8d306011ef SERVER-2068 make sure to use the same thread name 2010-11-08 09:41:35 -05:00
Eliot Horowitz
b741da2a0e when cleaning a chunk after migrating, don't store those deletes in the xfer list SERVER-2068 2010-11-08 00:17:09 -05:00
Alberto Lerner
f95f7a44c3 SERVER-1068 test deletions regardless of command line args 2010-11-07 18:12:05 -05:00
Alberto Lerner
0ede22a208 SERVER-2068 check on the TO side of a chunk migration before applying deletions 2010-11-07 16:31:53 -05:00