Skip to content

refactor: Add Lombok annotations to hudi-integ-test module#17667

Merged
yihua merged 2 commits intoapache:masterfrom
voonhous:lombokify-hudi-integ-test
Dec 23, 2025
Merged

refactor: Add Lombok annotations to hudi-integ-test module#17667
yihua merged 2 commits intoapache:masterfrom
voonhous:lombokify-hudi-integ-test

Conversation

@voonhous
Copy link
Member

Describe the issue this Pull Request addresses

This PR refactors the hudi-integ-test module to reduce boilerplate code by leveraging Project Lombok annotations. Specifically, it replaces explicit Logger instantiation, manual getter/setter methods, and empty constructors with their equivalent Lombok annotations (@Slf4j, @Getter, @Setter,@NoArgsConstructor, @AllArgsConstructor, @Data, @Value, @ToString).

This improves code readability and maintainability without altering the runtime logic.

Summary and Changelog

This change introduces the Lombok dependency to the hudi-integ-test module and refactors several classes to utilize Lombok annotations.

  • Added Lombok annotations wherever possible to hudi-integ-test module.

Impact

  • Public API: None.
  • User Experience: No visible change for end-users.
  • Performance: No impact (compile-time code generation).
  • Code Health: Reduces lines of code and standardizes logging/accessor patterns.

Risk Level

none

(This is a pure refactoring change involving standard library annotations; no business logic was modified.)

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

@voonhous voonhous requested a review from yihua December 22, 2025 08:15
@github-actions github-actions bot added the size:L PR with lines of changes in (300, 1000] label Dec 22, 2025

public Pair<Integer, JavaRDD<DeltaWriteStats>> writeRecords(JavaRDD<GenericRecord> records) {
if (deltaOutputConfig.shouldDeleteOldInputData() && batchId > 1) {
if (deltaOutputConfig.isShouldDeleteOldInputData() && batchId > 1) {
Copy link
Contributor

Choose a reason for hiding this comment

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

isShouldDeleteOldInputData: the name does not read well. Could it be renamed to isOldInputDataDeleted based on oldInputDataDeleted?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure, let me rename it!

Copy link
Contributor

@yihua yihua left a comment

Choose a reason for hiding this comment

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

LGTM

@hudi-bot
Copy link
Collaborator

CI report:

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

@yihua yihua merged commit 84e7688 into apache:master Dec 23, 2025
72 checks passed
@voonhous voonhous deleted the lombokify-hudi-integ-test branch December 23, 2025 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L PR with lines of changes in (300, 1000]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants