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

Print a message if the benchmark operation fails #286

Merged
merged 2 commits into from
Jul 4, 2021

Conversation

lbulej
Copy link
Member

@lbulej lbulej commented Jul 2, 2021

This gives us a chance to at least print the name of the failure exception, because the exception can be lost if any of the tear-down methods in the finally blocks throws an exception.

This can actually occur in some of the Spark benchmarks because they try to dump the result of the last operation but do not expect the very first operation to fail. This assumption has been proven wrong #283 and losing the original exception makes things a bit more confusing. A fix for that is in #288.

An alternative would be to complicate the exception handling to make sure the original exception does not get lost even though the benchmark is already doomed at that point.

lbulej added 2 commits July 2, 2021 21:49
This gives us a chance to at least print the name of the failure
exception, because the exception can be lost if any of the tear-down
methods in the finally blocks throws an exception.

An alternative would be to complicate the exception handling even
more to make sure the original exception does not get lost, but at
that point, the benchmark is doomed anyway.
This may help avoid interleaving the contents of stderr and stdout.
@lbulej
Copy link
Member Author

lbulej commented Jul 2, 2021

The other commit could help with #192.

@lbulej lbulej merged commit cdb8395 into master Jul 4, 2021
@lbulej lbulej deleted the topic/print-failure-message branch July 4, 2021 07:05
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.

2 participants