Commit Graph

338 Commits

Author SHA1 Message Date
Xiangyu Yao
2975b0dc56 SERVER-31553 Update multiversion tests on 3.6 2017-11-28 15:29:06 -05:00
Xiangyu Yao
9ab80a3861 SERVER-29453 Disallow removing featureCompatibilityVersion document and renaming collection 2017-11-22 11:37:25 -05:00
Jack Mulrow
aacd508f50 SERVER-31941 Don't run retryable writes tests with ephemeralForTest storage engine 2017-11-21 14:46:24 -05:00
Jack Mulrow
97af8701b5 SERVER-31941 Disallow retryable writes in storage engines that do not support document-level locking 2017-11-17 16:01:19 -05:00
Misha Tyulenev
ad803634c6 SERVER-30779 do not sign clusterTime in mongos when auth is off or user has advanceClusterTime privilege 2017-11-15 20:04:08 -05:00
Maria van Keulen
bf03a51f20 SERVER-31792 Generate UUIDs for config servers during initiate 2017-11-15 13:38:51 -05:00
Charlie Swanson
e37db69674 SERVER-31447 Use correct collation for update lookup 2017-11-15 10:53:49 -05:00
Max Hirschhorn
8e3fecc8bb SERVER-31553 Bump current version in verify_versions_test.js to 3.7. 2017-11-14 21:49:46 -05:00
Max Hirschhorn
b683d39549 Revert "SERVER-31447 Use correct collation for update lookup"
This reverts commit de0b160779.
2017-11-14 21:49:46 -05:00
Charlie Swanson
de0b160779 SERVER-31447 Use correct collation for update lookup 2017-11-14 17:20:02 -05:00
Xiangyu Yao
8adf3da41d SERVER-31895 applyOps should reject commands with UUIDs when in a fully-downgraded FCV 3.4 cluster 2017-11-14 11:02:38 -05:00
Xiangyu Yao
07c34da05d SERVER-31740 Make setFeatureCompatibilityVersion idempotent 2017-11-10 10:49:12 -05:00
Jason Carey
bf53cbe298 SERVER-31777 deactivate logical sessions for fcv34
For anything less than fully upgraded to 3.6:
* suppress logicalSessionTimeoutMinutes in isMaster
* fail any commands that passes lsid
2017-11-09 18:35:00 -05:00
Tess Avitabile
271879b7a6 SERVER-31631 Bump minimum outgoing wire version for mongod when featureCompatibilityVersion is 3.6 2017-11-09 09:39:44 -05:00
Max Hirschhorn
6d8e6b9cce SERVER-31296 Update sessions, causal, and retryable in the mongo shell.
* Removes the initialClusterTime and initialOperationTime session
    options.

  * Enables causal consistency by default when using an explicit
    session.

  * Adds a --retryWrites command line option to the mongo shell for
    enabling retryable writes in the mongo shell. The retryWrites
    options to SessionOptions is left for convenience with testing.

  * Renames setClusterTime() to advanceClusterTime(), and adds a
    corresponding advanceOperationTime() method to DriverSession.

  * Enables assigning transaction numbers for write commands where
    ordered=false.

  * Prevents the mongo shell from sending afterClusterTime or assigning
    transaction numbers when talking to a stand-alone mongod.

  * Prevents the mongo shell from assigning transaction numbers when
    using an unacknowledged (w=0) writeConcern.

  * Changes DBClientRS to re-discover the current primary of the replica
    set when it receives an error code representing "not master" in
    addition to an error message representing "not master".

  * Adds a shellPrint() pretty-printer for SessionOptions and
    DriverSession instances so they no longer print out their entire
    object definition.
2017-11-08 19:29:28 -05:00
Geert Bosch
45da08b125 SERVER-31783 Prevent secondaries from generating UUIDs during upgrade 2017-11-08 17:29:29 -05:00
Dianna Hohensee
82448e638f SERVER-29653 Drop admin.system.keys on CSRS downgrade from 3.6 fcv to 3.4 fcv 2017-11-07 09:29:57 -05:00
ADAM David Alan Martin
29769e9514 SERVER-31827 Wait for Secondary after stepdown.
The primary being told to step down will kill all incoming connections
during that stepdown process.  When this happens, connections which
are incoming may be closed before they can enter a state which
"reserves" them from closure.  To facilitate correct semantics in this
test, we should wait for the primary to completely step down to a
secondary, before trying to authenticate to it again.
2017-11-03 17:25:02 -04:00
Tess Avitabile
ba9fe259f5 SERVER-31633 If the featureCompatibilityVersion is 3.6, upgrading, or downgrading, respond to isMaster with minWireVersion=maxWireVersion 2017-10-27 16:24:18 -04:00
Judah Schvimer
b06ccf5d5e SERVER-31254 Fail initial sync if fCV targetVersion is set or if there is no fCV document 2017-10-27 11:20:14 -04:00
Daniel Gottlieb
09388643a6 SERVER-31611: Perform a clean shutdown and downgrade on an interpreted FCV 3.2.
There are a few cases where a 3.6 binary will refuse to start up because it
concludes the datafiles belong to a 3.2 mongod. In those cases, the server
must perform a clean shutdown that ensures datafiles are downgraded to a
format that older binaries can understand.
2017-10-27 09:13:06 -04:00
Tess Avitabile
23e886eebf SERVER-31630 getParameter for featureCompatibilityVersion must expose targetVersion 2017-10-25 12:18:07 -04:00
Tess Avitabile
5d4b316b24 SERVER-31634 FeatureCompatibilityVersion::setIfCleanStartup() should store FCV=3.4 for shardsvrs 2017-10-24 10:03:33 -04:00
Nick Zolnierz
ec7af3523d SERVER-17846: Forbid $isolated outside of update/delete user operations 2017-10-23 16:12:40 -04:00
James Wahlin
02ecda9fcd SERVER-31346 Disallow 3.6 query features in views under FCV 3.4 2017-10-20 17:06:06 -04:00
Maria van Keulen
e739ab399c SERVER-29452 Correctly obtain the UUID of a collection in setfcv test 2017-10-20 16:05:24 -04:00
Tess Avitabile
ddacafb225 SERVER-31531 featureCompatibilityVersion writes must check for writeErrors 2017-10-18 16:38:34 -04:00
Nathan Myers
aeabbf96ff SERVER-31191 Plumb Collection UUIDs through catalog cache 2017-10-17 14:07:38 -04:00
Spencer T Brody
8b9703b98b SERVER-31277 Cancel all user operations on heartbeat stepdown path 2017-10-16 18:05:08 -04:00
Maria van Keulen
c9ca12d30b SERVER-29452 Handle missing featureCompatibilityVersion document 2017-10-16 17:41:56 -04:00
Louis Williams
203ff7c010 SERVER-30242 SERVER-31513 SERVER-31235 Make method to determine if fCV has been initialized in memory. Make fCV state one atomic variable. Initialize fCV on arbiters once a primary is elected. 2017-10-16 12:39:30 -04:00
Max Hirschhorn
fa80e8fd37 SERVER-31558 Bump current version in verify_versions_test.js to 3.6. 2017-10-13 16:29:30 -04:00
Misha Tyulenev
662632bf21 SERVER-29792 upgrade / downgrade replica set tests for causal consistncy 2017-10-10 18:02:42 -04:00
Maria van Keulen
9e8cce334f SERVER-30131 Ensure collections on local have UUIDs 2017-10-09 19:13:46 -04:00
Maria van Keulen
9eba349099 Revert "SERVER-30131 Ensure collections on local have UUIDs"
This reverts commit 84690cb878.
2017-10-09 14:49:16 -04:00
Maria van Keulen
84690cb878 SERVER-30131 Ensure collections on local have UUIDs 2017-10-09 13:28:52 -04:00
Esha Maharishi
6787c13d49 SERVER-30793 merge setFeatureCompatibilityVersion and _configsvrSetFeatureCompatibilityVersion 2017-10-09 10:24:55 -04:00
Louis Williams
17a18ae641 SERVER-31405 Remove redundant startup warning for incomplete upgrade/downgrade 2017-10-06 13:21:10 -04:00
Tess Avitabile
cb9f7cdcb7 SERVER-30731 Add expr support in MatchExpression outside of aggregation 2017-10-05 16:47:26 -04:00
Jonathan Reams
08896eec45 SERVER-31388 Fix race in listing collections in mixed_storage_version_replication.js 2017-10-05 15:47:51 -04:00
Justin Seyster
edc3dfce51 SERVER-31268 Make updates_in_heterogeneous_repl_set.js more robust.
The updates_in_heterogeneous_repl_set.js test wants to call stepUp()
on each of its replica set members to ensure that each one gets an
opportunity to handle inserts and updates. However, we found that the
stepUp()-triggered election was occasionally failing, because even
though a call to awaitReplication() ensured that all members were
caught up on their oplogs, some members were not aware that their
peers were caught up.

The new awaitNodesAgreeOnOpTime() function uses an assert.soon() to
wait until all the members are caught up on their peers' status, so
that the election always succeeds.
2017-10-04 19:37:10 -04:00
Louis Williams
8e53b1bef7 SERVER-31205 Forward-port test that confirms a new mongos cannot talk to an old mongod 2017-10-04 16:35:17 -04:00
Louis Williams
e035926812 SERVER-31209 Persist targetVersion in FCV document to indicate an upgrade/downgrade in progress. 2017-10-03 15:02:29 -04:00
Esha Maharishi
a7efca41eb SERVER-25623 addShard should fail if shard's binary version < the cluster's featureCompatibilityVersion
move add_invalid_shard.js to jstests/multiVersion since it starts a 'last-stable' mongod
2017-10-02 17:06:13 -04:00
Louis Williams
0309fa8091 Revert "SERVER-31209 Persist targetVersion in FCV document to indicate an upgrade/downgrade in progress."
This reverts commit b0b9986678.
2017-09-28 16:40:49 -04:00
Louis Williams
b0b9986678 SERVER-31209 Persist targetVersion in FCV document to indicate an upgrade/downgrade in progress. 2017-09-28 11:10:05 -04:00
Misha Tyulenev
eeee1e2b64 SERVER-30977 add clusterTime to standalone replica set 2017-09-27 23:23:46 -04:00
Esha Maharishi
62fe0f89e9 SERVER-30511 call checkUUIDsConsistentAcrossCluster() before shutting down a ShardingTest 2017-09-25 11:27:23 -04:00
Louis Williams
daefad8112 SERVER-31110 Startup warning for incomplete featureCompatibilityVersion upgrade/downgrade 2017-09-21 15:17:44 -04:00
Louis Williams
4725cefbcb Revert "SERVER-29428 Fail gracefully in mongod when featureCompatibilityVersion is incompatibile"
This reverts commit b35c6fc183.
2017-09-21 13:46:58 -04:00