mirror of https://github.com/apache/kafka.git
MINOR: Log pending join members (#17219)
I am still chasing KAFKA-17493. I was able to narrow it down to an issue with the pending join members. This patch logs them in order to help me troubleshooting it further. I will revert this change when the issue is root caused. Reviewers: David Arthur <mumrah@gmail.com>
This commit is contained in:
parent
95b734d3c8
commit
74bebf6e3d
|
@ -4043,7 +4043,7 @@ public class GroupMetadataManager {
|
||||||
if (!group.hasAllMembersJoined()) {
|
if (!group.hasAllMembersJoined()) {
|
||||||
log.debug("Cannot complete join phase of group {} because not all the members have rejoined. " +
|
log.debug("Cannot complete join phase of group {} because not all the members have rejoined. " +
|
||||||
"Members={}, AwaitingJoinResponses={}, PendingJoinMembers={}.",
|
"Members={}, AwaitingJoinResponses={}, PendingJoinMembers={}.",
|
||||||
group.groupId(), group.numMembers(), group.numAwaitingJoinResponse(), group.numPendingJoinMembers());
|
group.groupId(), group.numMembers(), group.numAwaitingJoinResponse(), String.join(",", group.pendingJoinMembers()));
|
||||||
return EMPTY_RESULT;
|
return EMPTY_RESULT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -609,6 +609,13 @@ public class ClassicGroup implements Group {
|
||||||
return pendingJoinMembers.contains(memberId);
|
return pendingJoinMembers.contains(memberId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return The set of pending join members.
|
||||||
|
*/
|
||||||
|
public Set<String> pendingJoinMembers() {
|
||||||
|
return Collections.unmodifiableSet(pendingJoinMembers);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a pending member.
|
* Add a pending member.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue