Skip to content

Commit

Permalink
clean local request fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladsz83 committed Jul 11, 2024
1 parent df68043 commit 1105e3f
Showing 1 changed file with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -256,22 +256,22 @@ private void clean(
}

/** */
private Throwable stopAndCleanLocRequest(SnapshotCheckProcessRequest rq, @Nullable Throwable err) {
if (requests.remove(rq.snapshotName()) != null) {
if (err == null && rq.error() != null)
err = rq.error();
private Throwable stopAndCleanLocRequest(SnapshotCheckProcessRequest locRq, @Nullable Throwable err) {
if (err == null && locRq.error() != null)
err = locRq.error();

GridFutureAdapter<?> locWorkingFut = rq.fut();
GridFutureAdapter<?> locWorkingFut = locRq.fut();

boolean finished = false;
boolean finished = false;

// Try to stop local working future ASAP.
if (locWorkingFut != null)
finished = err == null ? locWorkingFut.onDone() : locWorkingFut.onDone(err);
// Try to stop local working future ASAP.
if (locWorkingFut != null)
finished = err == null ? locWorkingFut.onDone() : locWorkingFut.onDone(err);

if (finished && log.isInfoEnabled())
log.info("Finished snapshot local validation, req: " + rq + '.');
}
requests.remove(locRq.snapshotName());

if (finished && log.isInfoEnabled())
log.info("Finished snapshot local validation, req: " + locRq + '.');

return err;
}
Expand Down

0 comments on commit 1105e3f

Please sign in to comment.