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

Close producer without state check while the topic does not exists. #7120

Merged
merged 5 commits into from
Jun 3, 2020

Conversation

codelipenghui
Copy link
Contributor

Fixes #6838 related to #6879

Motivation

Close producer without state check while the topic does not exists. The problem is the State of the producer failed to pass the check condition so that the producer can't be closed. If TopicDoesNotExsitsException happens on a producer, we can directly close this producer without state checking for the producer.

Verifying this change

Improve the test

Does this pull request potentially affect one of the following parts:

If yes was chosen, please highlight the changes

  • Dependencies (does it add or upgrade a dependency): (no)
  • The public API: (no)
  • The schema: (no)
  • The default values of configurations: (no)
  • The wire protocol: (no)
  • The rest endpoints: (no)
  • The admin cli options: (no)
  • Anything that affects deployment: (no)

Documentation

  • Does this pull request introduce a new feature? (no)

@codelipenghui codelipenghui self-assigned this Jun 1, 2020
@codelipenghui codelipenghui added area/client type/bug The PR fixed a bug or issue reported a bug labels Jun 1, 2020
@codelipenghui codelipenghui added this to the 2.6.0 milestone Jun 1, 2020
@codelipenghui
Copy link
Contributor Author

/pulsarbot run-failure-checks

1 similar comment
@codelipenghui
Copy link
Contributor Author

/pulsarbot run-failure-checks

@codelipenghui codelipenghui merged commit 842996e into apache:master Jun 3, 2020
@codelipenghui codelipenghui deleted the fix-6838 branch June 3, 2020 01:54
@devprashantksinha
Copy link

devprashantksinha commented Jun 4, 2020

@codelipenghui @sijie : When is 2.5.3. release planned ? Can you please share with us.

huangdx0726 pushed a commit to huangdx0726/pulsar that referenced this pull request Aug 24, 2020
…pache#7120)

Fixes apache#6838 related to apache#6879

### Motivation

Close producer without state check while the topic does not exists. The problem is the `State` of the producer failed to pass the check condition so that the producer can't be closed. If TopicDoesNotExsitsException happens on a producer, we can directly close this producer without state checking for the producer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/client release/2.5.3 type/bug The PR fixed a bug or issue reported a bug
Projects
None yet
5 participants