Skip to content

refactor: Add Lombok Builder annotation to TimelineService.Config#17807

Merged
danny0405 merged 1 commit intoapache:masterfrom
voonhous:lombokify-builders-TimelineServiceConfig
Jan 9, 2026
Merged

refactor: Add Lombok Builder annotation to TimelineService.Config#17807
danny0405 merged 1 commit intoapache:masterfrom
voonhous:lombokify-builders-TimelineServiceConfig

Conversation

@voonhous
Copy link
Member

@voonhous voonhous commented Jan 8, 2026

Describe the issue this Pull Request addresses

Adding Lombok Builder annotation to TimelineService.Config to remove boilerplate code.

Summary and Changelog

  1. Added Lombok Builder annotation to TimelineService.Config
  2. Removed boilerplate code
  3. Updated naming of configs to make it more consistent across WriteConfig and TimelineService.Config

Impact

None

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

@github-actions github-actions bot added the size:M PR with lines of changes in (100, 300] label Jan 8, 2026
@voonhous voonhous force-pushed the lombokify-builders-TimelineServiceConfig branch from 2e210f2 to 41f1420 Compare January 8, 2026 11:17
@apache apache deleted a comment from hudi-bot Jan 9, 2026
@hudi-bot
Copy link
Collaborator

hudi-bot commented Jan 9, 2026

CI report:

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

.asyncConflictDetectorInitialDelayMs(writeConfig.getAsyncConflictDetectorInitialDelayMs())
.asyncConflictDetectorPeriodMs(writeConfig.getAsyncConflictDetectorPeriodMs())
.earlyConflictDetectionMaxAllowableHeartbeatIntervalInMs(
.maxAllowableHeartbeatIntervalInMs(
Copy link
Contributor

Choose a reason for hiding this comment

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

the prefix "earlyConflictDetection" is removed?

Copy link
Member Author

Choose a reason for hiding this comment

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

earlyConflictDetectionMaxAllowableHeartbeatIntervalInMs > maxAllowableHeartbeatIntervalInMs.

public Builder earlyConflictDetectionMaxAllowableHeartbeatIntervalInMs(Long maxAllowableHeartbeatIntervalInMs) {
        this.maxAllowableHeartbeatIntervalInMs = maxAllowableHeartbeatIntervalInMs;
        return this;
      }

Copy link
Contributor

Choose a reason for hiding this comment

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

should we rename the maxAllowableHeartbeatIntervalInMs too to make the API unchanged.

Copy link
Member Author

Choose a reason for hiding this comment

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

image

The original code uses maxAllowableHeartbeatIntervalInMs almost everywhere. The only place where this config was renamed is in the builder interface. Which is only used in 2 locations:

image

I am in favour of keeping maxAllowableHeartbeatIntervalInMs so the entire code base is more consistent as majority is using maxAllowableHeartbeatIntervalInMs.

Copy link
Contributor

Choose a reason for hiding this comment

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

okay, sounds fair.

Copy link
Contributor

@danny0405 danny0405 left a comment

Choose a reason for hiding this comment

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

+1

@danny0405 danny0405 merged commit b349f99 into apache:master Jan 9, 2026
72 checks passed
@voonhous voonhous deleted the lombokify-builders-TimelineServiceConfig branch January 9, 2026 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M PR with lines of changes in (100, 300]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants