Skip to content

[core] Retry snapshot existence checks after I/O failures - #9707

Open
Cribbee wants to merge 1 commit into
apache:masterfrom
Cribbee:codex/retry-snapshot-exists
Open

[core] Retry snapshot existence checks after I/O failures#9707
Cribbee wants to merge 1 commit into
apache:masterfrom
Cribbee:codex/retry-snapshot-exists

Conversation

@Cribbee

@Cribbee Cribbee commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Purpose

SnapshotManager#snapshotExists currently fails immediately when FileIO#exists throws an IOException. A transient file system failure can therefore interrupt callers such as lookup cache refresh.

Retry the existence check up to three attempts with a one-second interval. Preserve the last IOException if all attempts fail, and restore the interrupt status if the retry wait is interrupted.

Tests

  • Verify that the check succeeds after a transient IOException.
  • Verify that the last failure is reported after three attempts.

API and Format

No API or format changes.

Documentation

No documentation changes.

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.

1 participant