Skip to content
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

Signal sent to Selector can be lost if Default path blocks #1624

Open
Quinn-With-Two-Ns opened this issue Sep 6, 2024 · 0 comments
Open

Comments

@Quinn-With-Two-Ns
Copy link
Contributor

Expected Behavior

Selector can block in Default path without loosing signals

Actual Behavior

Selector that block in the Default path risk loosing signals

When a signal is sent to the channel while the AddDefault method (long running) is executing, the signal is lost without being received. This was because if AddDefault is specified, the readyFunc is never executed. By storing the value in channel's recValue beforehand, we are making it available for any future receives on that channel without dropping the signal.

Steps to Reproduce the Problem

See: altafDevRev/temporal-samples#1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant