You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "zjncs (via GitHub)" <gi...@apache.org> on 2026/10/09 11:50:36 UTC

[PR] test(ai): pin the abort reason discrimination [rocketmq-dashboard]

zjncs opened a new pull request, #5813:
URL: https://github.com/apache/rocketmq-dashboard/pull/5813

   ### What
   
   `AbortReason` — the discriminated abort decision — had no test. This adds `AbortReasonTest` with 4 tests.
   
   ### What is pinned
   
   - **a user stop and a shutdown both end STOPPED**; a timeout and an orphan both end FAILED;
   - every reason carries its persisted stop reason (`USER_STOP`/`SHUTDOWN`/`TIMEOUT`/`ORPHANED`);
   - **only SHUTDOWN uses the shorter grace** — the JVM has a fixed shutdown budget, and spending three seconds per run on SIGTERM would blow it when sixteen runs are draining at once.
   
   ### Verification
   
   - New tests on unmodified code: **4/4 green**, checkstyle clean.
   - Discriminating mutation: SHUTDOWN changed to FAILED (red).
   - Restored: 4/4 green. Test-only change; no product code touched.
   


-- 
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: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org