-
Notifications
You must be signed in to change notification settings - Fork 1.2k
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple calls to Mono.doOnSuccess if on reduce operation #230
Comments
Rework the Operators.MonoSubscriber code to use more resilient logic, notably using a single volatile state with bitwise logic. This impacts complete(), poll() and request(n) methods mostly.
Issue still exist (both in 3.0.3 and master). Provided unit test still fails. The one that is committed into reactor-core is changed slightly (changes in blockingOp) and passes. |
Ha misery it escaped our testing then, the initial fix we had locally did fix this version then we tried to include the updated design from @akarnokd and also made sure the test was testing parallelism (constant blocking wasn't showing parallelism). We'll have a look, very sorry about this, as a workaround you can hide() after reduce. |
Alternatively you can replace doOnSuccess by doOnNext |
Multiple calls to Mono.doOnSuccess is called (one with null, one with value) if reduce is used on Scheduled flux.
Test case: https://gist.github.com/jurna/353a2bd8ff83f0b24f0b5bc772077d61
The text was updated successfully, but these errors were encountered: