GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix the V2 AddRequest object leak issue by zymap · Pull Request #3323 · apache/bookkeeper

Conversation

@zymap

@zymap zymap commented Jun 9, 2022

Copy link
Copy Markdown
Member

Motivation

If the request is a V2 add request, we retained the data's
reference when creating the AddRequest object. To avoid the
object leak, we need to release the reference if we met
any errors before sending it.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

hangc0276 reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@zymap
Fix the V2 AddRequest object leak issue
3f1c284
---

**Motivation**

If the request is a V2 add request, we retained the data's
reference when creating the AddRequest object. To avoid the
object leak, we need to release the reference if we met
any errors before sending it.
@zymap zymap added type/bug area/client release/4.14.6 release/4.15.1 labels Jun 9, 2022
@zymap zymap added this to the 4.16.0 milestone Jun 9, 2022
@zymap
zymap requested review from dlg99, eolivelli and merlimat June 9, 2022 08:57
@zymap zymap self-assigned this Jun 9, 2022
nicoloboschi
nicoloboschi approved these changes Jun 9, 2022
View reviewed changes
hezhangjian
hezhangjian approved these changes Jun 9, 2022
View reviewed changes
hangc0276
hangc0276 approved these changes Jun 10, 2022
View reviewed changes
@hangc0276

hangc0276 commented Jun 10, 2022

Copy link
Copy Markdown
Contributor

Great Job!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@zymap
zymap merged commit f887f8d into apache:master Jun 13, 2022
zymap added a commit that referenced this pull request Jun 13, 2022
@zymap
Fix the V2 AddRequest object leak issue (#3323)
5370d63
---

**Motivation**

If the request is a V2 add request, we retained the data's
reference when creating the AddRequest object. To avoid the
object leak, we need to release the reference if we met
any errors before sending it.

(cherry picked from commit f887f8d)
zymap added a commit that referenced this pull request Jun 13, 2022
@zymap
Fix the V2 AddRequest object leak issue (#3323)
797b575
---

**Motivation**

If the request is a V2 add request, we retained the data's
reference when creating the AddRequest object. To avoid the
object leak, we need to release the reference if we met
any errors before sending it.

(cherry picked from commit f887f8d)
@zymap

zymap commented Jun 13, 2022

Copy link
Copy Markdown
Member Author

cherry-picked to branch-4.14 and branch-4.15

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hangc0276 hangc0276 mentioned this pull request Jun 24, 2022
Add memory limiter for the add entry request to avoid OOM #3139
Open
@zymap zymap added cherry-picked/branch-4.14 cherry-picked/branch-4.15 labels Aug 1, 2022
@lhotari lhotari mentioned this pull request Aug 9, 2022
[Broker & Bookie] Configure Bookkeeper client & server backpressure by default apache/pulsar#10439
Open
lhotari pushed a commit to datastax-archive/datastax--bookkeeper that referenced this pull request Aug 9, 2022
@zymap @lhotari
Fix the V2 AddRequest object leak issue (apache#3323)
1770679
---

**Motivation**

If the request is a V2 add request, we retained the data's
reference when creating the AddRequest object. To avoid the
object leak, we need to release the reference if we met
any errors before sending it.

(cherry picked from commit f887f8d)
(cherry picked from commit 5370d63)
Ghatage pushed a commit to sijie/bookkeeper that referenced this pull request Jul 12, 2024
@zymap Anup Ghatage
Fix the V2 AddRequest object leak issue (apache#3323)
41b819b
---

**Motivation**

If the request is a V2 add request, we retained the data's
reference when creating the AddRequest object. To avoid the
object leak, we need to release the reference if we met
any errors before sending it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@hangc0276 hangc0276 hangc0276 approved these changes
@hezhangjian hezhangjian hezhangjian approved these changes
@nicoloboschi nicoloboschi nicoloboschi approved these changes
@merlimat merlimat Awaiting requested review from merlimat
@dlg99 dlg99 Awaiting requested review from dlg99
@eolivelli eolivelli Awaiting requested review from eolivelli

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@zymap zymap

Labels

area/client cherry-picked/branch-4.14 cherry-picked/branch-4.15 release/4.14.6 release/4.15.1 type/bug

Projects

None yet

Milestone

4.16.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@zymap @hangc0276 @hezhangjian @nicoloboschi
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.