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] MultiTopics discovery is broken due to discovery task scheduled twice instead of pendingBatchRecei… #6407

Merged
merged 2 commits into from
Mar 18, 2020

Conversation

avimas
Copy link
Contributor

@avimas avimas commented Feb 24, 2020

I wanted to use the topicPattern feature and found out it is broken due to the discovery task being called twice at the same time for the same topic.

I realized that it is called twice because ConsumerBase class adds itself to the timer upon initialization and its derived class MultiTopicsConsumerImpl is doing the same.

I changed ConsumerBase class to add a specific task without using this.

This change is a trivial
I tested the change in my environment and verified the issue was fixed.
I don't know how to add integration tests yet

@avimas avimas requested a review from sijie February 24, 2020 08:38
@avimas avimas changed the title Java client MultiTopics discovery topic discovery task scheduled twice instead of pendingBatchRecei… Java client MultiTopics discovery topic is broken due to discovery task scheduled twice instead of pendingBatchRecei… Feb 24, 2020
@avimas avimas changed the title Java client MultiTopics discovery topic is broken due to discovery task scheduled twice instead of pendingBatchRecei… Java client MultiTopics discovery is broken due to discovery task scheduled twice instead of pendingBatchRecei… Feb 24, 2020
@avimas avimas changed the title Java client MultiTopics discovery is broken due to discovery task scheduled twice instead of pendingBatchRecei… [Java client] MultiTopics discovery is broken due to discovery task scheduled twice instead of pendingBatchRecei… Feb 24, 2020
@sijie sijie added area/client java release/2.5.1 type/bug The PR fixed a bug or issue reported a bug labels Feb 24, 2020
@sijie sijie added this to the 2.6.0 milestone Feb 24, 2020
@jiazhai
Copy link
Member

jiazhai commented Feb 25, 2020

overall lgtm.

@avimas
Copy link
Contributor Author

avimas commented Feb 26, 2020

The failed test is not related to the removal of wildcard imports.

@avimas avimas requested a review from jiazhai February 27, 2020 07:37
@tuteng
Copy link
Member

tuteng commented Mar 17, 2020

Please rebase master for test @avimas

@avimas
Copy link
Contributor Author

avimas commented Mar 17, 2020

rebase done

@sijie sijie merged commit 40995a0 into apache:master Mar 18, 2020
tuteng pushed a commit to AmateurEvents/pulsar that referenced this pull request Mar 21, 2020
…cheduled twice instead of pendingBatchRecei… (apache#6407)

* fix topic discovery task scheduled twice instead of pendingBatchReceiveTask

* remove wildcard imports

Co-authored-by: avim <avi.maslati@forescout.com>
(cherry picked from commit 40995a0)
tuteng pushed a commit that referenced this pull request Apr 6, 2020
…cheduled twice instead of pendingBatchRecei… (#6407)

* fix topic discovery task scheduled twice instead of pendingBatchReceiveTask

* remove wildcard imports

Co-authored-by: avim <avi.maslati@forescout.com>
(cherry picked from commit 40995a0)
tuteng pushed a commit that referenced this pull request Apr 13, 2020
…cheduled twice instead of pendingBatchRecei… (#6407)

* fix topic discovery task scheduled twice instead of pendingBatchReceiveTask

* remove wildcard imports

Co-authored-by: avim <avi.maslati@forescout.com>
(cherry picked from commit 40995a0)
jiazhai pushed a commit to jiazhai/pulsar that referenced this pull request May 18, 2020
…cheduled twice instead of pendingBatchRecei… (apache#6407)

* fix topic discovery task scheduled twice instead of pendingBatchReceiveTask

* remove wildcard imports

Co-authored-by: avim <avi.maslati@forescout.com>(cherry picked from commit 40995a0)
huangdx0726 pushed a commit to huangdx0726/pulsar that referenced this pull request Aug 24, 2020
…cheduled twice instead of pendingBatchRecei… (apache#6407)

* fix topic discovery task scheduled twice instead of pendingBatchReceiveTask

* remove wildcard imports

Co-authored-by: avim <avi.maslati@forescout.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/client release/2.5.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.

None yet

4 participants