Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-40540

Validate the parameters to configureFailPoint given the failPoint being configured.

    • Service Arch

      For example, if a "failCommand" falpoint is configured with configureFailPoint but without a command to fail, the operation succeeds:

      ruby-driver-rs:PRIMARY> db.runCommand({configureFailPoint: 'failCommand',mode:{times:1}})
      {
      	"ok" : 1,
      	"$clusterTime" : {
      		"clusterTime" : Timestamp(1554754729, 1),
      		"signature" : {
      			"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
      			"keyId" : NumberLong(0)
      		}
      	},
      	"operationTime" : Timestamp(1554754729, 1)
      }
      

      However, since no fail point was set as a result, this command should have failed with an appropriate error message indicating the requirement to supply a command to fail.

            Assignee:
            backlog-server-servicearch [DO NOT USE] Backlog - Service Architecture
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: