Commit Graph

19139 Commits

Author SHA1 Message Date
Spencer T Brody
cb2e7e34d5 Decrease timeout on replication catching up in migration SERVER-7472 2012-11-16 17:35:21 -05:00
Spencer T Brody
c527cc73e2 Use write lock instead of read lock when exiting critical section so lock acquisition will be greedy 2012-11-16 17:34:49 -05:00
Spencer T Brody
9032d392d0 Fix how we abort a commit if _recvChunkVersion throws an exception 2012-11-16 17:34:19 -05:00
Greg Studer
448ef26e3d SERVER-7666 don't drain maxSize shards, only prevent to-migrations 2012-11-15 12:38:52 -05:00
Eric Milkie
c6039b222e post 2.2.2-rc0 2012-11-14 16:32:08 -05:00
Dan Pasette
ef972b46c9 BUMP 2.2.2-rc0 2.2.2-rc0 2012-11-14 09:38:44 -05:00
Randolph Tan
00b4198bd1 Removed dead code from SERVER-7612 2012-11-13 14:28:56 -05:00
Randolph Tan
ef576759d8 SERVER-7612 explicit primary read pref does not work well with shard versioning
Fixed tests for newly added out parameter.
2012-11-13 13:45:27 -05:00
Randolph Tan
3d3f7e28b0 SERVER-7612 explicit primary read pref does not work well with shard versioning
Ensure that selectNodeUsingTags will use the same connection to the primary with checkMaster
2012-11-13 13:45:13 -05:00
Randolph Tan
75d8b0b022 Style/formating change: Modified replica_set_monitor_test.cpp to use the newer test framework 2012-11-13 13:44:47 -05:00
Shaun Verch
e716273e6e SERVER-6625 Log commands as commands instead of queries in top stats 2012-11-11 14:16:18 -05:00
Eric Milkie
ff52cf9251 include what you use, to fix compilation 2012-11-09 15:20:28 -05:00
Spencer T Brody
08e7d50eff Buildbot: use map instead of unordered_map because unordered_map can't handle unsigned long long 2012-11-09 14:54:04 -05:00
Spencer T Brody
3cc3b033b4 SERVER-7460 Make sure connections never get version information associated with them from an old connection 2012-11-09 14:53:57 -05:00
Eric Milkie
39f9638a40 SERVER-7551 use same batch limits for initialsync and synctail 2012-11-09 14:21:30 -05:00
Eric Milkie
105f52b07e prevent test failures by raising epsilon value for SleepBackoff test 2012-11-08 19:10:51 -05:00
Spencer T Brody
f96289dd39 SERVER-7259 Fix mongodump output to stdout by removing log line and making sure stdout is flushed
Conflicts:
	src/mongo/tools/tool.cpp
2012-11-07 15:35:35 -05:00
Eric Milkie
2642f0c09b SERVER-7206 change global variable in profiler to be heap-based
Conflicts:
	src/mongo/db/instance.cpp
2012-11-07 15:32:05 -05:00
Shaun Verch
1b0daa024f SERVER-7145 Updated test to reflect new treatment of undefined in jsonString strict 2012-11-07 09:33:12 -05:00
Kristina
43efcff8b1 SERVER-7367 Add default constructor for empty config 2012-11-06 18:23:58 -05:00
Kristina
ea86be562f SERVER-7498 Check config is not null before dereferencing 2012-11-06 17:43:56 -05:00
Kristina
d7fe5dc2d8 SERVER-7498 chainingAllowed option for replication 2012-11-06 17:33:04 -05:00
Kristina
e1cb581da6 SERVER-7367 Don't go through the network to pick up a local config 2012-11-06 17:10:22 -05:00
Eric Milkie
b5ce59fb25 fix compilation warning; NULL needs to be 0 2012-11-06 16:24:01 -05:00
Eric Milkie
cfac2cb0aa SERVER-7551 do not convert updates to upserts if primary is pre-2.2
Converting updates to upserts during replication was added for version 2.2.0.
This code was dependent on all operators being idempotent.
Some operators in 2.0.x are not fully idempotent, so if we are reading an
oplog generated by a 2.0.x node, we shouldn't activate this new feature.
2012-11-06 16:23:20 -05:00
Eric Milkie
742094a002 SERVER-7516 do not swallow socket errors during cloner copies 2012-11-06 16:22:22 -05:00
Shaun Verch
6e3c5b7d4f SERVER-7104 Fixed handling of Undefined type in jsonString and added test cases 2012-11-06 16:01:06 -05:00
Tad Marshall
a2af35fefe SERVER-7036 do not insert NULs in abbreviated long logged lines
Pass 'false' for includeEndingNull in two calls to BufBuilder::appendStr
to we don't insert null terminators in the middle of an output buffer.
2012-11-06 16:00:35 -05:00
Greg Studer
209ca5fb26 SERVER-6765 less aggressive backoff 2012-11-06 16:00:23 -05:00
Tad Marshall
1ce89e9ff2 SERVER-1887 make db.coll.dropIndex() work with name or key object
Remove the fixup of the user's index specification that was converting
it into a default-style index name.  Adjust comments in code and help text
to describe how to use db.collectionName.dropIndex().
2012-11-06 15:59:56 -05:00
Kristina
e6ebc2a60e SERVER-7501 Build indexes in the foreground on non-primaries 2012-11-06 15:58:20 -05:00
Mathias Stearn
910a15e069 SERVER-7491: Correctly generate projections for subfields of _id
This requires special casing due to SERVER-7502
2012-11-06 15:55:59 -05:00
Greg Studer
7eabf829d3 SERVER-7484 zero results should not trigger error w/ returnPartial 2012-11-06 15:51:57 -05:00
Eliot Horowitz
c8dd82004a SERVER-7443 - make sure writeback ids are in order
Conflicts:
	src/mongo/s/d_writeback.h
2012-11-06 15:50:50 -05:00
Andy Schwerin
fdebd7bae6 SERVER-7410 Fix SYSLIBDEPS functionality
The previous implementation was not recursively following the LIBDEPS hierarchy, looking for SYSLIBDEPS
to add.  Instead, it was trying to walk a hierachy like LIBDEPS rooted in the SYSLIBDEPS variable.  This
isn't really a meaningful behavior, since SYSLIBDEPS always list system libraries, which are always leaf
nodes in the dependency graph for our build system.
2012-11-06 15:46:22 -05:00
Mathias Stearn
f4270abac0 SERVER-7408 Correctly handle $skip and $limit in sharded agg
This bug only comes up if the first $skip or $limit precedes the first
$sort or $limit. This is very rare, but should still be handled
correctly.
2012-11-06 15:45:44 -05:00
Tad Marshall
f43972dd58 SERVER-7378 Prevent WRITETODATAFILES and FlushViewOfFile from running at the same time
Prevent errors on Azure Storage drives that occur when a memory-mapped
data file is modified in memory while it is being flushed to disk with
FlushViewOfFile.  Use a SimpleMutex (Critical Section on Windows) to
prevent these two routines from running at the same time.
2012-11-06 15:45:20 -05:00
Greg Studer
4a8a7627d9 SERVER-7369 WBL too verbose when calling gle 2012-11-06 15:42:37 -05:00
Tad Marshall
7a5f506e0b SERVER-7352 do not try to exit cleanly in Windows exception handler
In Windows, exit after an access violation the same way we exit on other
platforms after a segfault; with ::_exit(EXIT_ABRUPT).
2012-11-06 15:41:18 -05:00
Ian Whalen
8d44b0127a SERVER-7302 Add spidermonkey to third-party-notices file 2012-11-06 15:41:16 -05:00
Tad Marshall
9cf0f3c344 SERVER-7253 use macro for snprintf on Windows instead of function pointer
Call _snprintf on Windows or snprintf on other platforms directly instead
of through a statically initialized function pointer.  Windows code was
calling sprintf_s, but _snprintf works fine and is already used in other
places in the code.
2012-11-06 15:41:16 -05:00
Eliot Horowitz
5493d59afc SERVER-7204 - reduce spam in balancer shard selection log() to LOG(1) 2012-11-06 15:41:16 -05:00
Mathias Stearn
843a10ca71 SERVER-7190 Make mongodump metadata.json proper json 2012-11-06 15:41:16 -05:00
Randolph Tan
67d9b0daa4 SERVER-7111 DBClientReplicaSet::connect should not assert if primary is down but secondaries are available 2012-11-06 15:41:16 -05:00
Tad Marshall
c5bfd792bd SERVER-7289 add inexpensive tests to validate command
Checks added to the validate command:
1) The 'xprev' pointer in each extent in the extent list should point
   to the previous extent, or be null for the first extent
2) The 'lastExtent' pointer in NamespaceDetails should point to the last extent
3) If an exception is thrown while counting extents, identify the failing extent
4) If an exception is thrown while counting extents, report the count
5) If an exception is thrown while counting extents, the first extent should be
   validated and the check for 'xprev' in the first extent being null should be done
6) If an invalid signature is found in an extent, report the value found and
   identify the extent
7) The "self-pointer" 'myLoc' in an extent should be validated
8) The extent size should be compared with Extent::minSize(), not zero
2012-11-06 15:41:16 -05:00
Tad Marshall
c2378fd2d7 SERVER-7045 check all extents in validate command, report results
Move the Extent::validates() routine from pdfile.h to pdfile.cpp, make
it return messages for errors it finds, call it for every extent instead
of just for the first extent.  Check extent DiskLoc against 'myLoc'.
2012-11-06 15:41:16 -05:00
Tad Marshall
8bb07be63a SERVER-7031 don't shut down in Windows on CTRL_LOGOFF_EVENT
Versions of Windows prior to Windows Vista send a CTRL_LOGOFF_EVENT
to services (at the handler set by SetConsoleCtrlHandler) when the
interactive user logs off.  Return FALSE from this notification and
don't run consoleTerminate().
2012-11-06 15:41:16 -05:00
Kristina
b898687cbe SERVER-6881 Prefer not to sync from hidden nodes 2012-11-06 15:41:15 -05:00
Tad Marshall
b6c9d3bfb3 SERVER-6207 protect printWindowsStackTrace() with critical section
Use SimpleMutex::scoped_lock to make printWindowsStackTrace() run in
only one thread at a time.
2012-11-06 15:41:15 -05:00
Eric Milkie
e6b9b76748 post 2.2.1 2012-10-30 11:43:50 -04:00