Skip to content

Conversation

@poorbarcode
Copy link
Contributor

@poorbarcode poorbarcode commented Aug 18, 2022

Fixes: #16516

Motivation

Client will receive response of cmd-subscribe before executed Interceptor().consumerCreated()

commandSender.sendSuccessResponse(requestId);
if (getBrokerService().getInterceptor() != null){
getBrokerService().getInterceptor().consumerCreated(this, consumer, metadata);

Same thing with ProducerCreation.

Modifications

Use the counter to determine if the task is complete.

Documentation

  • doc-required
    (Your PR needs to update docs and you will update later)

  • doc-not-needed
    (Please explain why)

  • doc
    (Your PR contains doc changes)

  • doc-complete
    (Docs have been already added)

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.

Yes, I think you found the root cause.

@codelipenghui codelipenghui added this to the 2.12.0 milestone Aug 18, 2022
@codelipenghui codelipenghui changed the title [fix][flay-test]BrokerInterceptorTest.testProducerCreation [fix][flaky-test]BrokerInterceptorTest.testProducerCreation Aug 18, 2022
@poorbarcode
Copy link
Contributor Author

/pulsarbot rerun-failure-checks

@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Aug 18, 2022
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

@poorbarcode
Copy link
Contributor Author

/pulsarbot rerun-failure-checks

@codelipenghui codelipenghui merged commit 84968e8 into apache:master Aug 18, 2022
@Technoboy- Technoboy- modified the milestones: 2.12.0, 2.11.0 Aug 19, 2022
Jason918 pushed a commit that referenced this pull request Sep 4, 2022
nicoloboschi pushed a commit to datastax/pulsar that referenced this pull request Sep 16, 2022
)

(cherry picked from commit 84968e8)
(cherry picked from commit 7be144f)
@poorbarcode poorbarcode deleted the flaky/testConsumerCreation branch September 17, 2022 02:45
@congbobo184 congbobo184 added the cherry-picked/branch-2.9 Archived: 2.9 is end of life label Nov 8, 2022
congbobo184 pushed a commit that referenced this pull request Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flaky-test: BrokerInterceptorTest.testProducerCreation

6 participants