Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

We will introduce a new join group response type call MISSING_MEMBER_ID

Proposed Changes

error type called MEMBER_ID_REQUIRED which shall be triggered when broker meets join group request with unknown member id:

Code Block
languagejava
titleErrors.java
MEMBER_ID_REQUIRED(79, "Consumer needs to have member id before actually joining group ", MemeberIdRequiredException::new),

Proposed Changes

When encountering MEMBER_ID_REQUIRED exception, the client will use the given member id in the join group response to retry the join, which is expected to be accepted by the broker when the id matches. If we encounter UNKNOWN_MEMBER_ID exception with the second join attempt, client handling logic will be the same, which is reseting the generation and ask a new member id from broker by sending anonymous join group requestDescribe the new thing you want to do in appropriate detail. This may be fairly extensive and have large subsections of its own. Or it may be a few sentences. Use judgement based on the scope of the change.

Compatibility, Deprecation, and Migration Plan

  • What impact (if any) will there be on existing users?
  • If we are changing behavior how will we phase out the older behavior?
  • If we need special migration tools, describe them here.
  • When will we remove the existing behavior?

Rejected Alternatives

  • This is a pure broker upgrade which should be transparent to the client users. Impact should be minimum.
  • No compatibility issue identified.

Rejected Alternatives

Jason proposed another approach to monitor the TCP connection. Here is his idea with the rejected reason:

During the initial JoinGroup, we can detect failed members when the TCP connection fails. This is difficult at the moment because we do not have a mechanism to propagate disconnects from the network layer. A potential option is to treat the disconnect as just another type of request and pass it to the handlers through the request queueIf there are alternative ways of accomplishing the same thing, what were they? The purpose of this section is to motivate why the design is the way it is and not some other way.