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

Avoid releasing sent buffer to early in BookieClient mock #1598

Closed
wants to merge 2 commits into from

Conversation

ivankelly
Copy link
Contributor

If the buffer was sent to more than one bookie with the mock, it would
be released after being sent to the first one. Each write should
retain a refCount themselves, and then release when done.

If the buffer was sent to more than one bookie with the mock, it would
be released after being sent to the first one. Each write should
retain a refCount themselves, and then release when done.
@ivankelly ivankelly self-assigned this Aug 10, 2018
@ivankelly ivankelly requested a review from jvrao August 10, 2018 16:05
@eolivelli
Copy link
Contributor

Good catch!

@eolivelli
Copy link
Contributor

retest this please

@ivankelly
Copy link
Contributor Author

This won't pass until master is fixed. Pushing fix now.

@ivankelly ivankelly added this to the 4.8.0 milestone Aug 13, 2018
@ivankelly ivankelly closed this in 6b9cbf2 Aug 13, 2018
reddycharan pushed a commit to reddycharan/bookkeeper that referenced this pull request Aug 20, 2018
* Avoid releasing sent buffer to early in BookieClient mock

If the buffer was sent to more than one bookie with the mock, it would
be released after being sent to the first one. Each write should
retain a refCount themselves, and then release when done.

Author: Ivan Kelly <ivank@apache.org>

Reviewers: Sijie Guo <sijie@apache.org>

This closes apache#1598 from ivankelly/double-rel-mock

* (@bug W-5344681@) Delayed write ensemble change may cause dataloss

Descriptions of the changes in this PR:

The Original intent of this change is to do a best-effort ensemble change.
But this is not possible until the local metadata is completely immutable.
Until the feature "Make LedgerMetadata Immutable apache#610" Is complete we will use
handleBookieFailure() to handle delayed writes as regular bookie failures.

Signed-off-by: Venkateswararao Jujjuri (JV) <vjujjurisalesforce.com>

Master Issue: apache#1591
Relate Issue: apache#1395

Author: JV Jujjuri <vjujjuri@salesforce.com>
Author: Ivan Kelly <ivank@apache.org>

Reviewers: Ivan Kelly <ivank@apache.org>, Sijie Guo <sijie@apache.org>
@Rev Sam Just@

This closes apache#1592 from jvrao/datalossbug
eolivelli pushed a commit to eolivelli/bookkeeper that referenced this pull request Sep 5, 2018
If the buffer was sent to more than one bookie with the mock, it would
be released after being sent to the first one. Each write should
retain a refCount themselves, and then release when done.

Author: Ivan Kelly <ivank@apache.org>

Reviewers: Sijie Guo <sijie@apache.org>

This closes apache#1598 from ivankelly/double-rel-mock
eolivelli pushed a commit that referenced this pull request Sep 5, 2018
Cherry pick tp branch-4.8 commit 6b9cbf2 from Ivan Kelly

If the buffer was sent to more than one bookie with the mock, it would
be released after being sent to the first one. Each write should
retain a refCount themselves, and then release when done.

Author: Ivan Kelly <ivankapache.org>

Relates to #1598, closes #1643

Author: Ivan Kelly <ivank@apache.org>

Reviewers: Sijie Guo <sijie@apache.org>

This closes #1651 from eolivelli/fix/cherry-pick-mock-client-tests-errors
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.

None yet

3 participants