Repository navigation
Conversation
The test injects a fixed clock that starts at 100. The clock also drives the server, so server call deadlines are far in the past after the reset, and the server drops the call that writes the query log. Start the clock at the current time and compare the start time with the clock. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🟢 Approval recommended
The review identifies no active issues in the test-only clock initialization and timestamp assertion changes.
No open issues 🎉
What changed in this PR
This test-only change addresses query logger CI failures caused by resetting a fixed clock shared with the HBase mini-cluster.
Changes:
- Initialize the fixed clock from the current time to avoid a large clock jump on reset.
- Preserve the exact query start-time assertion using the injected clock value.
| File | Description |
|---|---|
| phoenix-core/src/it/java/org/apache/phoenix/end2end/QueryLoggerIT.java | Updates fixed-clock initialization, explains the server impact, and adjusts the timestamp assertion. |
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) |
Contributor
Author
|
Update to the precommit note above: the region server deadlock after a table split is now PHOENIX-8121, with the fix in #2753. The metadata call for one table now runs on the caller thread, so it does not wait in the connection thread pool. (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.
Three query logger tests failed together in CI, because they found no query log rows. The region server log shows that it drops timed-out calls. One test injects a fixed clock at a very small time value. This clock also applies to HBase, because the mini-cluster runs in the same JVM. Thus the RPC server computes call deadlines from this clock. After the test resets the clock, these deadlines are far in the past, and the server drops the calls. The dropped call is most likely the asynchronous query log write, and it blocks the log writer for later tests.
The change is test-only. The fixed clock now starts at the current time, so the reset moves the clock forward only a little. The start time check stays exact.
🤖 Generated with Claude Code