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

Race condition when processing new RFD #92

Open
augustuswm opened this issue Mar 4, 2024 · 0 comments
Open

Race condition when processing new RFD #92

augustuswm opened this issue Mar 4, 2024 · 0 comments

Comments

@augustuswm
Copy link
Contributor

If two jobs for a never before seen RFD number get processed in the same batch there is nothing to prevent them from both creating a new RFD for the new number. This should be enforced at the db level by a unique index.

How this should be handled at the processor level is undecided. It should likely be an error and cause the job to fail. To prevent jobs from getting to this place there likely needs to be some kind of filtering for jobs that are going to create new rfd entries such that two new rfd jobs with the same rfd number never run in the same batch.

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