Files
mongo/jstests/sharding/movechunk_with_default_paranoia.js
2015-11-18 13:04:56 -05:00

16 lines
603 B
JavaScript

/**
* This test checks that moveParanoia defaults to off (ie the moveChunk directory will not
* be created).
*/
var st = new ShardingTest( { shards:2, mongos:1 , other : { chunkSize: 1 }});
load("jstests/sharding/movechunk_include.js")
setupMoveChunkTest(st);
var shards = [st.shard0, st.shard1];
for(i in shards) {
var dbpath = shards[i].adminCommand("getCmdLineOpts").parsed.storage.dbPath;
var hasMoveChunkDir = 0 != ls(dbpath).filter(function(a) {return null != a.match("moveChunk")}).length
assert(!hasMoveChunkDir, dbpath + ": has MoveChunk directory + " + ls(dbpath))
}
st.stop()