-
Notifications
You must be signed in to change notification settings - Fork 894
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
Read ExplicitLAC in asyncReadLastConfirmed - enable ExplicitLAC in new API #1901
Read ExplicitLAC in asyncReadLastConfirmed - enable ExplicitLAC in new API #1901
Conversation
- Readers will handle explicit LAC transparently - V2 Readers stay with old PiggyBackLAC
run bookkeeper-server client tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My take with this - delay merging this to 4.10. since we are almost ready for 4.9 (waiting for the binary metadata change).
it is a behavior change, I would prefer us having a set of BC tests covered this case. otherwise I am not comfortable at merging this PR in last minute.
@sijie do you think this narrower patch could be a good tradeoff ? |
@sijie sorry I did not see your comment |
Okay @sijie I will wait for 4.10. |
run bookkeeper-server client tests |
I will send a BP with a more complete view. |
@eolivelli : @zymap was working on fixing a problem for apache/pulsar#3828. so we might need this change. I am wondering if you are still working on this. If you already have a proposal but not start implementing it, @zymap might be able to pick up the task from your side. |
@sijie. It is in my backlog but not a priority. So please pick it up. Thanks |
@eolivelli Yes. If you can rebase to current master, that would be super helpful! Much appreciated! |
@zymap have verified this change worked well in the Pulsar env. And a test is added in pulsar repo, once pulsar has this change, we could enable that test. |
@sijie would you please help review this change again, there was a "change requested", and it may block the pr merge |
Thanks @eolivelli , +1 for this approch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eolivelli @jiazhai Can you cherry-pick this change to branch-4.11 and release 4.11.1? I'd like to land this change for fixing the presto read last message issue in Pulsar. |
Descriptions of the changes in this PR:
In readLastAddConfirmed we are going to call readLac which is an RPC supported from BK 4.5 which returns both the Piggybacked LAC and the Explicit LAC.
This way readers will be able to advance their view of the LAC even in case of writers which are using ExplicitLAC.
This change enables users of the new API to leverage ExplicitLAC
Client which are using v2 protocol will fallback to Piggybacked LAC as readLAC is not available in v2 protocol.
Motivation
This way new API users will be able to use ExplicitLAC
Changes
Call LedgerHandle#asyncReadExplicitLastConfirmed inside LedgerHandle#asyncReadLastConfirmed in case of non v2 protocol.