Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IGNITE-19163 Add logging of snapshot check #10825

Merged
merged 1 commit into from
Aug 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1834,6 +1834,11 @@ public IgniteInternalFuture<SnapshotPartitionsVerifyTaskResult> checkSnapshot(

GridFutureAdapter<SnapshotPartitionsVerifyTaskResult> res = new GridFutureAdapter<>();

if (log.isInfoEnabled()) {
log.info("The check snapshot procedure started [snpName=" + name + ", snpPath=" + snpPath +
", incIdx=" + incIdx + ", grps=" + grps + ']');
}

GridKernalContext kctx0 = cctx.kernalContext();

Collection<ClusterNode> bltNodes = F.view(cctx.discovery().serverNodes(AffinityTopologyVersion.NONE),
Expand Down Expand Up @@ -1952,6 +1957,11 @@ else if (f0.error() instanceof IgniteSnapshotVerifyException)
}
});

if (log.isInfoEnabled()) {
res.listen(f -> log.info("The check snapshot procedure finished [snpName=" + name +
", snpPath=" + snpPath + ", incIdx=" + incIdx + ", grps=" + grps + ']'));
}

return res;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,12 @@ public VerifySnapshotPartitionsJob(
catch (IgniteCheckedException | IOException e) {
throw new IgniteException(e);
}
finally {
if (log.isInfoEnabled()) {
log.info("Verify snapshot partitions procedure has been finished " +
"[snpName=" + snpName + ", consId=" + consId + ']');
}
}
}

/** {@inheritDoc} */
Expand Down