Skip to content

Fix LedgerHandle batchReadUnconfirmedAsync: use slog log instead of LOG#4782

Merged
lhotari merged 1 commit into
apache:masterfrom
merlimat:fix-ledgerhandle-log
May 8, 2026
Merged

Fix LedgerHandle batchReadUnconfirmedAsync: use slog log instead of LOG#4782
lhotari merged 1 commit into
apache:masterfrom
merlimat:fix-ledgerhandle-log

Conversation

@merlimat

@merlimat merlimat commented May 7, 2026

Copy link
Copy Markdown
Contributor

Summary

The new `batchReadUnconfirmedAsync` method added in #4739 calls `LOG.error(...)`, but `LedgerHandle` was already migrated to slog and only has a lowercase `log` field. As a result, master fails to compile (`cannot find symbol: variable LOG`), which also blocks every open PR.

This change converts the call to the slog builder style used elsewhere in the same file.

Test plan

  • `mvn compile -pl bookkeeper-server` succeeds locally

The batchReadUnconfirmedAsync method added in apache#4739 calls LOG.error(...),
but LedgerHandle was migrated to slog and only has a lowercase `log`
field. Master fails to compile.

Convert the call to the slog builder style used elsewhere in the file.

@lhotari lhotari left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@lhotari lhotari merged commit a0231ed into apache:master May 8, 2026
34 of 36 checks passed
@hangc0276 hangc0276 added this to the 4.18.0 milestone 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.

3 participants