Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
We couldn't come up with a simple repro yet - seems like a race condition. I noticed this after some refactoring in this CL , the repro is basically:
We have a snapshotFlow collected inside the node scope
We mutate state read by the node scope inside onDetach() of a different node
After onDetach() callbacks we cancel the node scope
The snapshotFlow executes the block after this change, even though
currentCoroutineContext().isActive
was false insidesnapshotFlow
.