Repository navigation
Conversation
…nce creates The merge test creates sequences at the current time and then reads them at a new current time. A sequence read sees only cells older than its timestamp, so a create and a read in the same millisecond gives SequenceNotFoundException. The test now creates legacy sequences one millisecond in the past, and it reads the sequence that the merge creates at LATEST_TIMESTAMP. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are recorded for the test-only timestamp adjustments in UpgradeIT.
No open issues 🎉
What changed in this PR
This test-only change addresses millisecond timestamp races in UpgradeIT view index sequence merge tests without changing expected values.
Changes:
- Create legacy sequences one millisecond in the past so subsequent reads can see them.
- Use
HConstants.LATEST_TIMESTAMPfor the post-merge increment, matching reads without an SCN.
| File | Description |
|---|---|
| phoenix-core/src/it/java/org/apache/phoenix/end2end/UpgradeIT.java | Adjust sequence creation and read timestamps to prevent intermittent test failures. |
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 was referenced Dec 4, 2026
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 tests that merge view index sequences sometimes fail because a sequence is not found. Which test fails changes from run to run.
The tests race their own writes at millisecond resolution. A sequence read sees only cells written before the read timestamp. The test creates the legacy sequences at the current time, and the merge also creates its new sequence at the current time. When a create and the next increment fall in the same millisecond, the increment fails. This change is test-only. The test now creates the legacy sequences one millisecond in the past. The increment after the merge reads at the latest timestamp, as NEXT VALUE FOR does without an SCN. The expected values do not change.
🤖 Generated with Claude Code