Skip to content

Commit

Permalink
[Java Client] Let producer reconnect for state RegisteringSchema (apa…
Browse files Browse the repository at this point in the history
…che#12781)

Motivation
In the Java Client, if a producer is in the RegisteringSchema state, it is a valid state for it to reconnect. Fix the ConnectionHandler to align with this behavior.

Modifications
Update the isValidStateForReconnection method to return true for state RegisteringSchema.
Verifying this change
This change is a trivial rework / code cleanup without any test coverage.

Does this pull request potentially affect one of the following parts:
This update does not contain breaking changes.

(cherry picked from commit 8d75eed)
  • Loading branch information
michaeljmarshall authored and eolivelli committed Nov 15, 2021
1 parent 04cffbb commit f46f54d
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -156,6 +156,7 @@ private boolean isValidStateForReconnection() {
switch (state) {
case Uninitialized:
case Connecting:
case RegisteringSchema:
case Ready:
// Ok
return true;
Expand Down

0 comments on commit f46f54d

Please sign in to comment.