oscerd commented on PR #29841: URL: https://github.com/apache/camel/pull/29841#issuecomment-7097367976
Pushed `CAMEL-26844: The claim tests wait for the capacity to come back, and the producer test imports await` (0e4c47dd4416): - Point 2: right, the permit of an abandoned task comes back in the worker's `finally`, after the action counted `workerDone` down, so admitting two exchanges right away could meet a capacity of one. The executor exposes its free capacity to the tests (package-private `availableCapacity()`), and `claimedCancellationLeavesTheExchangeAndItsCallbackToTheCanceller` and `cancellationWritesItsFailureBeforeReturning` wait with Awaitility until both admissions are free before they admit again. - Point 3: `OpenFgaAsyncProducerTest` imports `await` statically. - Point 1: agreed. Once #29840 and #29837 are on main this PR gets one rebase, and the async paths (`OpenFgaAuthorizer.prepareCheckAsync`, the OPA and SPIFFE async executors) go through `AuthorizationObservation` in that rebase. Locally: `AuthorizationAsyncExecutorTest` (12 tests) passes three runs in a row after the camel-support rebuild, `OpenFgaAsyncProducerTest` (12) passes; formatter and import sorting clean. _Claude Code on behalf of oscerd_ -- 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]
