Dwight
8f19eec99d
minor unrefd local variable
2011-09-26 12:46:23 -04:00
Eliot Horowitz
357f336ff9
if a chunk is too big to migrate, mark it as jumbo and move on SERVER-2571
2011-09-21 21:14:55 -04:00
Mathias Stearn
0e20be567e
use LOG(x) everywhere in mongos
2011-08-08 19:52:56 -04:00
Mathias Stearn
c69a6247ed
fast-path for ShardKey::extractFields to create less garbage if already in key form
2011-08-08 19:52:56 -04:00
Eliot Horowitz
f444ceb0ca
more checking to not reload ChunkManager so much
2011-06-29 01:08:32 -04:00
Eliot Horowitz
2aa64fb929
less thrashing when config changes
2011-06-29 00:49:30 -04:00
Eliot
0d4db0b5b0
Merge pull request #40 from JensRantil/master
...
Spelling and grammar corrections only
2011-06-15 19:53:25 -07:00
Eliot Horowitz
8561e862e3
some logging in chunk.cpp for chunk cloading
2011-06-06 12:02:14 -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
dwight
8a0660ac31
use firstElementFieldName()
2011-05-23 20:03:19 -04:00
Eliot Horowitz
73209450a2
more comments
2011-05-19 11:22:01 -04:00
Eliot Horowitz
4f9ae84652
prep for multiplexing connections between mongos and mongod more effectively
2011-05-18 17:36:55 -04:00
Mathias Stearn
2758a8bac0
Don't migrate high/low chunk while balancer is disabled SERVER-3070
2011-05-09 15:02:39 -04:00
Mathias Stearn
8e216ef190
Don't need to lock in ChunkManager anymore except for distlock in drop()
2011-05-06 19:01:04 -04:00
Mathias Stearn
bb0873d14c
All members of ChunkManager are now const (except for mutable locks)
2011-05-06 19:01:04 -04:00
Mathias Stearn
24cd932f3e
Make ChunkManager::_load and _isValid use passed-in maps
2011-05-06 19:01:04 -04:00
Mathias Stearn
e15ca90662
Don't need reloadRange anymore
2011-05-06 19:01:04 -04:00
Mathias Stearn
50a0115bd2
ChunkManager::createFirstChunk shouldn't modify this
2011-05-06 19:01:03 -04:00
Mathias Stearn
708f76bc60
Move Chunk::unserialize into constructor
2011-05-06 19:01:03 -04:00
Mathias Stearn
71f5dd3d5e
remove no-op test. Necessary for but separate from next commit
2011-05-06 19:01:03 -04:00
Mathias Stearn
28e399333b
Remove support for pre 1.6 chunk format
2011-05-06 19:01:03 -04:00
Mathias Stearn
596d71e61d
set _dataWritten in initializer
2011-05-06 19:01:03 -04:00
Mathias Stearn
d9e87d1099
make almost all public Chunk and ChunkManager methods const
2011-05-06 19:01:03 -04:00
Mathias Stearn
6ccfff789a
inline and remove _reload_in_lock
2011-05-06 19:01:03 -04:00
Mathias Stearn
7cf37b75c3
Don't use _reload_inlock here
2011-05-06 19:01:03 -04:00
Mathias Stearn
fafe6cb761
ChunkManger::reload() helper
2011-05-06 19:01:03 -04:00
Mathias Stearn
80d6f91f19
Don't return Chunk up stack after ChunkMangagerPtr goes out of scope
2011-05-05 22:52:10 -04:00
Mathias Stearn
791717764d
Move chunk obj counting into mongod.
...
Was segfaulting because newChunk->_master could become dangling
2011-05-05 22:52:10 -04:00
Eliot Horowitz
f3eaa8b804
remove _reload
2011-05-05 18:01:37 -04:00
Eliot Horowitz
dbe76163c5
don't update your own config on a split
2011-05-05 18:01:37 -04:00
Eliot Horowitz
d41794452a
cleaning moveIfShould
2011-05-05 18:01:37 -04:00
Aaron
ddd7dd323d
rename FieldRangeOrSet to OrRangeGenerator
2011-05-02 10:33:52 -07:00
Eliot Horowitz
42942893e1
remove some overly verbose debugging
2011-04-25 23:53:23 -04:00
Aaron
a227326132
SERVER-958 Track non single key field ranges and utilize them in query planning
2011-04-25 13:29:50 -07:00
Mathias Stearn
e8ab9155c4
don't call _reload_inlock while not locked
2011-04-18 19:24:49 -04:00
Eliot Horowitz
138040ccc0
not checking msgasserted for dupes
2011-04-15 13:39:47 -04:00
gregs
301376410c
conversion of unneeded caused_by macros to methods
2011-04-01 09:45:10 -04:00
Eliot Horowitz
bf7de73165
SERVER-2797 fix BTreeCursor handling and ensure chunks aren't over sized
2011-03-19 15:49:22 -04: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
Kristina Chodorow
a9e3511eda
increase number of initial chunk splits allowed to fit 256GB of data SERVER-2271
2011-02-18 16:38:51 -05:00
Eliot Horowitz
a241bf7b69
Revert "increase threshold for making chunks smaller"
...
This reverts commit e2df9ecff83e8e3e2a7c404f1b329a1296f836a3.
2011-01-31 13:37:42 -05:00
Eliot Horowitz
5d157ac521
increase threshold for making chunks smaller
2011-01-31 13:37:42 -05:00
Eliot Horowitz
f4c3936ebc
log splitChunk failures
2011-01-29 03:17:59 -05:00
Eliot Horowitz
1b68b2f53b
fix some split logging
2011-01-29 01:25:24 -05:00
Eliot Horowitz
cf47b32ead
don't keep checking for split points after a failure
2011-01-21 14:19:49 -05:00
Eliot Horowitz
b828d21630
ran astyle SERVER-2304
2011-01-04 00:40:41 -05:00
Alberto Lerner
abf4b56913
SERVER-2036 refresh mongos chunk state if a split failed as well
2010-12-29 11:02:53 -05:00
Alberto Lerner
acb40fb684
SERVER-2306 split request now carries expected shard information
2010-12-29 10:53:02 -05:00
Alberto Lerner
70cf11916e
better error handling in split client side (still needs work)
2010-12-29 09:59:05 -05:00
Alberto Lerner
de3be2307d
a failure in migrate can be because of chunk boundaries being stale
2010-12-27 15:00:11 -05:00