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

Possible race condition in PPE-enabled Actor.pushData #352

Open
janbuchar opened this issue Feb 3, 2025 · 0 comments
Open

Possible race condition in PPE-enabled Actor.pushData #352

janbuchar opened this issue Feb 3, 2025 · 0 comments

Comments

@janbuchar
Copy link
Contributor

          FYI: By moving the push before the charge, we introduced a small race condition where as we are close to the max budget, more pushes can happen concurrently and we could push a few more items than we can charge for. I think this might happen maybe in 1/1000 runs, maybe even less (depends on the size of the data push which determines the latency of it).

I thought a bit about fixes for this and haven't come up with anything elegant. You could have a new bookFutureCharge method to pre-register events but it would introduce a new complex API. Or we could patch it on the Actor class bypassing the manager and just handle in the pushData. All of it introduces extra complexities. So for now I'm parking that thought because I don't think it is a big deal.

Originally posted by @metalwarrior665 in #346 (comment)

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

No branches or pull requests

1 participant