Commit Graph

38030 Commits

Author SHA1 Message Date
Ian Whalen
d3421e2186 SERVER-29767 Update CONTRIBUTING.rst to point to github wiki 2017-06-21 11:05:25 -04:00
Sara Golemon
aafc13d678 SERVER-29169 ServerAddressRestriction 2017-06-20 22:19:35 -04:00
Sara Golemon
2725293934 SERVER-29168 ClientSourceRestriction 2017-06-20 22:19:35 -04:00
Esha Maharishi
7e5ab840e8 SERVER-29107 move shardCollection logic into new _configsvrShardCollection command on config server 2017-06-21 09:02:07 -04:00
Benety Goh
5dd64f88d2 SERVER-29015 TopologyCoordinator should not transition to candidate role in a single node replica set if we are in maintenance mode 2017-06-21 08:13:42 -04:00
Misha Tyulenev
f5ab566ea6 SERVER-29695 change oplog entry timestamp logging from wc to wall 2017-06-20 19:35:24 -04:00
Dianna Hohensee
125497e1ba SERVER-29437 update shard config.collections schema to use lastRefreshedChunkVersion instead of refreshSequenceNumber 2017-06-20 15:23:36 -04:00
Jason Chan
38218c1a0c SERVER-28151 Sync admin database first during initial sync 2017-06-20 14:32:20 -04:00
Esha Maharishi
d5e9b49945 SERVER-28418 make the split command on mongod return a stale version error if the requested chunk bounds are not found 2017-06-20 14:25:05 -04:00
Tyler Kaye
f810e9a849 SERVER-29638 Changed the Error Message when failing to reach a sharded cluster. 2017-06-20 14:19:57 -04:00
Judah Schvimer
da2e51bd03 SERVER-29276 adds functions to DropPendingCollectionReaper for rollback 2017-06-20 13:48:54 -04:00
David Storch
50623596fb SERVER-19402 Change find command semantics for sorting on an array field.
This eliminates the behavior in which the lowest-valued
in-bounds index key was chosen as the sort key. After this
change, we instead choose the lowest key overall, which may
or may not be in-bounds. This change prevents the sort order
from depending on either the query predicate or the
implementation details of the query planner.

Note that it is no longer correct for a multikey index to
provide a sort over an array field. However, a non-array
field of a multikey index can provide a sort when that index
has path-level multikeyness metadata.
2017-06-20 13:41:53 -04:00
may
9022c80626 SERVER-29487 IdempotencyTest::validate() should also verify consistency of collection/index options
Remove some excess end-of-line spaces.

Clang format touched source file.

Change hash variable names to state to reflect new validate().

Add constructors to struct and utilize them in later code.

Remove unnecessary struct declaration to CollectionOptions.

Utilize constant instance of CollectionState struct.

Reorder methods to come before members.

Rename l and r iterators to thisIt and otherIt for clarity.

Conform to style by changing multiline comments to use //

Move iterator into for-loop scope instead of outside.

Change Equals suffix to Equal to better reflect variable meaning.

Add special case handling for nonexistence of collection in ==

Add assertion to check that index spec set size is equal to the vector of all indices.

Move dataHash string assignment nearer to md5 hash generation for conceptual locality.

Add changes from clang-format.py.

Convert toString() string generation from raw concat. to StringBuilder.

Add spacing for readability in cmpIndexSpecs() and fix typo.

Change colon to period in comment.

Change newline printing to semicolon printing in toString() except for indexSpecs.

Change constructor method to use more efficient one in validate() return.

Add early check for exists field; if false return message about collection not existing.

Change toStringBuilder naming of mongo::StringBuilder to sb.

Move up lhs.exists == rhs.exists check up to beginning of operator== overload.

Remove std::endl; from << overload.

Change for loop to use range-based for loop in toString().

Change index options list to index specs array.

Remove excess empty array printing for index specs in toString().

Update documentaiton of toString() to reflect changes.

Fix typo of Prints -> Returns in toString() docs.

Add visual separation between beginning if statement in toString().

Fix format issues in C++ file.

Add visual separation between beginning if statement in operator==
2017-06-20 13:19:06 -04:00
Ramon Fernandez
242ddab263 SERVER-29749 Move rhel s390x repo building to larger distro 2017-06-20 12:26:24 -04:00
Jonathan Abrahams
20c5ecac94 SERVER-29646 hang_analyzer.py signals python processes before attaching to any processes 2017-06-20 12:16:38 -04:00
Sara Golemon
603287e0f6 SERVER-29166 Implement an address range class 2017-06-20 11:10:27 -04:00
Spencer Jackson
14f18168d8 SERVER-28344: Implement the admin.system.sessions collection 2017-06-20 09:54:38 -04:00
Spencer Jackson
0c8f38a70e SERVER-29170: Create a composite class representing hierarchies of Restriction 2017-06-20 09:54:38 -04:00
Andrew Morrow
e05068da49 SERVER-29712 Add a polyfill for std::hardware_constructive_interference_size 2017-06-20 09:47:22 -04:00
Kyle Suarez
3d25846ea3 SERVER-20066 disable generating whole covered ixscans by default
Users can enable this behavior by turning on the
internalQueryPlannerGenerateCoveredWholeIndexScans query knob.
2017-06-20 09:23:17 -04:00
Mathias Stearn
8b0121efcd SERVER-29319 mongos write commands support document sequences 2017-06-19 19:02:31 -04:00
Mathias Stearn
9938d658c4 SERVER-29319 Check $db in explain 2017-06-19 19:02:31 -04:00
Mathias Stearn
d8ef934275 SERVER-29319 Expose OpMsgRequest interface in DBClient 2017-06-19 19:02:31 -04:00
Mathias Stearn
36c13338c5 SERVER-29319 Replace RequestBuilderInterface with OpMsgRequest 2017-06-19 19:02:31 -04:00
David Storch
47856e523e SERVER-29711 Fix nullptr dereference in OP_GET_MORE view check. 2017-06-19 18:37:26 -04:00
Benety Goh
0b52f9276c SERVER-29277 dropDatabase() sets dropPending flag in Database before dropping collections 2017-06-19 18:02:22 -04:00
Allison Chang
41adaa028c SERVER-29468 Add jstest to check for data corruption after rolling back renameCollection op 2017-06-19 17:31:05 -04:00
William Schultz
a6138f6467 SERVER-29357 Add unit test for document validators on pending drop collections 2017-06-19 17:27:29 -04:00
Kaloian Manassiev
1d65026826 SERVER-29727 Fix unused variable warning in mongo/util/uuid.cpp 2017-06-19 17:17:49 -04:00
Kaloian Manassiev
6b311efc17 SERVER-29715 IDL generator for commands with required namespace should generate a constructor 2017-06-19 17:17:49 -04:00
Mathias Stearn
1babec6a70 SERVER-29564 BSONObjBuilder can now be seeded with a BSONObj prefix
This will avoid copying whenever it is safe.
2017-06-19 17:08:35 -04:00
Mathias Stearn
a9a849b21c SERVER-29626 Remove code to upconvert and downconvert AuditMetadata 2017-06-19 17:08:35 -04:00
Mathias Stearn
3e656897af SERVER-29689 Use quickExit() in integration test main() 2017-06-19 17:08:35 -04:00
Benety Goh
e394a1740e SERVER-29277 Database::createCollection() fails if dropDatabase is in the middle of a 2-phase drop 2017-06-19 16:46:46 -04:00
Gregory Wlodarek
8b46b0f431 SERVER-29497 Make validate use KeyString instead of woCompare to improve comparison speed 2017-06-19 15:50:27 -04:00
Jonathan Reams
23448ff435 SERVER-29403 Always do async accepts and fix solaris build 2017-06-19 15:34:20 -04:00
Benety Goh
b05d8d23ae SERVER-29277 add Database drop-pending flag
This flag is set to true when we are in the process of dropping a database.
2017-06-19 15:13:17 -04:00
Misha Tyulenev
bbf93be45d SERVER-29629 Add causally consistent passthrough with auth 2017-06-19 15:03:10 -04:00
Sam Kleinman
355e451693 SERVER-29409: reduce frequency of amzn-ent builder 2017-06-19 14:59:17 -04:00
Kaloian Manassiev
389168239f SERVER-29690 Make coll_epoch_test1.js use causally consistent connections
Also makes ShardingTest/ReplSetTest support requesting the creation of
causally consistent connections.
2017-06-19 14:40:24 -04:00
Robert Guo
62c132f001 SERVER-29399 Add mode to ignore missing reports in combine_reports.py 2017-06-19 14:17:15 -04:00
Benety Goh
ffd6256afc SERVER-29277 remove no-op statement from DatabaseImpl::dropDatabase 2017-06-19 14:06:34 -04:00
ADAM David Alan Martin
3542249772
SERVER-27244 Status usage compile-time error.
This change activates the compile-time checking for unused
`mongo::Status` results.  A few more `transitional_ignore`
calls were needed for a few more tests which appeared.
2017-06-19 13:08:31 -04:00
Allison Chang
3737a7bad0 SERVER-29467 Update comments and logging in rs_rollback files for greater readability 2017-06-19 12:39:54 -04:00
ADAM David Alan Martin
dac2c7dde3
SERVER-29710 Fix building on Solaris.
An unused variable in Solaris caused a warning-as-error to
trigger, breaking the build.  This change makes that variable's
existence predicated upon ifdef-paths which need it.
2017-06-19 12:10:30 -04:00
Tess Avitabile
ab165e7a81 SERVER-28762 Conditionally parse an update expression as an UpdateNode tree 2017-06-19 10:29:10 -04:00
Kaloian Manassiev
0d7f9a01b1 SERVER-28754 Make BatchWriteExec on mongos send txnNumber/stmtId in the explicit form to shards 2017-06-19 09:51:48 -04:00
Randolph Tan
9379204014 SERVER-28903 Convert WriteResult::SingleResult to idl 2017-06-19 09:07:25 -04:00
ADAM David Alan Martin
ead729bb5a
SERVER-27244 Fix Lint in compiler_gcc.h
A comment describing the new `MONGO_WARN_UNUSED_RESULT` flag went
a few characters over the 100 character limit.  Re-ran clang
format.
2017-06-19 00:31:52 -04:00
ADAM David Alan Martin
9abef6f25a
SERVER-27244 Status usage compile-time facilities.
There are numerous places in the codebase where `mongo::Status` or
`mongo::StatusWith< T >` objects are returned and never checked.
Many of these are innocuous, but many of them are potentially
severe bugs.  This change introduces facilities to permit
compile-time warning of unchecked `Status` and `StatusWith` usage
on clang compilers.  It introduces an `ignore` function which is
useful to state that a specific "ignored status" case was
intentional.  It not presently an error, in clang builds, to
forget to check a `Status` -- this will come in a later commit.

This also introduces a `transitional_ignore` function, which allows
for easy continual auditing of the codebase for current "whitelisted"
unchecked-status instances.  All present "ignored status" cases
have been marked `transitional_ignore`.
2017-06-18 23:46:57 -04:00