Caideyipi opened a new pull request, #19233:
URL: https://github.com/apache/iotdb/pull/19233

   `testWorkerThreadIsReleasedWhenIdleAndStartedAgainOnDemand` restubs 
`isClosed()` while a real worker is still invoking the same mock. An 
overlapping `onSuccess()` call can cause Mockito to throw 
`CannotStubVoidMethodWithReturnValue`.
   
   Configure both the initial and restarted subtasks before scheduling them, 
and update their closed state through `AtomicBoolean`. The existing assertions 
still verify that idle worker threads are released and started again on demand.
   
   Validation: Spotless passed. A clean DataNode dependency-reactor build with 
both Develocity caches disabled passed all 23 tests in 
`PipeProcessorSubtaskWorkerTest`, `PipeProcessorSubtaskExecutorTest`, and 
`PipeProcessorSubtaskExecutionGuardTest`, with no failures, errors, or skipped 
tests.


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

Reply via email to