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

Fix message not dispatch for key_shared sub type in non-persistent su… #9826

Merged
merged 5 commits into from
Mar 16, 2021

Conversation

MarvinCai
Copy link
Contributor

Fixes #9703

Motivation

With a non-persistent topic, I see messages published in the topic stats, but consumers do not consume them if they use Key_Shared. Other consumer modes work fine.

Verifying this change

Covered by existing test case, verified manually.

Copy link
Contributor

@codelipenghui codelipenghui left a comment

Choose a reason for hiding this comment

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

@MarvinCai Could you please add some tests?

@MarvinCai MarvinCai requested a review from codelipenghui March 14, 2021 00:28
@MarvinCai
Copy link
Contributor Author

@codelipenghui added unit test, PTAL

@codelipenghui
Copy link
Contributor

@MarvinCai Could you please also take a look at the KeySharedSubscriptionTest? I think we are providing a data provider to cover the non-persistent topic tests, but seems the test does not check the total receive messages, so for the non-persistent topic test, the test will get passed, but did not actually receive any messages.

@MarvinCai
Copy link
Contributor Author

@codelipenghui updated the test.

Copy link
Contributor

@315157973 315157973 left a comment

Choose a reason for hiding this comment

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

LGTM

@MarvinCai
Copy link
Contributor Author

/pulsarbot rerun-failure-checks

Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

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

LGTM

@sijie sijie merged commit 960a79e into apache:master Mar 16, 2021
fmiguelez pushed a commit to fmiguelez/pulsar that referenced this pull request Mar 16, 2021
apache#9826)

Fixes apache#9703

### Motivation

With a non-persistent topic, I see messages published in the topic stats, but consumers do not consume them if they use Key_Shared. Other consumer modes work fine.

### Verifying this change

Covered by existing test case, verified manually.
@codelipenghui codelipenghui added cherry-picked/branch-2.7 Archived: 2.7 is end of life and removed cherry-picked/branch-2.7 Archived: 2.7 is end of life labels Mar 23, 2021
codelipenghui pushed a commit that referenced this pull request Mar 24, 2021
#9826)

Fixes #9703

### Motivation

With a non-persistent topic, I see messages published in the topic stats, but consumers do not consume them if they use Key_Shared. Other consumer modes work fine.

### Verifying this change

Covered by existing test case, verified manually.

(cherry picked from commit 960a79e)
@codelipenghui codelipenghui added the cherry-picked/branch-2.7 Archived: 2.7 is end of life label Mar 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-picked/branch-2.7 Archived: 2.7 is end of life release/2.7.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

non-persistent topics don't seem to work with Key_Shared
5 participants