Default to abort for --on-error flag - #2175
Open
mmustafasenoglu wants to merge 2 commits into
Open
Conversation
mmustafasenoglu
requested review from
b-deam and
stevereads-elastic
and
a lite review from Copilot
and removed request for
a team
August 19, 2026 15:34
Contributor
|
copilot review this |
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.
Suppressed comments (3)
docs/migrate.rst:26
- This new "--on-error" migration section is inserted inside the "Migrate rally indices to data streams" section. Because it uses the same section underline level (^^^^), it likely breaks the document structure and causes the subsequent reindexing guidance to be grouped under the on-error section instead of the data-streams section. Consider moving this section to be a sibling of the other 2.14.0 migration subsections, or demoting it to a lower-level heading placed after the data-streams content.
Default value of ``--on-error`` changed to ``abort``
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Starting with Rally 2.14.0 the default value of ``--on-error`` has changed from ``continue`` to ``abort``. This means Rally will now abort the benchmark on the first request error by default. The previous behavior can be restored by explicitly passing ``--on-error=continue``. Individual tasks can still ignore non-fatal errors using the :ref:`ignore-response-error-level <track_schedule>` task parameter.
docs/recipes.rst:214
- Minor grammar: the comma after "changed" is unnecessary here ("This behavior can be changed by invoking…").
This behavior can be changed, by invoking Rally with the :ref:`--on-error <command_line_reference_on_error>` switch e.g.::
esrally/rally.py:795
- The CLI help for
--on-errorsays'continue-on-network' will retry on network errors(e.g., …), but the code treatscontinue-on-networkas continuing on connection errors (see esrally/driver/driver.py:2275-2277) and track docs also describe it as “continue”. Please update the help text to reflect the actual behavior (and add the missing space before(e.g., …)).
help="Controls how Rally behaves on response errors (default: abort). 'continue-on-network' will retry on network errors"
"(e.g., connection refused).",
- Move --on-error migration section after data streams content in migrate.rst to preserve document heading hierarchy - Remove unnecessary comma in recipes.rst - Fix --on-error help text: 'retry' -> 'continue' to match actual behavior in driver.py, and add missing space before (e.g.
Author
|
Addressed the review feedback:
|
inqueue
approved these changes
Aug 20, 2026
inqueue
left a comment
Member
There was a problem hiding this comment.
Thank you for your patience @mmustafasenoglu. LGTM
Member
|
Buildkite test this |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR changes the default value of the
--on-errorflag fromcontinuetoabort.Changes
esrally/rally.py: Changed default fromOnErrorBehavior.CONTINUEtoOnErrorBehavior.ABORTand updated help textdocs/command_line_reference.rst: Updated documentation to reflect new defaultdocs/migrate.rst: Added migration note for 2.14.0docs/recipes.rst: Updated recipe documentation to reflect new default behaviorThis is a breaking change for Rally 2.14.0. Users who want the old behavior can explicitly pass
--on-error=continue.Fixes: Reopens #2167 (original PR closed due to fork deletion)
Closes #1581