Skip to content
This repository has been 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
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Al33t
Copy link

@Al33t Al33t commented Sep 18, 2020

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
Copy link
Author

Al33t commented Sep 18, 2020

Closes #3105

4 similar comments
@Al33t
Copy link
Author

Al33t commented Sep 18, 2020

Closes #3105

@Al33t
Copy link
Author

Al33t commented Sep 18, 2020

Closes #3105

@Al33t
Copy link
Author

Al33t commented Sep 18, 2020

Closes #3105

@Al33t
Copy link
Author

Al33t commented Sep 18, 2020

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