You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Mono.fromFuture cancellation should ignore a wrapped CancellationException #4415
MonoCompletionStage ignores a future failure that arrives after the Mono was cancelled only when it is exactly a CancellationException. However, sometimes a CompletionException(CancellationException) can be delivered instead and is handled as Operators.onErrorDropped. It should also be ignored.
java.net.http.HttpClient.sendAsync is an example of this. Its MinimalFuture.cancel() aborts the exchange, and the returned future fails with CompletionException(CancellationException: Request cancelled). So cancelling Mono.fromFuture(httpClient.sendAsync(...)) before the response arrives logs Operator called default onErrorDropped at ERROR, with a stack trace, for a cancellation the Mono requested itself.
Activity