summaryrefslogtreecommitdiff
path: root/jstests/sharding/move_chunk_update_with_write_retryability.js
diff options
context:
space:
mode:
authorGreg McKeon <greg.mckeon@mongodb.com>2017-09-27 14:32:40 -0400
committerGreg McKeon <greg.mckeon@mongodb.com>2017-09-27 14:32:40 -0400
commit522f7f7d36a4a71059dd2d5219c2a0f074dfd0a1 (patch)
tree89a030c9bfca2b0cab00dbd5e2051dc550d43cd1 /jstests/sharding/move_chunk_update_with_write_retryability.js
parent790cd20518f4aeef78780293b15842c32e7e4b55 (diff)
downloadmongo-522f7f7d36a4a71059dd2d5219c2a0f074dfd0a1.tar.gz
Revert "SERVER-30894 Implement command for transferring session information during migration"
This reverts commit 85d9721c00d7020af78fe60453f8362380fe697d.
Diffstat (limited to 'jstests/sharding/move_chunk_update_with_write_retryability.js')
-rw-r--r--jstests/sharding/move_chunk_update_with_write_retryability.js44
1 files changed, 0 insertions, 44 deletions
diff --git a/jstests/sharding/move_chunk_update_with_write_retryability.js b/jstests/sharding/move_chunk_update_with_write_retryability.js
deleted file mode 100644
index 1f23db58782..00000000000
--- a/jstests/sharding/move_chunk_update_with_write_retryability.js
+++ /dev/null
@@ -1,44 +0,0 @@
-load("jstests/sharding/move_chunk_with_session_helper.js");
-
-(function() {
-
- "use strict";
-
- var st = new ShardingTest({shards: {rs0: {nodes: 2}, rs1: {nodes: 2}}});
- assert.commandWorked(st.s.adminCommand({enableSharding: 'test'}));
- st.ensurePrimaryShard('test', st.shard0.shardName);
-
- var coll = 'update';
- var cmd = {
- update: 'update',
- updates: [
- {q: {x: 10}, u: {$inc: {a: 1}}}, // in place
- {q: {x: 20}, u: {$inc: {b: 1}}, upsert: true},
- {q: {x: 30}, u: {x: 30, z: 1}} // replacement
- ],
- ordered: false,
- lsid: {id: UUID()},
- txnNumber: NumberLong(35),
- };
- var setup = function(coll) {
- coll.insert({x: 10});
- coll.insert({x: 30});
- };
- var checkRetryResult = function(result, retryResult) {
- assert.eq(result.ok, retryResult.ok);
- assert.eq(result.n, retryResult.n);
- assert.eq(result.nModified, retryResult.nModified);
- assert.eq(result.upserted, retryResult.upserted);
- assert.eq(result.writeErrors, retryResult.writeErrors);
- assert.eq(result.writeConcernErrors, retryResult.writeConcernErrors);
- };
- var checkDocuments = function(coll) {
- assert.eq(1, coll.findOne({x: 10}).a);
- assert.eq(1, coll.findOne({x: 20}).b);
- assert.eq(1, coll.findOne({x: 30}).z);
- };
-
- testMoveChunkWithSession(st, coll, cmd, setup, checkRetryResult, checkDocuments);
-
- st.stop();
-})();