-
Notifications
You must be signed in to change notification settings - Fork 543
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
Regression: Garnet 1.0.49 fails on unknown commands in Lua #902
Comments
Hmm, I can't quite reproduce what you're seeing in .49 (commit As to the responses, I think those are correct in .49 and were wrong in earlier Garnet. Comparing to Redis, Could you share a repro script that produces those log lines? |
@kevin-montrose If I use GarnetServer from the latest repo with I observe problems in a server built from the NuGet package. Have you tried this scenario, by any chance? |
My server built from the NuGet package is this https://github.com/nightroman/FarNet.Redis/tree/main/src/GarnetServer
|
Looks liket the nuget has not packaged up the lua binaries. The nuget spec is in the csproj now: https://github.com/microsoft/garnet/blob/main/libs/host/Garnet.host.csproj Also we need to check whether dotnet-tool works: https://github.com/microsoft/garnet/blob/main/main/GarnetServer/GarnetServer.csproj |
FWIW My normal Lua tests pass (not many, a couple). It just abnormal Lua scripts calling missing Redis commands misbehave. https://github.com/nightroman/FarNet.Redis/blob/main/tests/Scripting.test.ps1 |
I tested with the repo at the .49 commit, I'll try with the nuget package. |
Describe the bug
Garnet 1.0.49 has issues with processing unknown commands in Lua (1.0.48 works more as expected).
Steps to reproduce the bug
With Garnet 1.0.48 using StackExchange.Redis
ScriptEvaluate
, we get:redis.call("missing")
returns an empty stringreturn redis.call("missing")
returns the stringERR unknown command
With Garnet 1.0.49 the above calls result in exceptions and the server log shows the following records (they do not look as something by design):
Expected behavior
The above Lua scripts are intentionally not quite right, using unknown commands.
They should probably cause some errors, e.g. like in Garnet 1.0.48 but not like in 1.0.49
Release version
1.0.49
IDE
.NET 9
OS version
Windows 11
The text was updated successfully, but these errors were encountered: