Skip to content

PHOENIX-7946 CDCQueryIT IllegalArgumentException in testSelectWithTimeRange#2557

Open
apurtell wants to merge 1 commit into
apache:masterfrom
apurtell:PHOENIX-7946
Open

PHOENIX-7946 CDCQueryIT IllegalArgumentException in testSelectWithTimeRange#2557
apurtell wants to merge 1 commit into
apache:masterfrom
apurtell:PHOENIX-7946

Conversation

@apurtell

Copy link
Copy Markdown
Contributor

CDCQueryIT can fail with IllegalArgumentException: bound must be positive at CDCQueryIT.java:786, where the test calls rand.nextInt(lastDeletionTSpos - 1) to pick a random index into the unique timestamp list. lastDeletionTSpos is only assigned when the synthesized CDC change row stream contains at least one deletion encountered at a unique timestamp. Under the parameterized test matrix it can stay null, or be 0 or 1. The fix is to skip the random sub-range exercise when the available window is < 2.

Co-authored-by: Claude Opus 4.8[1m] noreply@anthropic.com

…eRange

Co-authored-by: Claude Opus 4.8[1m] <noreply@anthropic.com>
@palashc

palashc commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

@apurtell I see @haridsv has a fix for this in #2475, if we are keeping that one, should we close this PR?

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.

2 participants