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

Set command option's like 'EX 1000' and NX failing to parse #3

Closed
eaddingtonwhite opened this issue Dec 20, 2022 · 0 comments · Fixed by #4
Closed

Set command option's like 'EX 1000' and NX failing to parse #3

eaddingtonwhite opened this issue Dec 20, 2022 · 0 comments · Fixed by #4

Comments

@eaddingtonwhite
Copy link
Contributor

When sending a Redis command like
SET foo bar NX EX 1000
or
SET foo2 bar2 EX 1000 NX

against a container running Redis I am able to set this key ok. But when I run it against the proxy code I am seeing the proxy failing to parse the more complex set command and logs the following error:
bad request: bulk string is not a u64

brayniac added a commit to brayniac/pelikan that referenced this issue Dec 20, 2022
Fixes pelikan-io#3 by improving the utlity functions which we use to operate
on the array of tokens.

Previously, we were having to track our position in the token
stream but were mixing that with functions which removed tokens
from the stream.

This change makes all the utility functions act by attempting to
take a token from the front of the token stream. This makes the
parser more intuitive to write and less likely to have the same
class of bug.
brayniac added a commit that referenced this issue Dec 20, 2022
Fixes #3 by improving the utlity functions which we use to operate
on the array of tokens.

Previously, we were having to track our position in the token
stream but were mixing that with functions which removed tokens
from the stream.

This change makes all the utility functions act by attempting to
take a token from the front of the token stream. This makes the
parser more intuitive to write and less likely to have the same
class of bug.
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 a pull request may close this issue.

1 participant