FrankChen021 opened a new issue, #20662:
URL: https://github.com/apache/druid/issues/20662

   _This issue was generated automatically by Claude Code (Anthropic's AI 
coding agent) running a scheduled CI-triage routine on behalf of @FrankChen021. 
Analysis and suggested fixes are AI-produced; please verify before acting on 
them._
   
   **Status:** Open: no fix PR
   **Subject:** `BatchAppenderatorTest.testSimpleIngestion` (server, `unit 
tests / unit tests(main) (25, R*,B*,P*)`)
   **Failures:** 1 · **First seen:** 2026-10-20 · **Last seen:** 2026-10-20
   
   ### Root cause
   
   Line 165 asserts `segmentGenerationMetrics.mergeTimeMillis() > 0`. 
`BatchAppenderator` measures each merge with a millisecond `Stopwatch` and 
`SegmentGenerationMetrics.setMergeTime` overwrites the value, so the last merge 
of a one- or two-row segment can finish in under 1 ms and record 0; once the 
JVM is warm the reruns are just as fast, which is why all 4 surefire attempts 
failed. This is the same mechanism as #20602 
(`StreamAppenderatorTest.testSimpleIngestion`). The commit (#20530) only 
touches MSQ `WorkerImpl`/`StageId`, and the same job passed on the neighbouring 
master commits.
   
   ### Suggested fix
   
   #20626 (fix for #20602) switches `BatchAppenderator` to nanosecond timing 
but `mergeTimeMillis()` still truncates to ms and `BatchAppenderatorTest` is 
unchanged; extend it to assert `mergeTimeNanos() > 0` and `persistTimeNanos() > 
0` (lines 163 and 165) in `BatchAppenderatorTest` as well.
   
   ### Occurrences
   
   Failed push-triggered master jobs only. The daily triage routine adds one 
row per new failed job.
   
   | Date | Commit | Job | Failure log | Detail | Reported in |
   |---|---|---|---|---|---|
   | 2026-10-20 | d61f8cf935 (#20530) | `unit tests / unit tests(main) (25, 
R*,B*,P*) / test-jdk25-[R*,B*,P*]` | [job 
118719815423](https://github.com/apache/druid/actions/runs/39449386858/job/118719815423)
 | `expected: <true> but was: <false>` at line 165 (`mergeTimeMillis() > 0`); 
4/4 attempts failed | |
   


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to