Repository navigation
Conversation
…uery timeout The slow scanner test delays the scan by the query timeout plus one millisecond. A result that arrives just after the deadline can still be returned, and the expected timeout does not occur. Delay the scan by five seconds more than the query timeout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🟢 Approval recommended
No actionable issues were found in the reviewed test delay and comment changes.
No open issues 🎉
What changed in this PR
This test-only change reduces flakiness in Phoenix’s table-level metrics slow-scanner timeout test.
Changes:
- Increases the scanner delay margin beyond the query timeout from 1 millisecond to 5 seconds.
- Updates the comment to explain the margin for delayed client-thread wakeups.
| File | Description |
|---|---|
| phoenix-core/src/it/java/org/apache/phoenix/monitoring/PhoenixTableLevelMetricsIT.java | Increases the slow-scanner delay and documents its purpose. |
Review effort: Balanced
Contributor
Author
|
Precommit note: the failures in this run are not related to this change. Each one is a known problem on master.
(Claude Code) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The slow scanner test for table-level metrics fails now and then because the delayed scan does not time out. The test delays the region server scanner by only a millisecond more than the query timeout. The client waits for each scan with a timed wait. If the scan completes before the waiting thread wakes up, the client gets the result and sees no timeout. A result that arrives just after the deadline is valid, so the product behaves as designed.
This change is test-only. The scan delay is now well past the query timeout, so the client always times out first. The test takes no longer, because the client stops at the deadline.
🤖 Generated with Claude Code