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

Mitigate concurrency issues #670

Merged
merged 4 commits into from
Aug 16, 2024
Merged

Mitigate concurrency issues #670

merged 4 commits into from
Aug 16, 2024

Conversation

olethanh
Copy link
Collaborator

This branch mitigate some of the concurrency issue found during the confidential beta test that prevented some instances from being run or getting in weird state.

…case the id was reused

Solution: Base the socket name on the vm_hash
…(and thus network interface)

Issue happened with systemd run controller since we could have an id allocated but the controller process not started or running at that moment
@olethanh olethanh changed the title Mititate concurrency issue Mititate concurrency issues Aug 16, 2024
@olethanh olethanh changed the title Mititate concurrency issues Mitigate concurrency issues Aug 16, 2024
Copy link

codecov bot commented Aug 16, 2024

Codecov Report

Attention: Patch coverage is 66.66667% with 2 lines in your changes missing coverage. Please review.

Project coverage is 61.46%. Comparing base (902cf85) to head (ca0dbd4).
Report is 1 commits behind head on main.

Files Patch % Lines
src/aleph/vm/models.py 66.66% 1 Missing ⚠️
src/aleph/vm/pool.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #670   +/-   ##
=======================================
  Coverage   61.46%   61.46%           
=======================================
  Files          68       68           
  Lines        5986     5989    +3     
  Branches      633      633           
=======================================
+ Hits         3679     3681    +2     
- Misses       2152     2153    +1     
  Partials      155      155           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@olethanh olethanh force-pushed the ol-mitigate-concurrency-issues branch from ca0dbd4 to 16d729b Compare August 16, 2024 18:23
@hoh hoh merged commit 7622499 into main Aug 16, 2024
25 checks passed
@hoh hoh deleted the ol-mitigate-concurrency-issues branch August 16, 2024 18:54
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.

2 participants