Skip to content

perf(software): cap parallel Fleet calls at 8 per api pod #1580

perf(software): cap parallel Fleet calls at 8 per api pod

perf(software): cap parallel Fleet calls at 8 per api pod #1580

Triggered via push October 1, 2026 14:28
Status Skipped
Total duration 2s
Artifacts –
code-graph
code-graph
doc-pipeline
doc-pipeline
Fit to window
Zoom out
Zoom in

Annotations

1 error
limited() declares a checked throws InterruptedException, violating the unchecked-exceptions rule and losing the interrupt status: openframe-api-lib/src/main/java/com/openframe/api/service/rmm/fleet/FleetCalls.java#L31
limited() declares a checked throws InterruptedException, violating the unchecked-exceptions rule and losing the interrupt status The new private method `limited` is declared `throws InterruptedException`, a checked exception. Per OFJAVA-014 all exceptions in this codebase must be unchecked, with no `throws` clauses in signatures. Worse, because this call runs inside `executor.submit(() -> limited(call, key))`, the InterruptedException is captured by the Future and only surfaces later through `resultOf`, which only special-cases RuntimeException — an InterruptedException thrown by `IN_FLIGHT.acquire()` is not a RuntimeException, so `future.resultNow()` will throw `IllegalStateException` (wrong state) instead of propagating the real cause, and the thread's interrupt status is silently lost (never re-set with `Thread.currentThread().interrupt()`). This can turn a shutdown/interrupt signal into a confusing IllegalStateException, and defeats cooperative cancellation of the virtual-thread pool.