You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2019/12/04 17:23:34 UTC
[GitHub] [hadoop-ozone] adoroszlai opened a new pull request #302:
HDDS-2656. Prefer execute() over submit() if the returned Future is ignored
adoroszlai opened a new pull request #302: HDDS-2656. Prefer execute() over submit() if the returned Future is ignored
URL: https://github.com/apache/hadoop-ozone/pull/302
## 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
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org