Skip to content
This repository was archived by the owner on Apr 26, 2021. It is now read-only.

Fix a race condition on multiple tasks getting assigned to the same machine - #3106

Open
Al33t wants to merge 1 commit into
cuckoosandbox:masterfrom
Al33t:scheduler_race_condition
Open

Fix a race condition on multiple tasks getting assigned to the same machine#3106
Al33t wants to merge 1 commit into
cuckoosandbox:masterfrom
Al33t:scheduler_race_condition

Conversation

@Al33t

@Al33t Al33t commented Sep 18, 2020

Copy link
Copy Markdown

This also results in that machine needing to get restarted.

What I have added/changed is:

/cuckoo/core/database.py

The goal of my change is:

To avoid a race condition on acquiring machines while they are not yet marked as locked.

What I have tested about my change is:

Instrumented the code to make the race condition more obvious for testing at runtime.
No specific test case was written for this.

…achine

This also results in that machine needing rebuilding.
@Al33t

Al33t commented Sep 18, 2020

Copy link
Copy Markdown
Author

Closes #3105

4 similar comments
@Al33t

Al33t commented Sep 18, 2020

Copy link
Copy Markdown
Author

Closes #3105

@Al33t

Al33t commented Sep 18, 2020

Copy link
Copy Markdown
Author

Closes #3105

@Al33t

Al33t commented Sep 18, 2020

Copy link
Copy Markdown
Author

Closes #3105

@Al33t

Al33t commented Sep 18, 2020

Copy link
Copy Markdown
Author

Closes #3105

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant