Skip to content

Conversation

@eramongodb
Copy link
Contributor

Several tests require use of the configureFailPoint command to trigger server-side errors. The command must be enabled via configuration file or command line option when starting mongod.

The configureFailPoint command is not yet documented; see DOCS-10784.


This PR is motivated by my experience following written instructions to run the test suite locally. After following instructions, several tests were failing due to the error: no such command: 'configureFailPoint'.

Diagnosing this issue was difficult due to the configureFailPoint command having little to no documentation. It is however mentioned in the unified test format specification. To correctly run the entire test suite, fail points must be enabled via the enableTestCommands server parameter. Discovering this was difficult due to relevant information being scattered around in unusual locations; notably, it is not mentioned in any official documentation pages.

This PR seeks to improve the accuracy of testing instructions by explicitly including the command line option when starting mongod.

Several tests require use of the configureFailPoint command to trigger server-side errors. The command must be enabled via configuration file or command line option when starting mongod. The configureFailPoint command is not yet documented; see DOCS-10784.
@eramongodb eramongodb requested a review from kevinAlbs August 11, 2021 20:19
@eramongodb eramongodb self-assigned this Aug 11, 2021
Copy link
Collaborator

@kevinAlbs kevinAlbs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the thorough description. This should save new developers some time in researching how to run tests. LGTM.

@eramongodb eramongodb merged commit bd38149 into mongodb:master Aug 16, 2021
@eramongodb eramongodb deleted the enable-test-commands branch August 16, 2021 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants