tmaret 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_r301660014
##########
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:
It seems the backoffRetry is always `null`. backOffRetry should be closed
before being dereferenced.
----------------------------------------------------------------
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