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

Ensure the create subscription can be completed when the operation timeout happens #7522

Merged
merged 2 commits into from
Jul 16, 2020

Conversation

codelipenghui
Copy link
Contributor

@codelipenghui codelipenghui commented Jul 13, 2020

Fixes #7521

Motivation

Ensure the create subscription can be completed when the operation timeout happens

Verifying this change

New tests added.

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 Jul 13, 2020
@codelipenghui codelipenghui added this to the 2.7.0 milestone Jul 13, 2020
@codelipenghui codelipenghui added release/2.6.1 area/client type/bug The PR fixed a bug or issue reported a bug labels Jul 13, 2020
@@ -920,7 +919,6 @@ private void handleSubscribeOneTopicError(String topicName, Throwable error, Com
log.warn("[{}] Failed to subscribe for topic [{}] in topics consumer, subscribe error: {}",
topic, topicName, error.getMessage());
topics.remove(topicName);
checkState(allTopicPartitionsNumber.get() == consumers.values().size());
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is one topic subscribe error, so we should remove the check with all topic partitions number, Otherwise, the one topic subscribe future can't complete.

@codelipenghui
Copy link
Contributor Author

/pulsarbot run-failure-checks

@codelipenghui codelipenghui merged commit 6eaf8a6 into apache:master Jul 16, 2020
@codelipenghui codelipenghui deleted the penghui/fix-7521 branch July 16, 2020 01:25
codelipenghui added a commit to streamnative/pulsar-archived that referenced this pull request Jul 17, 2020
wolfstudy pushed a commit that referenced this pull request Jul 29, 2020
huangdx0726 pushed a commit to huangdx0726/pulsar that referenced this pull request Aug 24, 2020
merlimat pushed a commit to merlimat/pulsar that referenced this pull request Dec 19, 2020
merlimat pushed a commit to merlimat/pulsar that referenced this pull request Dec 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/client release/2.6.1 type/bug The PR fixed a bug or issue reported a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pulsar client or IOThread pool got hang after operation timeout triggers
3 participants