Skip to content

[adapters]: last_sync should only be updated with successful syncs#5931

Merged
swanandx merged 1 commit intomainfrom
issue5924
Mar 27, 2026
Merged

[adapters]: last_sync should only be updated with successful syncs#5931
swanandx merged 1 commit intomainfrom
issue5924

Conversation

@swanandx
Copy link
Copy Markdown
Contributor

@swanandx swanandx commented Mar 26, 2026

Currently, even if sync fails, we update last_sync, due to which periodic in checkpoint status reports a UUID whose sync actually failed.

This isn't correct, we should only set it if sync was successful. periodic checkpoints gets retried anyways, so it if fine to ignore failed ones.

Fix #5924

Describe Manual Test Plan

Tested with local minio with invalid credentials to simulate write failures. Didn't see failed checkpoint uuid getting reported.
Successful checkpoint update periodic as well

Checklist

  • Unit tests added/updated
  • Integration tests added/updated
  • Documentation updated
  • Changelog updated

Breaking Changes?

Bug fix, shouldn't be breaking change

Copy link
Copy Markdown
Member

@blp blp left a comment

Choose a reason for hiding this comment

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

It's hard to know the intended semantics because I don't see relevant comments on functions or data. It would be good to add some.

Currently, even if sync fails, we update last_sync, due to which `periodic`
in checkpoint status reports a UUID whose sync actually failed.

This isn't correct, we should only set it if sync was successful.
periodic checkpoints gets retried anyways, so it if fine to ignore failed ones.

Signed-off-by: Swanand Mulay <73115739+swanandx@users.noreply.github.com>
@swanandx swanandx enabled auto-merge March 26, 2026 18:25
@swanandx swanandx added this pull request to the merge queue Mar 26, 2026
Copy link
Copy Markdown

@mythical-fred mythical-fred left a comment

Choose a reason for hiding this comment

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

LGTM

Merged via the queue into main with commit 97d6bca Mar 27, 2026
1 check passed
@swanandx swanandx deleted the issue5924 branch March 27, 2026 01:12
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.

[adapters]: validate checkpoint sync status

4 participants