Skip to content

[BP-62] LedgerHandle introduces batch read API.#4195

Merged
hangc0276 merged 17 commits intoapache:masterfrom
horizonzy:batch_read_5
Feb 5, 2024
Merged

[BP-62] LedgerHandle introduces batch read API.#4195
hangc0276 merged 17 commits intoapache:masterfrom
horizonzy:batch_read_5

Conversation

@horizonzy
Copy link
Member

@horizonzy horizonzy commented Jan 30, 2024

Motivation

This is the fifth PR for the batch read(#4051) feature.

LedgerHandle introduces batch read API.

This PR is based on #4190, please merge it firstly.

* the total entries count.
* @param maxSize
* the total entries size.
* @param failbackToSingleRead
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't we always want to fallback, when the server does not support the feature?

Copy link
Member Author

Choose a reason for hiding this comment

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

That makes sense, we should always failback to single read when the batch read is not supported.

Copy link
Member Author

@horizonzy horizonzy Feb 4, 2024

Choose a reason for hiding this comment

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

I will remove the failbackToSingleRead flag.

@hangc0276 hangc0276 merged commit 2209734 into apache:master Feb 5, 2024
Ghatage pushed a commit to sijie/bookkeeper that referenced this pull request Jul 12, 2024
### Motivation
This is the fifth PR for the batch read(apache#4051) feature.

LedgerHandle introduces batch read API.

This PR is based on apache#4190, please merge it firstly.
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.

3 participants