GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@lhotari lhotari commented Sep 16, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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.

All reactions
@lhotari
[fix][test] Disable Pulsar message parsing for raw ledger test entries
3ab71ad
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
@lhotari
lhotari requested review from Technoboy-, dao-jun, merlimat and nodece September 16, 2026 14:48
merlimat
merlimat approved these changes Sep 16, 2026
View reviewed changes
dao-jun
dao-jun approved these changes Sep 16, 2026
View reviewed changes
@lhotari
lhotari merged commit 14e0ede into master Sep 16, 2026
43 of 44 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@lhotari lhotari added this to the 5.0.0 milestone Sep 16, 2026
dao-jun pushed a commit to ascentstream/pulsar that referenced this pull request Sep 20, 2026
@lhotari @dao-jun
[fix][test] Disable Pulsar message parsing for raw ledger test entries (
c80aba0
apache#26604)

(cherry picked from commit 14e0ede)
dao-jun pushed a commit to ascentstream/pulsar that referenced this pull request Sep 20, 2026
@lhotari @dao-jun
[fix][test] Disable Pulsar message parsing for raw ledger test entries (
44ff24d
apache#26604)

(cherry picked from commit 14e0ede)
dao-jun pushed a commit to ascentstream/pulsar that referenced this pull request Sep 20, 2026
@lhotari @dao-jun
[fix][test] Disable Pulsar message parsing for raw ledger test entries (
cd27e27
apache#26604)

(cherry picked from commit 14e0ede)
@lhotari
lhotari deleted the lh-perfopt-fix-raw-entry-test-config branch October 1, 2026 00:02
@dao-jun dao-jun mentioned this pull request Oct 4, 2026
[feat][ml] Port batch read and managed-ledger cache improvements (PIP-430) on BK 4.17.4.1 ascentstream/pulsar#105
Closed
Radiancebobo pushed a commit to Radiancebobo/pulsar that referenced this pull request Oct 8, 2026
@lhotari hechengbo
[fix][test] Disable Pulsar message parsing for raw ledger test entries (
4e54039
apache#26604)
@nodece nodece mentioned this pull request Oct 13, 2026
[feat][ml] Port batch read and managed-ledger cache improvements (PIP-430) on BK 4.17.4.1 (ml-only subset) ascentstream/pulsar#106
Closed
nodece pushed a commit to ascentstream/pulsar that referenced this pull request Oct 13, 2026
@lhotari @nodece
[fix][test] Disable Pulsar message parsing for raw ledger test entries (
51ebbd4
apache#26604)

(cherry picked from commit 14e0ede)
(cherry picked from commit cd27e27)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@merlimat merlimat merlimat approved these changes
@dao-jun dao-jun dao-jun approved these changes
@nodece nodece Awaiting requested review from nodece
@Technoboy- Technoboy- Awaiting requested review from Technoboy-

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

5.0.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@lhotari @merlimat @dao-jun
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.