summaryrefslogtreecommitdiff
path: root/jstests/disk
diff options
context:
space:
mode:
authorRobert Guo <robert.guo@10gen.com>2017-05-08 12:29:50 -0400
committerRobert Guo <robert.guo@10gen.com>2017-05-23 15:18:12 -0400
commitdf10adbfe55f21e3476be508436345e03b12fddc (patch)
tree32f81bce02fbcf357e846fb8f82793b1ae9629d5 /jstests/disk
parent7c53bb196f13bfebbbee0d235b3887a348e303a6 (diff)
downloadmongo-df10adbfe55f21e3476be508436345e03b12fddc.tar.gz
SERVER-27549 Print message on intentional server crash.
Diffstat (limited to 'jstests/disk')
-rw-r--r--jstests/disk/repair.js6
-rw-r--r--jstests/disk/repair2.js12
-rw-r--r--jstests/disk/repair3.js4
-rw-r--r--jstests/disk/repair4.js2
4 files changed, 12 insertions, 12 deletions
diff --git a/jstests/disk/repair.js b/jstests/disk/repair.js
index cf86e50434d..e8c39f9563c 100644
--- a/jstests/disk/repair.js
+++ b/jstests/disk/repair.js
@@ -27,7 +27,7 @@ function check() {
assert.eq.automsg("1", "db[ baseName ].count()");
}
check();
-MongoRunner.stopMongod(m.port);
+MongoRunner.stopMongod(m);
resetDbpath(repairpath);
m = MongoRunner.runMongod({
@@ -38,7 +38,7 @@ m = MongoRunner.runMongod({
db = m.getDB(baseName);
assert.commandWorked(db.runCommand({repairDatabase: 1}));
check();
-MongoRunner.stopMongod(m.port);
+MongoRunner.stopMongod(m);
resetDbpath(repairpath);
rc = runMongoProgram(
@@ -51,7 +51,7 @@ m = MongoRunner.runMongod({
});
db = m.getDB(baseName);
check();
-MongoRunner.stopMongod(m.port);
+MongoRunner.stopMongod(m);
resetDbpath(repairpath);
rc = runMongoProgram("mongod", "--repair", "--port", m.port, "--dbpath", dbpath);
diff --git a/jstests/disk/repair2.js b/jstests/disk/repair2.js
index a73194c15eb..11be561ef71 100644
--- a/jstests/disk/repair2.js
+++ b/jstests/disk/repair2.js
@@ -48,7 +48,7 @@ for (f in files) {
assert(fileCount > 0, "Expected more than zero nondirectory files in the database directory");
check();
-MongoRunner.stopMongod(m.port);
+MongoRunner.stopMongod(m);
resetDbpath(repairpath);
m = MongoRunner.runMongod({
@@ -60,7 +60,7 @@ m = MongoRunner.runMongod({
db = m.getDB(baseName);
assert.commandWorked(db.runCommand({repairDatabase: 1}));
check();
-MongoRunner.stopMongod(m.port);
+MongoRunner.stopMongod(m);
// Test long database names
resetDbpath(repairpath);
@@ -73,7 +73,7 @@ m = MongoRunner.runMongod({
db = m.getDB(longDBName);
assert.writeOK(db[baseName].save({}));
assert.commandWorked(db.runCommand({repairDatabase: 1}));
-MongoRunner.stopMongod(m.port);
+MongoRunner.stopMongod(m);
// Test long repairPath
resetDbpath(longRepairPath);
@@ -87,7 +87,7 @@ m = MongoRunner.runMongod({
db = m.getDB(longDBName);
assert.commandWorked(db.runCommand({repairDatabase: 1, backupOriginalFiles: true}));
check();
-MongoRunner.stopMongod(m.port);
+MongoRunner.stopMongod(m);
// Test database name and repairPath with --repair
resetDbpath(longRepairPath);
@@ -109,7 +109,7 @@ m = MongoRunner.runMongod({
});
db = m.getDB(longDBName);
check();
-MongoRunner.stopMongod(m.port);
+MongoRunner.stopMongod(m);
resetDbpath(repairpath);
returnCode = runMongoProgram("mongod",
@@ -131,7 +131,7 @@ m = MongoRunner.runMongod({
});
db = m.getDB(baseName);
check();
-MongoRunner.stopMongod(m.port);
+MongoRunner.stopMongod(m);
resetDbpath(repairpath);
returnCode =
diff --git a/jstests/disk/repair3.js b/jstests/disk/repair3.js
index a2b64282d99..f339a666a70 100644
--- a/jstests/disk/repair3.js
+++ b/jstests/disk/repair3.js
@@ -47,7 +47,7 @@ if (doIt) {
}
check();
- MongoRunner.stopMongod(m.port);
+ MongoRunner.stopMongod(m);
resetDbpath(repairpath);
var rc = runMongoProgram("mongod",
@@ -73,5 +73,5 @@ if (doIt) {
});
db = m.getDB(baseName);
check();
- MongoRunner.stopMongod(m.port);
+ MongoRunner.stopMongod(m);
}
diff --git a/jstests/disk/repair4.js b/jstests/disk/repair4.js
index 2fed96e3674..15033dc5986 100644
--- a/jstests/disk/repair4.js
+++ b/jstests/disk/repair4.js
@@ -49,5 +49,5 @@ if (doIt) {
}
check();
- MongoRunner.stopMongod(port);
+ MongoRunner.stopMongod(m);
}