-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
fromEmitter same-pool deadlock #4735
Comments
This was resolved in 2.x by making sure a |
I think I'm running into this problem as well. I was using a single-thread-scheduler for the emitter, so I thought (from your explanation) that moving to a threadpool would resolve the problem. It apparently does not for my case. I'm probably misunderstanding what is going on behind the scenes. Do you have any suggestions on how to workaround this issue (without moving to 2.x). |
@bobvanderlinden Yes, use the NONE policy and apply |
@akarnokd That works like a charm! Thanks a lot! |
This affects both 1.x and 2.x.
There is a question on StackOverflow where the example program hangs after it delivered the default bufferSize elements until the
fromEmitter
source completes.The problem is that
subscribeOn
schedules the downstream's replenishingrequest
on the same thread that is busy/sleeping and has no opportunity to update its internal requested amount. We had similar problems withonBackpressureBlock
which had to be dropped.We could introduce a
subscribeOn
mode in which it doesn't reschedule therequest
from downstream but it will confuse some and make wonder others.The text was updated successfully, but these errors were encountered: