Commit Graph

278 Commits

Author SHA1 Message Date
Jonathan Reams
338f764be0 SERVER-6102 Deserialize BSON undefined as JS undefined 2015-11-11 11:12:17 -05:00
Kaloian Manassiev
706ac90265 SERVER-21186 Make all sharding tests use default verbosity of 1
The default ShardingTest verbosity is currently zero, but we have many
tests, which bump it to 1 and even higher.

Since verbosity level of 0 is sometimes insufficient for investigating
transient failures, this change makes the default to be 1 and removes all
places, which explicitly make it 1 or higher.
2015-11-11 11:01:18 -05:00
Mathias Stearn
f79d188718 SERVER-21287 $lookup should always make $eq queries 2015-11-04 13:53:03 -05:00
Charlie Swanson
2cc2d7da2b SERVER-19095 Move $lookup to community edition 2015-10-30 12:06:19 -04:00
James Wahlin
97da4befad SERVER-20969 Restrict $indexStats to first pipeline stage 2015-10-28 15:44:02 -04:00
Kaloian Manassiev
3db9d1338c SERVER-21009 Remove usages of the multi-argument ShardingTest constructor
No functional changes, just converting everything to use the JSON-based
constructor.

Also moves some sharding-specific tests out of noPassthroughWithMongod and
under the sharding suite.
2015-10-23 09:50:35 -04:00
David Storch
737bb20fcb SERVER-20935 do not attempt to attach shard version to OpCtx inside direct client 2015-10-22 13:40:06 -04:00
Charlie Swanson
c7ddaa120d SERVER-20168 Empty array should not be present in document after $unwind 2015-10-07 16:11:46 -04:00
Charlie Swanson
9c46f95145 SERVER-20595 The includeArrayIndex option to $unwind should specify a path 2015-10-07 16:11:45 -04:00
matt dannenberg
d789bca4c9 SERVER-18498 New replica set configurations have protocolVersion=1 by default
This re-adds Siyuan's work from commits 19d2885ec5 and 362aac3937.
2015-10-01 08:00:10 -04:00
Ramon Fernandez
114ad4ae31 SERVER-20696 make testing TZ-independent 2015-10-01 10:57:40 -04:00
Charlie Swanson
522f5a2bff SERVER-4588 Add option to $unwind stage to include array index in output
Adds a includeArrayIndex option to the $unwind stage. If this option is
specified, the $unwind stage will output values with the structure {index:
<array index>, value: <array value>} instead of just the array value.

Note this does not affect the behavior non-arrays or empty arrays. If
includeArrayIndex and preserveNullAndEmptyArrays are both specified, values
from a non-empty array will have an index attached, and all other values will
pass through unchanged.
2015-09-11 15:30:11 -04:00
Charlie Swanson
3cb6039e5d SERVER-20168 Add option to $unwind stage for treatment of nullish values
Adds a preserveNullAndEmptyArrays option to the $unwind stage. If this option
is specified, the $unwind stage will allow documents with nullish values for
the specified unwinding path, or those with an empty array as the value for
that path, to pass through unaltered.

Note this does not affect the behavior of non-nullish, non-array values.
2015-09-11 15:30:11 -04:00
Charlie Swanson
b8450fd52c SERVER-19182 Avoid crash during pipeline with an initial $sample stage on a non-existent collection 2015-08-27 15:07:21 -04:00
Charlie Swanson
843fd8ae34 SERVER-12015 Re-enable use of covering indices in an aggregation pipeline 2015-08-27 13:01:50 -04:00
Spencer T Brody
0d61a38662 SERVER-19855 Use ShardConnection for migrations and splits
This reverts commit 169a7ca486.
2015-08-25 15:00:48 -04:00
Benety Goh
169a7ca486 Revert "SERVER-19855 Use ShardConnection for migrations and splits"
This reverts commit fdc2aec174.
2015-08-21 22:16:04 -04:00
Kaloian Manassiev
fdc2aec174 Revert "Revert "SERVER-19855 Use ShardConnection for migrations and splits""
This reverts commit bae1d256c5.
2015-08-21 17:00:14 -04:00
Kaloian Manassiev
bae1d256c5 Revert "SERVER-19855 Use ShardConnection for migrations and splits"
This reverts commit f8cdaf32b6.
2015-08-21 13:12:16 -04:00
Kaloian Manassiev
f8cdaf32b6 SERVER-19855 Use ShardConnection for migrations and splits
This ensures that prior to sending the operation on the wire, the host
will be primed to know that it is part of a sharded cluster.
2015-08-21 12:10:38 -04:00
James Cohan
f9828f5a03 SERVER-9625 Makes $sum, $avg, $min, $max, $stdDevPop, and $stdDevSamp accumulators available as expressions 2015-08-11 17:08:41 -04:00
Charlie Swanson
326aa0029a SERVER-19548 Add $ceil, $floor, and $trunc aggregation expressions 2015-08-07 16:56:28 -04:00
James Cohan
eae8944738 Revert "Whitespace"
This reverts commit 94c384780d.
2015-08-07 14:18:42 -04:00
James Cohan
94c384780d Whitespace 2015-08-07 13:57:51 -04:00
James Cohan
a8176cf1da SERVER-18427 Adds $log, $log10, $ln, $pow, and $exp aggregation expressions 2015-08-07 10:34:41 -04:00
James Cohan
6ba08bc5bd Revert "SERVER-18427 Adds $log, $log10, $ln, $pow, and $exp aggregation expressions"
This reverts commit f0541cc1f7.
2015-08-04 13:28:16 -04:00
James Cohan
f0541cc1f7 SERVER-18427 Adds $log, $log10, $ln, $pow, and $exp aggregation expressions 2015-07-31 16:51:55 -04:00
Kaloian Manassiev
d5a9eea40f SERVER-19319 SetShardVersionRequest
This change introduces a SetShardVersionRequest class, which will be used
to parse and construct the BSON for setShardVersion commands.
2015-07-31 14:33:41 -04:00
Charlie Swanson
610765fdb9 SERVER-533 Add aggregation stage to randomly sample documents 2015-07-20 16:03:29 -04:00
Charlie Swanson
4f1dda92ed Revert "$sample"
This reverts commit 824776f671.
2015-07-20 15:59:22 -04:00
Charlie Swanson
824776f671 $sample
Conflicts:
	src/mongo/db/pipeline/document_source.h
	src/mongo/db/pipeline/document_source_test.cpp
2015-07-20 15:40:54 -04:00
Charlie Swanson
84699e46bf SERVER-14691: $avg accumulator should return null if it receives no numeric inputs 2015-07-15 16:55:14 -04:00
Charlie Swanson
c6e7a0874e SERVER-8141 Avoid treating arrays as literals in aggregation pipeline 2015-07-15 16:24:44 -04:00
Charlie Swanson
1e1bbec4cb SERVER-6074 Add $slice aggregation expression 2015-07-14 10:06:27 -04:00
James Cohan
4f4e36b69b SERVER-8568 Add $sqrt aggregation expression 2015-07-01 11:45:39 -04:00
James Cohan
9710407506 Revert "SERVER-8568 Add $sqrt aggregation expression"
This reverts commit 4423ee5c49.
2015-06-30 18:01:10 -04:00
James Cohan
4423ee5c49 SERVER-8568 Add $sqrt aggregation expression 2015-06-30 17:34:57 -04:00
Adam Midvidy
a05fe115d4 SERVER-19143 remove ns from OpDebug and synchronize access to NS in curop 2015-06-29 09:27:55 -04:00
Kevin Albertson
2a20332297 SERVER-14421 Adds minDistance to geoNear aggregate operator 2015-06-18 15:18:33 -04:00
Charlie Swanson
c317c2b941 SERVER-4589: Add $arrayElemAt aggregation expression 2015-06-18 14:50:53 -04:00
Charlie Swanson
5717454bc3 SERVER-14872: Aggregation expression to concatenate multiple arrays into one 2015-06-15 13:29:53 -04:00
Mathias Stearn
faf0663603 SERVER-5044 Use relative error when testing sharded $stdDev operations 2015-06-10 13:26:46 -04:00
James Cohan
cfbd477d73 Add $abs aggregation expression 2015-06-09 17:33:23 -04:00
Mathias Stearn
ac0ff84d3f SERVER-5044 Standard Deviation accumulator operators 2015-06-09 16:33:21 -04:00
Charlie Swanson
7d526bbc47 SERVER-7656 Execute aggregation command on targeted shard if first stage is exact match on shard key 2015-05-28 12:27:21 -04:00
Charlie Swanson
6e3d310664 Re-enable balancing in jstests/aggregation/testShard1.js 2015-05-28 12:25:46 -04:00
Charlie Swanson
bc45142fd9 SERVER-6801: Error when aggregation's $substr expression results in invalid UTF-8 2015-05-22 15:18:32 -04:00
Charlie Swanson
30d46ef4c2 SERVER-18445 include bugs/ subdirectory in aggregation suite, remove test_bugs.js 2015-05-22 10:03:59 -04:00
Adam Midvidy
cb8164f6f7 SERVER-18198 fix incorrect logic for applying read pref to aggregate command 2015-05-15 17:07:06 -04:00
Randolph Tan
280fbae904 SERVER-18044 Make sharding test explicitly set primary shards for databases 2015-05-15 10:11:31 -04:00