summaryrefslogtreecommitdiff
path: root/jstests/sharding/movechunk_with_def_paranoia.js
blob: cac144bcf4f25c2fa47d6fea84bd34d68a6120c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/**
 * This test checks that the moveChunk directory is not created
 */
var st = new ShardingTest( { shards:2, mongos:1 , other : { chunksize : 1 }});
load("jstests/sharding/movechunk_include.js")
setupMoveChunkTest(st);

var dbpath = st.shard1.adminCommand("getCmdLineOpts").parsed.dbpath;
var hasMoveChunkDir = 0 != ls(dbpath).filter(function(a) {return null != a.match("moveChunk")}).length
assert(hasMoveChunkDir, dbpath + ": does not has MoveChunk directory + " + ls(dbpath))

st.stop()