GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |
GeezerVison is showing github.com — Fix the PendingAddOp is not recycled when LedgerHandler closed by zymap · Pull Request #3321 · apache/bookkeeper Conversation
Member
MotivationWhen adding an entry into a bookie, the entry data lifecycle
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
--- **Motivation** When adding an entry into a bookie, the entry data lifecycle is handled by the bookie client. The data buffer will be released after receiving a corresponding response from the bookie server. So the user doesn't care about the entry buffer releasing. But when the ledgerHandler is closed, the PendingAddOp is not recycled which leads to the data buffer never being released. We should release that after the callback executed.
eolivelli
approved these changes
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The change makes sense to me. I am afraid of possible side-effects that we would find only in the future. btw +1 from me, good catch !
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
merlimat
approved these changes
lordcheng10
approved these changes
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nice catch.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
eolivelli
pushed a commit
that referenced
this pull request
--- **Motivation** When adding an entry into a bookie, the entry data lifecycle is handled by the bookie client. The data buffer will be released after receiving a corresponding response from the bookie server. So the user doesn't care about the entry buffer releasing. But when the ledgerHandler is closed, the PendingAddOp is not recycled which leads to the data buffer never being released. We should release that after the callback executed. (cherry picked from commit 3d01e6e)
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
eolivelli
pushed a commit
that referenced
this pull request
--- **Motivation** When adding an entry into a bookie, the entry data lifecycle is handled by the bookie client. The data buffer will be released after receiving a corresponding response from the bookie server. So the user doesn't care about the entry buffer releasing. But when the ledgerHandler is closed, the PendingAddOp is not recycled which leads to the data buffer never being released. We should release that after the callback executed. (cherry picked from commit 3d01e6e)
eolivelli
pushed a commit
to datastax-archive/datastax--bookkeeper
that referenced
this pull request
…e#3321) --- **Motivation** When adding an entry into a bookie, the entry data lifecycle is handled by the bookie client. The data buffer will be released after receiving a corresponding response from the bookie server. So the user doesn't care about the entry buffer releasing. But when the ledgerHandler is closed, the PendingAddOp is not recycled which leads to the data buffer never being released. We should release that after the callback executed. (cherry picked from commit 3d01e6e)
Shawyeok
pushed a commit
to Shawyeok/bookkeeper
that referenced
this pull request
…e#3321) --- **Motivation** When adding an entry into a bookie, the entry data lifecycle is handled by the bookie client. The data buffer will be released after receiving a corresponding response from the bookie server. So the user doesn't care about the entry buffer releasing. But when the ledgerHandler is closed, the PendingAddOp is not recycled which leads to the data buffer never being released. We should release that after the callback executed. (cherry picked from commit 3d01e6e)
2 tasks done
hangc0276
pushed a commit
that referenced
this pull request
…gerHandleAdv (#3621) Descriptions of the changes in this PR: Apply recycle logic during add entry creation but ledger close to LedgerHandleAdv ### Motivation This pr is a supplement to #3321 If I understand correctly. these recycled logic should be applied to LedgerHandleAdv (cherry picked from commit 0d2fbe4)
nicoloboschi
pushed a commit
to datastax-archive/datastax--bookkeeper
that referenced
this pull request
…gerHandleAdv (apache#3621) Descriptions of the changes in this PR: Apply recycle logic during add entry creation but ledger close to LedgerHandleAdv ### Motivation This pr is a supplement to apache#3321 If I understand correctly. these recycled logic should be applied to LedgerHandleAdv (cherry picked from commit 0d2fbe4) (cherry picked from commit b4d0be2)
yaalsn
pushed a commit
to yaalsn/bookkeeper
that referenced
this pull request
…gerHandleAdv (apache#3621) Descriptions of the changes in this PR: Apply recycle logic during add entry creation but ledger close to LedgerHandleAdv ### Motivation This pr is a supplement to apache#3321 If I understand correctly. these recycled logic should be applied to LedgerHandleAdv
zymap
pushed a commit
that referenced
this pull request
…gerHandleAdv (#3621) Descriptions of the changes in this PR: Apply recycle logic during add entry creation but ledger close to LedgerHandleAdv ### Motivation This pr is a supplement to #3321 If I understand correctly. these recycled logic should be applied to LedgerHandleAdv (cherry picked from commit 0d2fbe4)
Ghatage
pushed a commit
to sijie/bookkeeper
that referenced
this pull request
…e#3321) --- **Motivation** When adding an entry into a bookie, the entry data lifecycle is handled by the bookie client. The data buffer will be released after receiving a corresponding response from the bookie server. So the user doesn't care about the entry buffer releasing. But when the ledgerHandler is closed, the PendingAddOp is not recycled which leads to the data buffer never being released. We should release that after the callback executed.
Ghatage
pushed a commit
to sijie/bookkeeper
that referenced
this pull request
…gerHandleAdv (apache#3621) Descriptions of the changes in this PR: Apply recycle logic during add entry creation but ledger close to LedgerHandleAdv ### Motivation This pr is a supplement to apache#3321 If I understand correctly. these recycled logic should be applied to LedgerHandleAdv
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reviewers+1 more reviewerUh oh!
There was an error while loading. Please reload this page. AssigneesLabelsProjectsDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. 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. |