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.

Extended Modules

Defined in:


Class Method Summary

Instance Method Summary

Class Method Detail

def #

Instance Method Detail

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

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