[ 
https://issues.apache.org/jira/browse/HDDS-15040?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated HDDS-15040:
----------------------------------
    Labels: pull-request-available  (was: )

> Some ExecutorService#awaitTermination are inverted
> --------------------------------------------------
>
>                 Key: HDDS-15040
>                 URL: https://issues.apache.org/jira/browse/HDDS-15040
>             Project: Apache Ozone
>          Issue Type: Bug
>            Reporter: Ivan Andika
>            Assignee: Ivan Andika
>            Priority: Minor
>              Labels: pull-request-available
>
> Saw some inverted awaitTermination condition
> {code:java}
> if (executorService.awaitTermination(5, TimeUnit.SECONDS)) {
>   executorService.shutdownNow();
> } {code}
> It should beĀ 
> {code:java}
> if (!executorService.awaitTermination(5, TimeUnit.SECONDS)) {
>   executorService.shutdownNow(); 
> } {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to