vldpyatkov commented on a change in pull request #446:
URL: https://github.com/apache/ignite-3/pull/446#discussion_r754936826
##########
File path: modules/raft/src/main/java/org/apache/ignite/internal/raft/Loza.java
##########
@@ -176,12 +212,34 @@ public void stop() throws Exception {
Collection<ClusterNode> deltaNodes,
Supplier<RaftGroupListener> lsnrSupplier
) {
+ if (!busyLock.enterBusy()) {
+ throw new IgniteException(new NodeStoppingException());
+ }
+
+ try {
+ return updateRaftGroupInternal(groupId, nodes, deltaNodes,
lsnrSupplier);
+ } finally {
+ busyLock.leaveBusy();
+ }
+ }
+
+ /**
+ * Internal mthod for creates a raft group.
Review comment:
Done.
--
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]