apurtell commented on PR #2697: URL: https://github.com/apache/phoenix/pull/2697#issuecomment-7085204054
Posted by Claude Code on behalf of Andrew Purtell. The two failing checks are unrelated to this change (pom-only log4j bump). **NeedsOwnMiniClusterTest L-P**: `PhoenixSyncTableToolIT.testSyncTableValidateCheckpointWithPartialReRunAndRegionMerges` fails on its first counter check with `Should have expected verified chunks expected:<90> but was:<91>`. The logged counters are 100/100 rows, 9 mismatched chunks and 91 verified chunks. So one of the 10 rows that the test modifies on the target, ID 95, was not detected as a mismatch. Root cause: a same-millisecond race in the test. 1. The test upserts the 10 modified rows on the target. Then it takes `toTime = System.currentTimeMillis()` and passes it as `--to-time`. 2. The last upsert batch (ID 95) was sent at `12:33:30,287`. The tool's `EndTime` is `1795293210287`, which is the same millisecond. 3. `PhoenixSyncTableMapper` uses `scan.setTimeRange(fromTime, toTime)`. The upper bound is exclusive, so the scan excludes the modified cell at `ts == toTime`. 4. The scan then sees the original replicated version of the row, which matches the source. The chunk counts as verified. The run hits this window only when the last target write and `toTime` fall in the same millisecond, so the failure is intermittent. The failed `splitTableAt` calls in the log (`... is not OPEN; state=CLOSED`) are ignored by the test and are not the cause. The test sets `toTime` in the same way on master. **Test coverage**: Most of the report is the known categorization gap. Some ITs have no `@Category`, and `SortOrderWithRegionMoves*IT` runs in two jobs. Pending category fixes cover it. `PherfMainIT` is listed under "should have run" only because the L-P job stopped at `phoenix-core`, so `phoenix-pherf` never ran. Conclusion: these failures are not caused by this PR. A test-only fix can take `toTime` at least 1 ms after the last target commit, for example `System.currentTimeMillis() + 1`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
