cschneider commented on a change in pull request #8: SLING-8531 - Exponential
backoff for retries
URL:
https://github.com/apache/sling-org-apache-sling-distribution-journal/pull/8#discussion_r301686461
##########
File path:
src/main/java/org/apache/sling/distribution/journal/impl/shared/JournalAvailableChecker.java
##########
@@ -91,17 +98,20 @@ private void doChecks() {
}
private void available() {
+ this.backoffRetry = null;
if (this.reg == null) {
+ IOUtils.closeQuietly(this.backoffRetry);
Review comment:
I will move this line before the this.backoffRetry = null;
Good catch .. this currently will create more and more executors.
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services