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

fix: add event to avoid deadlocks on run_command calls #386

Merged
merged 3 commits into from
Oct 18, 2023

Conversation

sebclrsn
Copy link
Contributor

@sebclrsn sebclrsn commented Oct 5, 2023

When a callback executed in _receive_message calls run_command while the auxiliary is being deleted, this run_command call never gets to acquire the lock (already acquired by delete_instance in the main thread) and _receive_message never terminates either.
This leads to deadlocks on delete_instance calls.

Solution is to add an event acting as a guard and preventing run_command to try and acquire the lock while the auxiliary is being deleted

@codecov
Copy link

codecov bot commented Oct 5, 2023

Codecov Report

Merging #386 (8c5b7e6) into master (5f203e5) will increase coverage by 0.00%.
Report is 12 commits behind head on master.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #386   +/-   ##
=======================================
  Coverage   97.09%   97.10%           
=======================================
  Files          85       85           
  Lines        6824     6830    +6     
=======================================
+ Hits         6626     6632    +6     
  Misses        198      198           
Files Coverage Δ
src/pykiso/interfaces/dt_auxiliary.py 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@sebastianpfischer
Copy link
Contributor

@TedRio, do you still want to review or do we merge it?

@Pog3k
Copy link
Contributor

Pog3k commented Oct 11, 2023

Waiting for validation

@Pog3k Pog3k merged commit 4e79fd4 into eclipse:master Oct 18, 2023
5 checks passed
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