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
Fix a race condition that may make OperatorMaterialize emit too many terminal notifications (#5850)
* Fix a race condition that may make OperatorMaterialize emit the
terminal notification more than once
The guards in `OperatorMaterialize.ParentSubscriber#drain` were never
working, because `busy` was actually never set to true.
Therefore it was possible that the `drain` loop was executed by
more than one thread concurrently, which could led to undefined
behavior.
This fix sets `busy` to true at the entry of `drain`.
* Add unit test for race in OperatorMaterialize
* Set sudo required in travis config
0 commit comments