Skip to content

[fix][client]Fix MaxQueueSize semaphore release leak in createOpSendMsg - #16915

Merged
Technoboy- merged 2 commits into
apache:masterfrom
Nicklee007:fix-semaphore-max-queue-size-limit-leak
Aug 3, 2022
Merged

[fix][client]Fix MaxQueueSize semaphore release leak in createOpSendMsg#16915
Technoboy- merged 2 commits into
apache:masterfrom
Nicklee007:fix-semaphore-max-queue-size-limit-leak

Conversation

@Nicklee007

@Nicklee007 Nicklee007 commented Aug 2, 2022

Copy link
Copy Markdown
Contributor

Motivation

Release MaxQueueSize semaphore when invalid message, the related PR #16835 only release the memory usage, but the semaphore also need release in here.
The fixed unit test can reproduce it, which only enableBatching can invoke the createOpSendMsg in BatchMessageContainerImpl.

Modifications

  1. add semaphore release;
  2. fix unit test;

Documentation

  • doc-not-needed
    (Please explain why)

@Nicklee007
Nicklee007 requested a review from Jason918 August 2, 2022 11:40
@Technoboy-
Technoboy- merged commit d95f6cf into apache:master Aug 3, 2022

@Jason918 Jason918 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@Jason918

Jason918 commented Aug 4, 2022

Copy link
Copy Markdown
Contributor

There is a conflict when direct merge this to branch 2.7
@Nicklee007 Please help open another PR to merge this to branch 2.7

@mattisonchao

Copy link
Copy Markdown
Member

Please also help to cherry-pick to branch 2.9

@Nicklee007

Copy link
Copy Markdown
Contributor Author

Please also help to cherry-pick to branch 2.9

@mattisonchao ok, I'll cherry-pick it to branch 2.9.

@Nicklee007

Copy link
Copy Markdown
Contributor Author

@Nicklee007 Please help open another PR to merge this to branch 2.7

@Jason918 branch 2.7 cherry-pick PR #16957 , PTAL.

Nicklee007 added a commit to Nicklee007/pulsar that referenced this pull request Aug 5, 2022
@Jason918

Jason918 commented Aug 5, 2022

Copy link
Copy Markdown
Contributor

Move release/2.7.5 to #16957

@github-actions

github-actions Bot commented Aug 5, 2022

Copy link
Copy Markdown

@Nicklee007 Please provide a correct documentation label for your PR.
Instructions see Pulsar Documentation Label Guide.

@Nicklee007

Copy link
Copy Markdown
Contributor Author

Please also help to cherry-pick to branch 2.9

@mattisonchao branch 2.9 cherry-pick PR #16958, PTAL.

BewareMyPower pushed a commit that referenced this pull request Aug 5, 2022
@BewareMyPower BewareMyPower added the cherry-picked/branch-2.8 Archived: 2.8 is end of life label Aug 5, 2022
@github-actions

github-actions Bot commented Aug 5, 2022

Copy link
Copy Markdown

@Nicklee007 Please provide a correct documentation label for your PR.
Instructions see Pulsar Documentation Label Guide.

Jason918 pushed a commit that referenced this pull request Aug 7, 2022
Co-authored-by: nicklixinyang <nicklixinyang@didiglobal.com>
codelipenghui pushed a commit that referenced this pull request Aug 8, 2022
@mattisonchao

Copy link
Copy Markdown
Member

Move release/2.9.4 to #16958

@github-actions

Copy link
Copy Markdown

@Nicklee007 Please provide a correct documentation label for your PR.
Instructions see Pulsar Documentation Label Guide.

nicoloboschi pushed a commit to datastax/pulsar that referenced this pull request Aug 16, 2022
…sg (apache#16915)

(cherry picked from commit d95f6cf)
(cherry picked from commit 70f1a03)
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.

10 participants