-
-
Notifications
You must be signed in to change notification settings - Fork 414
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
[🐛 BUG]: Error 'empty ID is not allowed' for 'forceRelease' method. #2050
Comments
Hey @fugikzl 👋 |
@fugikzl Fixed, will be released in the |
@fugikzl Currently, you may pass any dummy non-empty ID with the payload to bypass this limitation until v2024.3 release. This would also work with the updated version, but ID would be simply skipped. So, pre-2024.3 and post-2024.3 won't introduce any breaking changes. |
@rustatian got it, thanks! |
If anyone has met with same problem before the release, here is the example of temporary solution: \Spiral\Goridge\RPC\RPC::create($connection)->call('lock.ForceRelease', [
'resource' => $resource,
'id' => 'any-string'
]); Explanation: roadrunner-php/lock library calls |
No duplicates 🥲.
What happened?
RoadRunner\Lock\Lock::forceRelease(string $resource): bool - method throws RPC exception with message "Error 'empty ID is not allowed'". It may be caused by check in https://github.com/roadrunner-server/lock/blob/05729ecc410d2c61a7124da03c6d7d235063c284/rpc.go#L105
Version (rr --version)
2024.2.1
How to reproduce the issue?
Set up RPC server in .rr.yaml. Create lock for resource and try forceRelease() method.
Relevant log output
The text was updated successfully, but these errors were encountered: