Skip to content

Conversation

alexr17
Copy link

@alexr17 alexr17 commented Jul 16, 2025

Important Read

  • Please ensure the GitHub issue is mentioned at the beginning of the PR

What is the purpose of the pull request

If the earliest commit to retain is empty (rare occurrences):

  • Get all instants after lastSyncedInstant.
  • If no clean instants since lastSyncedInstant, we do incremental sync.
  • Otherwise if earliestCommitToRetain.isEmpty() and there are clean instants, do a full snapshot sync to err on the side of caution.

Brief change log

Handles case when earliest commit to retain is empty or null

Verify this pull request

This change added tests and can be verified as follows:

  • Added unit tests

.filter(
cleanInstant ->
HoodieTimeline.compareTimestamps(
cleanInstant.getTimestamp(), GREATER_THAN, lastSyncedCommitTime))
Copy link
Contributor

Choose a reason for hiding this comment

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

@alexr17 There are few build failures, GREATER_THAN import is missing. Can you add it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants