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

HDDS-2656. Prefer execute() over submit() if the returned Future is ignored #302

Merged
merged 2 commits into from
Dec 4, 2019

Conversation

adoroszlai
Copy link
Contributor

What changes were proposed in this pull request?

Future submit(Runnable) and void execute(Runnable) in ExecutorService have the same result. If the returned Future is ignored, execute can be used instead of submit to avoid creating some objects.

https://issues.apache.org/jira/browse/HDDS-2656

How was this patch tested?

https://github.com/adoroszlai/hadoop-ozone/runs/333081135

@anuengineer
Copy link
Contributor

The acceptance tests all pass, but for some reason the script is returning a non-zero result. I am going to commit this patch.

@anuengineer anuengineer merged commit c9f2b02 into apache:master Dec 4, 2019
@adoroszlai adoroszlai deleted the HDDS-2656 branch December 4, 2019 19:57
@adoroszlai
Copy link
Contributor Author

Thanks @anuengineer for committing it.

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