This is an automated email from the ASF dual-hosted git repository. virajjasani pushed a commit to branch 5.3 in repository https://gitbox.apache.org/repos/asf/phoenix.git
commit 735d98db987f74ccd931ef5ce41db0c7206edaf0 Author: Hari Krishna Dara <[email protected]> AuthorDate: Fri Jul 17 22:43:06 2026 +0530 PHOENIX-7855 Fix for flapper root cause: java.lang.IllegalArgumentException: bound must be positive (#2475) --- phoenix-core/src/it/java/org/apache/phoenix/end2end/CDCQueryIT.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phoenix-core/src/it/java/org/apache/phoenix/end2end/CDCQueryIT.java b/phoenix-core/src/it/java/org/apache/phoenix/end2end/CDCQueryIT.java index 385e4401ec..69a90faa3e 100644 --- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/CDCQueryIT.java +++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/CDCQueryIT.java @@ -778,7 +778,7 @@ public class CDCQueryIT extends CDCBaseIT { } } Random rand = new Random(); - int randMinTSpos = rand.nextInt(lastDeletionTSpos - 1); + int randMinTSpos = rand.nextInt(Math.max(1, lastDeletionTSpos - 1)); int randMaxTSpos = randMinTSpos + 1 + rand.nextInt(uniqueTimestamps.size() - (randMinTSpos + 1)); verifyChangesViaSCN(tenantId, conn, cdcFullName, pkColumns, datatableName, dataColumns,
