unbridled-41 commented on PR #4561:
URL:
https://github.com/apache/rocketmq-dashboard/pull/4561#issuecomment-5965573611
### CI attribution: `Backend Tests (Java 21)` failed on a pre-existing flake
in another test class
```
[ERROR]
AiRunServiceTest.stopShouldAbortALiveRunAndLeaveItStoppedWithUserStopTest
Expecting Optional to contain a value but it was empty.
```
This PR does not touch `AiRunService` or any AI code; the failure is the
race in that test —
`service.stop(...)` cancels the worker, whose finalisation removes the
registration, so looking the
handle up again afterwards races with its removal. The run is dated
2026-10-01, before the batch of
PRs I opened later, which is independent evidence that the flake predates
them.
Fixed in #5450 (capture the handle before stopping; `AiRunServiceTest` 22
passed × 10 runs).
Local evidence on a clean checkout:
```
cd server && mvn -o test -Dtest=AiRunServiceTest
Tests run: 22, Failures: 0, Errors: 0, Skipped: 0
```
--
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]