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

[ProcessContainers] Update Dobby implementation #1771

Merged
merged 7 commits into from
Oct 15, 2024

Conversation

sebaszm
Copy link
Contributor

@sebaszm sebaszm commented Oct 8, 2024

No description provided.

@@ -115,7 +111,7 @@ namespace ProcessContainers {

// Dobby stop is async - block until we get the notification the container
// has actually stopped
this->InternalLock();
// this->InternalLock();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please remove this line if it's not needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

InternalLock() was used to protect the internal list of created containers, which is now handled outside of container provider implementations (since there can be multiple providers). Therefore the InternalLock() method has been removed altogether.

In this context there container list was not modified, so using this lock was not required. But, perhaps, it was reused for a different purpose, so it was only commented out - as a remark, because it may need reviewing whether a critical section is indeed needed here.

I will remove this, since the original purpose of InternalLock is gone.

@@ -139,7 +135,7 @@ namespace ProcessContainers {
}
}

this->InternalUnlock();
// this->InternalUnlock();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this line as well

@MFransen69 MFransen69 removed their request for review October 10, 2024 17:09
@MFransen69 MFransen69 self-requested a review October 15, 2024 14:58
@MFransen69 MFransen69 merged commit 8d03846 into master Oct 15, 2024
40 of 41 checks passed
@MFransen69 MFransen69 deleted the development/dobby-sync branch October 15, 2024 14:58
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

Successfully merging this pull request may close these issues.

3 participants