lianetm commented on code in PR #14690:
URL: https://github.com/apache/kafka/pull/14690#discussion_r1382665763


##########
clients/src/main/java/org/apache/kafka/clients/consumer/internals/MemberState.java:
##########
@@ -24,21 +24,34 @@
 public enum MemberState {
 
     /**
-     * Member has not joined a consumer group yet, or has been fenced and 
needs to re-join.
+     * Member is not part of the group. This could be the case when it has 
never joined (no call
+     * has been made to the subscribe API), or when the member intentionally 
leaves the group
+     * after a call to the unsubscribe API.
      */
-    UNJOINED,
+    NOT_IN_GROUP,

Review Comment:
   `Unsubscribed` describes the state better to me too. Renamed it and added 
comments explaining better how the member gets there and what it can do while 
in this 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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to