Skip to content

refactor(sync): use SLF4J parameterized logging instead of string concatenation#19189

Merged
voonhous merged 1 commit into
apache:masterfrom
voonhous:cleanup-slf4j-log-templating-sync
Jul 5, 2026
Merged

refactor(sync): use SLF4J parameterized logging instead of string concatenation#19189
voonhous merged 1 commit into
apache:masterfrom
voonhous:cleanup-slf4j-log-templating-sync

Conversation

@voonhous

@voonhous voonhous commented Jul 4, 2026

Copy link
Copy Markdown
Member

Describe the issue this Pull Request addresses

A number of log calls in hudi-sync build their message with + string concatenation. This eagerly builds the string even when the level is disabled and reads worse than a parameterized statement. This PR converts them to SLF4J {} templating. Part of the ongoing logging cleanup (follows #19155, #19156, #19157, #19158, #19159, #19160, #19184, #19185, #19186, #19187, #19188).

Summary and Changelog

  • Converted string-concatenation log calls to {} placeholders in HiveSyncTool and QueryBasedDDLExecutor (hudi-hive-sync). Mechanical and behavior-preserving.

Impact

none - purely mechanical, behavior-preserving logging change.

Risk Level

none

Documentation Update

none

Contributor's checklist

  • Read through contributor's guide
  • Enough context is provided in the sections above
  • Adequate tests were added if applicable

…catenation

Convert log string concatenation to {} placeholders in HiveSyncTool and
QueryBasedDDLExecutor. Mechanical and behavior-preserving.
@voonhous voonhous changed the title refactor(sync): use SLF4J parameterized logging instead of string con… refactor(sync): use SLF4J parameterized logging instead of string concatenation Jul 4, 2026

@hudi-agent hudi-agent left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ 🤖 This review was generated by an AI agent and may contain mistakes. Please verify any suggestions before applying.

Thanks for the contribution! This PR mechanically converts string-concatenation log calls to SLF4J parameterized logging in HiveSyncTool and QueryBasedDDLExecutor. The placeholder counts match the argument counts in each converted statement, and the changes are behavior-preserving. No issues flagged from this automated pass, and a Hudi committer or PMC member can take it from here for a final review.

cc @yihua

@github-actions github-actions Bot added the size:XS PR with lines of changes in <= 10 label Jul 4, 2026

@yihua yihua left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@hudi-bot

hudi-bot commented Jul 4, 2026

Copy link
Copy Markdown
Collaborator

CI report:

Bot commands @hudi-bot supports the following commands:
  • @hudi-bot run azure re-run the last Azure build

@voonhous voonhous merged commit 905fcdd into apache:master Jul 5, 2026
74 of 77 checks passed
@voonhous voonhous deleted the cleanup-slf4j-log-templating-sync branch July 5, 2026 06:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS PR with lines of changes in <= 10

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants