Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
Update GroupCoordinator
Browse files Browse the repository at this point in the history
  • Loading branch information
eolivelli committed Dec 2, 2022
1 parent c3e5610 commit de820da
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ public CompletableFuture<Errors> handleLeaveGroup(
return validateGroupStatus(groupId, ApiKeys.LEAVE_GROUP).map(CompletableFuture::completedFuture
).orElseGet(() -> groupManager.getGroup(groupId).map(group -> group.inLock(() -> {
if (group.is(Dead)) {
return CompletableFuture.completedFuture(Errors.UNKNOWN_MEMBER_ID);
return CompletableFuture.completedFuture(Errors.COORDINATOR_NOT_AVAILABLE);
} else if (!members.stream().allMatch(group::has)) {
return CompletableFuture.completedFuture(Errors.UNKNOWN_MEMBER_ID);
} else {
Expand Down

0 comments on commit de820da

Please sign in to comment.