Repository navigation
1.1.0
Fixes since 1.0.0, all compatible: code generated by a 1.0.x processor keeps running. One behaviour changes: a Flux that its subscriber cancels after the first element now counts as a success for the circuit breaker.
Fixed
- A
Pipelineon aFluxlost the cancel. WithFluxPipelineOperatorand neither a retry nor a fallback, cancelling the subscription (asnext(),take(1)or a disconnecting client do) never reached the policies: the bulkhead kept its slot for good, so later calls were rejected, and the source stayed subscribed. Generated code was not affected. - A
Fluxread withnext()ortake(1)left no success in the circuit breaker. Those operators cancel the stream after its first element, and a cancelled call was not recorded, so a few failures among many healthy streams could open the breaker, and a half-open probe read this way never closed it. A cancel after the first element is now a success (a slow call if that element was slow); a cancel before it is still not recorded (Flux methods). - Sync timeouts fired late on machines that oversleep. Where the watchdog's short sleeps always last longer than asked (Windows, virtualized macOS), its clock fell behind and a timeout could fire up to several times later than configured. It now keeps up with the real time, and is still never early (Timeout).
- The rate limiter could judge a call with a clock reading older than another thread's permit, which made its wait too long by the time between the two reads and, with
maxWait = 0, could reject it needlessly. - A retry delay close to
Long.MAX_VALUEnanoseconds no longer overflows: full jitter threwIllegalArgumentException, andmaxDurationcould let a retry through past its limit.
Install: dev.resilience4cata:resilience4cata-bom:1.1.0 (installation). Full changelog: https://resilience4cata.dev/en/changelog