Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Java Client] Let producer reconnect for state RegisteringSchema #12781

Merged

Conversation

michaeljmarshall
Copy link
Member

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.

Documentation

  • no-need-doc

This is an implementation detail, so no need to update any documentation.

@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Nov 13, 2021
@michaeljmarshall
Copy link
Member Author

@congbobo184 - PTAL. This change aligns with your recent change to #12689.

Copy link
Contributor

@Jason918 Jason918 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@nicoloboschi nicoloboschi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@315157973 315157973 merged commit 8d75eed into apache:master Nov 15, 2021
eolivelli pushed a commit to datastax/pulsar that referenced this pull request Nov 15, 2021
…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)
@codelipenghui codelipenghui added this to the 2.10.0 milestone Nov 15, 2021
eolivelli pushed a commit that referenced this pull request Nov 15, 2021
)

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)
@michaeljmarshall michaeljmarshall deleted the java-client-reconnect-logic branch November 15, 2021 20:15
codelipenghui pushed a commit that referenced this pull request Nov 18, 2021
)

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)
@codelipenghui codelipenghui added cherry-picked/branch-2.8 Archived: 2.8 is end of life release/2.8.2 and removed release/2.8.3 labels Nov 18, 2021
eolivelli pushed a commit to eolivelli/pulsar that referenced this pull request Nov 29, 2021
…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.
fxbing pushed a commit to fxbing/pulsar that referenced this pull request Dec 19, 2021
…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.
@codelipenghui codelipenghui modified the milestones: 2.10.0, 2.9.0 Dec 20, 2021
@codelipenghui codelipenghui added cherry-picked/branch-2.9 Archived: 2.9 is end of life and removed cherry-picked/branch-2.9 Archived: 2.9 is end of life labels Dec 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/client cherry-picked/branch-2.8 Archived: 2.8 is end of life doc-not-needed Your PR changes do not impact docs release/2.8.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants