GeezerVison is showing github.com — [fix][test] Disable Pulsar message parsing for raw ledger test entries by lhotari · Pull Request #26604 · apache/pulsar
Conversation
lhotari
commented
Sep 16, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Motivation
Many managed-ledger tests append raw byte arrays or strings rather than serialized Pulsar messages. The pulsarMessageEntries setting added in #26495 defaults to true, so cache insertion and storage reads attempt to parse those bytes as Pulsar message metadata. This causes caught parsing exceptions and spurious warnings unrelated to what the tests exercise.
Modifications
- Add
ManagedLedgerTestUtil.rawEntryConfig() to disable message metadata parsing for raw-entry fixtures.
- Use it in ledger, cursor, cache, recovery, offload and real-BookKeeper tests, including reopening ledgers and replacing their configs. Preserve the fixtures' existing cache-eviction settings.
- Explicitly enable parsing in cache tests that exercise serialized Pulsar message metadata.
The changes are limited to managed-ledger test sources. Production defaults and the shared broker test fixture are unchanged.
Verifying this change
- Make sure that the change passes the CI checks.
Covered by existing tests, including ManagedLedgerTest, ManagedCursorTest, cache metadata tests, offload and real-BookKeeper tests.
Local validation:
- 600 distinct test cases passed across 30 classes, with retries disabled. No entry-metadata parsing warnings were emitted.
./gradlew spotlessCheck checkstyleMain checkstyleTest passed across the repository.
Does this pull request potentially affect one of the following parts:
- 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
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Use a shared rawEntryConfig helper in managed-ledger fixtures that write raw bytes. Keep parsing enabled in serialized-message cache tests and preserve existing cache eviction settings.
Assisted-by: Codex
Uh oh!
There was an error while loading. Please reload this page.
nodece
pushed a commit
to ascentstream/pulsar
that referenced
this pull request
Oct 13, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Development
Successfully 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.
|