[
https://issues.apache.org/jira/browse/HDDS-15328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated HDDS-15328:
----------------------------------
Labels: pull-request-available (was: )
> Fix sleep time in RetryInvocationHandler
> ----------------------------------------
>
> Key: HDDS-15328
> URL: https://issues.apache.org/jira/browse/HDDS-15328
> Project: Apache Ozone
> Issue Type: Bug
> Components: common
> Reporter: Attila Doroszlai
> Assignee: Attila Doroszlai
> Priority: Minor
> Labels: pull-request-available
>
> Sleep period in {{RetryInvocationHandler}} should be {{waitTime}}, not
> {{delay}}:
> {code:title=https://github.com/apache/ozone/blob/92374bcc5efc6fc59ced4689e66e50a163476b0c/hadoop-hdds/common/src/main/java/org/apache/hadoop/io_/retry/RetryInvocationHandler.java#L131-L136}
> final Long waitTime = getWaitTime(Time.monotonicNow());
> LOG.trace("#{} processRetryInfo: retryInfo={}, waitTime={}",
> callId, retryInfo, waitTime);
> if (waitTime != null && waitTime > 0) {
> try {
> Thread.sleep(retryInfo.delay);
> {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]