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.
  • Loading branch information
michaeljmarshall authored and fangxiaobing committed Dec 19, 2021
1 parent a61dce2 commit 09f4687
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 09f4687

Please sign in to comment.