Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

fix: A race condition that corrupts the kernel status during kernel creation #368

Merged
merged 2 commits into from
Dec 20, 2020

Conversation

achimnol
Copy link
Member

No description provided.

…reation

* Handling of kernel_preparing, kernel_creating, kernel_started events are asynchronous to
  recording of kernel creation results upon RPC return, and this has caused rare race conditions
  that make successfully started kernels to become "PREPARING" forever.
@achimnol achimnol added this to the 20.03 milestone Dec 20, 2020
@achimnol achimnol added the bug label Dec 20, 2020
@achimnol achimnol modified the milestones: 20.03, 20.09 Dec 20, 2020
@codecov
Copy link

codecov bot commented Dec 20, 2020

Codecov Report

Merging #368 (05aabdb) into master (5b40af2) will decrease coverage by 0.09%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #368      +/-   ##
==========================================
- Coverage   49.26%   49.17%   -0.10%     
==========================================
  Files          51       51              
  Lines        7591     7605      +14     
==========================================
  Hits         3740     3740              
- Misses       3851     3865      +14     
Impacted Files Coverage Δ
src/ai/backend/manager/registry.py 17.69% <0.00%> (-0.29%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5b40af2...05aabdb. Read the comment docs.

@achimnol achimnol merged commit f9df190 into master Dec 20, 2020
@achimnol achimnol deleted the fix/race-condition-while-creating-kernels branch December 20, 2020 03:51
achimnol added a commit that referenced this pull request Dec 20, 2020
)

* Apply the same event-based sync to fix race condition for kernel status update as in #368
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant