MongoDB shell version v4.0.0-rc4
|
connecting to: mongodb://127.0.0.1:27017
|
MongoDB server version: 4.0.0-rc4
|
Server has startup warnings:
|
2018-06-12T10:33:30.417-0700 I CONTROL [main]
|
2018-06-12T10:33:30.418-0700 I CONTROL [main] ** WARNING: Access control is not enabled for the database.
|
2018-06-12T10:33:30.418-0700 I CONTROL [main] ** Read and write access to data and configuration is unrestricted.
|
2018-06-12T10:33:30.418-0700 I CONTROL [main]
|
MongoDB Enterprise mongos> db.adminCommand({getParameter: 1, enableTestCommands:1}).enableTestCommands
|
true
|
MongoDB Enterprise mongos> db.adminCommand({"configureFailPoint": "failCommand", mode: {times:1}, data:{failCommands: ["insert", "delete"], errorCode:11601}})
|
{
|
"ok" : 0,
|
"errmsg" : "failCommand not found",
|
"operationTime" : Timestamp(1528825170, 1),
|
"$clusterTime" : {
|
"clusterTime" : Timestamp(1528825170, 1),
|
"signature" : {
|
"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
|
"keyId" : NumberLong(0)
|
}
|
}
|
}
|