Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix misleading error message when gradle is present but jdk9 is not #425

Merged

Conversation

tomcallahan
Copy link
Contributor

Currently when esrally configure is run, the gradle binary path is
persisted to rally.ini only if jdk9 is also installed. However, when
esrally is run in benchmark_from_source mode (e.g., no args provided),
the gradle binary path in rally.ini is referenced before any jdk9 checks
take place -- leading to the following message:
No value for mandatory configuration: section=build, key=gradle.bin

This commit persists the gradle binary path to rally.ini whenever it exists,
allowing existing logic around jdk9 to emit a sensible error.

Fixes #423

Currently when `esrally configure` is run, the gradle binary path is
persisted to rally.ini only if jdk9 is also installed.  However, when
`esrally` is run in benchmark_from_source mode (e.g., no args provided),
the gradle binary path in rally.ini is referenced before any jdk9 checks
take place -- leading to the following message:
`No value for mandatory configuration: section=build, key=gradle.bin`

This commit persists the gradle binary path to rally.ini in any case,
allowing existing logic around jdk9 to emit a sensible error.

Fixes elastic#423
Copy link
Member

@danielmitterdorfer danielmitterdorfer left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @tomcallahan! LGTM.

Copy link
Contributor

@dliappis dliappis left a comment

Choose a reason for hiding this comment

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

Thanks for the pr @tomcallahan !

@danielmitterdorfer danielmitterdorfer merged commit 512e2a0 into elastic:master Mar 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants