vldpyatkov commented on a change in pull request #446:
URL: https://github.com/apache/ignite-3/pull/446#discussion_r754937265
##########
File path: modules/raft/src/main/java/org/apache/ignite/internal/raft/Loza.java
##########
@@ -213,9 +271,29 @@ public void stop() throws Exception {
* @return Future which will complete when peers change.
*/
public CompletableFuture<Void> chagePeers(String groupId,
List<ClusterNode> expectedNodes, List<ClusterNode> changedNodes) {
+ if (!busyLock.enterBusy()) {
+ throw new IgniteException(new NodeStoppingException());
+ }
+
+ try {
+ return chagePeersInternal(groupId, expectedNodes, changedNodes);
+ } finally {
+ busyLock.leaveBusy();
+ }
+ }
+
+ /**
+ * Internal method for change peers for 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]