Skip to content

[pip] PIP-480: Add readEntries method to ManagedLedger#25873

Open
dao-jun wants to merge 2 commits into
apache:masterfrom
dao-jun:pip/ml_read_entries
Open

[pip] PIP-480: Add readEntries method to ManagedLedger#25873
dao-jun wants to merge 2 commits into
apache:masterfrom
dao-jun:pip/ml_read_entries

Conversation

@dao-jun
Copy link
Copy Markdown
Member

@dao-jun dao-jun commented May 27, 2026

Motivation

Provide a cursorless read path for downstream projects like KoP.

A caller should be able to pass a Position and a maximum entry count, and get the entries that are readable now.
The call must not open a ManagedCursor, update cursor metadata, or change acknowledgement state.
The downstream protocol remains responsible for its own offsets.

Modifications

Verifying this change

  • Make sure that the change passes the CI checks.

(Please pick either of the following options)

This change is a trivial rework / code cleanup without any test coverage.

(or)

This change is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(example:)

  • Added integration tests for end-to-end deployment with large payloads (10MB)
  • Extended integration test for recovery after broker failure

Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

  • Dependencies (add or upgrade a dependency)
  • The public API
  • The schema
  • The default values of configurations
  • The threading model
  • The binary protocol
  • The REST endpoints
  • The admin CLI options
  • The metrics
  • Anything that affects deployment

@dao-jun dao-jun changed the title PIP-475: Add readEntries method to ManagedLedger PIP-480: Add readEntries method to ManagedLedger May 27, 2026
@dao-jun dao-jun changed the title PIP-480: Add readEntries method to ManagedLedger [pip] PIP-480: Add readEntries method to ManagedLedger May 27, 2026
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.

1 participant