module

Mongo::Commands::ConfigureFailPoint

To aid testing, MongoDB has the "configureFailpoint" command that can alter server behavior in a wide variety of ways, mostly simulating types of failure that are difficult to cause reliably in tests.

To enable the "configureFailpoint" command, mongod must be started like: mongod --setParameter enableTestCommands=1

NOTE: for more details, please check the official MongoDB wiki.

Class methods

name
Source

Instance methods

command(fail_point : String, mode, options = nil)

Returns a pair of OP_MSG body and sequences associated with the command and arguments.

Source