You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "vasiliy-mikhailov (via GitHub)" <gi...@apache.org> on 2026/06/26 19:45:23 UTC
[PR] Skip the retry sleep when the timeout is already exceeded [shardingsphere]
vasiliy-mikhailov opened a new pull request, #38931:
URL: https://github.com/apache/shardingsphere/pull/38931
`RetryExecutor.isTimeout()` calls `Thread.sleep(intervalMillis)` *before* checking whether the timeout has already elapsed, so an already-exceeded timeout still incurs a full interval delay (e.g. `new RetryExecutor(0L, 5000L).execute(...)` sleeps 5s before returning). Return immediately when the elapsed time has reached the timeout, before sleeping.
Added a test asserting a zero timeout returns promptly instead of sleeping.
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Skip the retry sleep when the timeout is already exceeded [shardingsphere]
Posted by "terrymanu (via GitHub)" <gi...@apache.org>.
terrymanu commented on PR #38931:
URL: https://github.com/apache/shardingsphere/pull/38931#issuecomment-4816216850
Please fix checkstyle first
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Skip the retry sleep when the timeout is already exceeded [shardingsphere]
Posted by "terrymanu (via GitHub)" <gi...@apache.org>.
terrymanu merged PR #38931:
URL: https://github.com/apache/shardingsphere/pull/38931
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Skip the retry sleep when the timeout is already exceeded [shardingsphere]
Posted by "vasiliy-mikhailov (via GitHub)" <gi...@apache.org>.
vasiliy-mikhailov commented on PR #38931:
URL: https://github.com/apache/shardingsphere/pull/38931#issuecomment-4821383603
Done, thanks. The violation was an `AvoidStaticImport` on `java.time.Duration.ofMillis`; switched to a regular `import java.time.Duration;` and qualified the call. `./mvnw checkstyle:check -Pcheck` is clean now.
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org