-
Notifications
You must be signed in to change notification settings - Fork 700
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
Rename to Valkey for lolwut command #1559
base: unstable
Are you sure you want to change the base?
Conversation
Signed-off-by: Sarthak Aggarwal <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## unstable #1559 +/- ##
============================================
+ Coverage 70.78% 70.93% +0.15%
============================================
Files 120 120
Lines 65046 65060 +14
============================================
+ Hits 46045 46153 +108
+ Misses 19001 18907 -94
|
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.
Good, but we can avoid hard-coding the name.
(It's weird that we have SERVER_TITLE but we decided to name the version variable VALKEY_VERSION instead of SERVER_VERSION. Maybe there was a reason for that. I don't remember the discussion.)
@@ -43,7 +43,7 @@ void lolwut6Command(client *c); | |||
/* The default target for LOLWUT if no matching version was found. | |||
* This is what unstable versions of the server will display. */ | |||
void lolwutUnstableCommand(client *c) { | |||
sds rendered = sdsnew("Redis ver. "); | |||
sds rendered = sdsnew("Valkey ver. "); |
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.
sds rendered = sdsnew("Valkey ver. "); | |
sds rendered = sdsnew(SERVER_TITLE " ver. "); |
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.
I thought we left this intentionally because it's technically breaking change. Why do we need to change it?
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.
I guess because seeing "Redis" anywhere sticks out. :D If we want to keep LOLWUT without updates, then we should probably instead return REDIS_VERSION rather than VALKEY_VERSION?
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.
I guess because seeing "Redis" anywhere sticks out.
Yeah, that's why I raised the change. I wasn't aware that we left this out intentionally.
Do you think that we should take this up in the next major version?
Also, we kinda still use it here as well: https://github.com/valkey-io/valkey/blob/unstable/src/networking.c#L4277
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.
Oh, I think we missed those security warning logs. We decided during the initial rebranding work that we don't need compatibility for log messages, so I guess it's OK to change them.
I did a quick grep and I found one more occurrence in an error message in script.c
: "This Redis command is not allowed from script"
. My first thought is that I don't think it's risky to change it, but if we think it is, then we could let it depend on the extended-redis-compat configuration.
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.
We decided during the initial rebranding work that we don't need compatibility for log messages, so I guess it's OK to change them.
I guess I can raise another PR for this, if that's okay. If we decide on changing in the script.c
as well, I am happy to do it as well.
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.
Trying to understand the issue. AFAIK changing the lolwut can break some clients using it in order to get the current verison. The other issue is that we also have the "Easter eggs" lolwat (which are somewhat broken, for example you cannot enter lolwut which are also presenting the VALKEY_VERSION version and Redis brand (I wonder if these we can be changed). In anycase I think this should be marked as a breaking change |
While trying out few commands in the codebase, I found that upon executing
lolwut
command on unstable, it still returnsRedis Ver
. Thought, since we are on unstable, maybe we should remove this?Let me know if that isn't the case.