Repository navigation
PHOENIX-7895 Always bound stale region retries in BaseResultIterators - #2633
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
The retry accounting is correct and covered by focused regression tests.
0 open findings
What changed in this PR
Bounds recoverable scan retries to prevent recursive stack overflow.
Changes:
- Applies retry limits to stale-region and local-index failures.
- Decrements retry counts consistently.
- Adds regression tests for both paths.
| File | Description |
|---|---|
BaseResultIterators.java |
Enforces retry exhaustion. |
BaseResultIteratorsRetryTest.java |
Verifies bounded retries. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Posted by Claude Code on behalf of Andrew Purtell, for the 5.4 stabilization sweep. The sweep ran every unit test and IT class of master @virajjasani, could you please review? |
7e450eb to
e54ada6
Compare
getIterators checked retryCount only for HashJoinCacheNotFoundException, so a persistent StaleRegionBoundaryCacheException recursed through recreateIterators until StackOverflowError. Check the retry budget for every recoverable exception, including the local index build ColumnFamilyNotFoundException path, and rethrow once it is exhausted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
e54ada6 to
84d9a79
Compare
|
Friendly heads-up: I plan to merge this soon on my own prerogative, because it blocks #2725 (PHOENIX-8093, LocalIndexIT never runs) and I want to move that forward. The failures in the latest precommit run are not related to this change, and each one has an open fix: the PhoenixTableLevelMetricsIT histogram check (#2446) and the test coverage duplicates (#2736). 🤖 Generated with Claude Code |
…#2633) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Andrew Purtell <apurtell@salesforce.com>
…#2633) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Andrew Purtell <apurtell@salesforce.com>
getIterators checked retryCount only for HashJoinCacheNotFoundException, so a persistent StaleRegionBoundaryCacheException recursed through recreateIterators until StackOverflowError. Check the retry budget for every recoverable exception, including the local index build ColumnFamilyNotFoundException path, and rethrow once it is exhausted.
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com