Skip to content

[core] Add eager failure for fallback branch read failures#7765

Open
ArnavBalyan wants to merge 1 commit intoapache:masterfrom
ArnavBalyan:arnavb/fallback-branch-fail-fast
Open

[core] Add eager failure for fallback branch read failures#7765
ArnavBalyan wants to merge 1 commit intoapache:masterfrom
ArnavBalyan:arnavb/fallback-branch-fail-fast

Conversation

@ArnavBalyan
Copy link
Copy Markdown
Member

@ArnavBalyan ArnavBalyan commented May 3, 2026

Purpose

  • When reading from a fallback branch fails, the exception is swallowed and the reader falls through to the current branch. This can mask data issues, and the LOG.error does not include the exception object so the stack trace was lost.
  • Added scan.fallback-branch.read-fail-fast (default false). When enabled the exception is propagated to the caller so the read fails immediately. When disabled the failure is logged with the full stack trace and the reader still falls through to the current branch.
  • Fixes: [Bug] Fallback branch read silently swallows exceptions with no fail-fast option #7761

Tests

  • UT

@ArnavBalyan ArnavBalyan changed the title [core] Add fail fast option for fallback branch read failures [core] Add eager failure for fallback branch read failures May 3, 2026
@ArnavBalyan
Copy link
Copy Markdown
Member Author

cc @JingsongLi can you pls take a look thanks!

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.

[Bug] Fallback branch read silently swallows exceptions with no fail-fast option

1 participant