-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
[Bugfix] use SoftLockFile instead of LockFile #3578
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice catch!
What if the program crashes and the |
I don't quite understand this change, with a The error seems to be caused by permissions (the lock file is only accessible by the current user). I think there should be a setting in |
I mean semantically they are the same except Soft gives you a nicer cleanup? |
In my opinion, a better way for allowing multiple users would be #3587 . When each user launches vllm, the files they created can be prefixed by |
I had overlooked that. By using the
|
Not sure if it is called per-process or per-vllm-launch. @simon-mo can confirm this. If |
I understand your point. This means that there is a correct way to use You should be able to avoid conflicts by rename lock file as |
|
In summary, I think the current implementation using |
I suggest putting the cc @simon-mo |
I got a deadlock on the main branch after this PR is merged. The bug didn't appear in the commit just before this PR. |
@WoosukKwon In environments where previous code was executed, if a .lock file remains, a deadlock should occur. Please delete the .lock file and try again If the error occurs in a new environment, I would like information on how to reproduce it. |
It may be better to use |
@kota-iizuka Which file should I exactly delete? Also, I believe we shouldn't break any users who have already been using vLLM. |
My interpretation is that the previous one was broken. |
I realized this PR will break all existing vllm users. Because we use |
This reverts commit 743a0b7.
Yes, but the previous code would have to delete the .lock every time it was used by another user. In that sense, the conditions are the same. |
Co-authored-by: youkaichao <[email protected]>
…project#3599) Co-authored-by: youkaichao <[email protected]>
filelock.LockFile
does not delete the.lock
file it created. Usefilelock.SoftLockFile
instead to remove.lock
when it is no longer needed. This prevents another user from referencing an unused.lock
file and causing an error.FIX #2232 #2179 #2675
sample code
The following script will delete the
a.lock
file created during execution after 5 seconds and finish execution.Changing SoftLockFile to LockFile leaves the
a.lock
file undeleted on exit