Andrew Kyle Purtell created PHOENIX-7946:
--------------------------------------------

             Summary: CDCQueryIT IllegalArgumentException in 
testSelectWithTimeRange
                 Key: PHOENIX-7946
                 URL: https://issues.apache.org/jira/browse/PHOENIX-7946
             Project: Phoenix
          Issue Type: Sub-task
          Components: test
            Reporter: Andrew Kyle Purtell
            Assignee: Andrew Kyle Purtell
             Fix For: 5.4.0, 5.3.2


`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.




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to