vldpyatkov commented on code in PR #6715:
URL: https://github.com/apache/ignite-3/pull/6715#discussion_r2413358434
##########
modules/raft/src/main/java/org/apache/ignite/raft/jraft/storage/snapshot/local/LocalSnapshotCopier.java:
##########
@@ -260,6 +260,10 @@ private void loadMetaTable() throws InterruptedException {
setError(session.status().getCode(),
session.status().getErrorMsg());
return;
}
+ // No need in further snapshot processing if it was already
cancelled and the metaBuf is null.
+ if (metaBuf.getBuffer() == null && session.status().isCanceled()) {
Review Comment:
Why don't you check `&& isOk()` in the condition like above before setting
another state?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]