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
You can toggle between lines 30 and 31 to provoke the error or to not have it occur.
When the list is only two element, the producer will send its :terminate event immediatly and the previous error will show up. Displaying something on the console (via IO.inspect) would also be enough to not have the error (presumably because it adds a little bit of time before the producer closes).
Am I doing something wrong or is it really a race condition?
The text was updated successfully, but these errors were encountered:
Definitely a race condition. We were supposed to handle those scenarios but it seems we do not. Although it is a bug in GenStage and not Flow. :) No worries though, I will transfer it accordingly. Thank you!
There's a weird behaviour when dealing with a producer that has too little elements to deal with:
Here is a gist that have minimal code for this bug: https://gist.github.com/Fenntasy/1e930da0f7b6c2055a660831d4406a96
You can toggle between lines 30 and 31 to provoke the error or to not have it occur.
When the list is only two element, the producer will send its
:terminate
event immediatly and the previous error will show up. Displaying something on the console (viaIO.inspect
) would also be enough to not have the error (presumably because it adds a little bit of time before the producer closes).Am I doing something wrong or is it really a race condition?
The text was updated successfully, but these errors were encountered: