-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Deprecate QUIT #11439
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
Deprecate QUIT #11439
Conversation
enjoy-binbin
left a comment
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 also need to run the generate-command-code.py
oranagra
left a comment
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.
LGTM
| "arity": -1, | ||
| "function": "quitCommand", | ||
| "deprecated_since": "7.2.0", | ||
| "replaced_by": "just closing the connection", |
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.
@guybe7 did we have any plans for replaced_by to always point to a specific command (rather than just plain text)?
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 don't rely on it, but i'd rather replaced_by would always be a command name
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.
Currently, it is a string of text usually with some commands embedded within it. I think we should follow that until we change it for all commands. Some examples:
georadius_ro.json: "replaced_by": "`GEOSEARCH` with the `BYRADIUS` argument",
georadiusbymember.json: "replaced_by": "`GEOSEARCH` and `GEOSEARCHSTORE` with the `BYRADIUS` and `FROMMEMBER` arguments",
georadiusbymember_ro.json: "replaced_by": "`GEOSEARCH` with the `BYRADIUS` and `FROMMEMBER` arguments",
On the redis.io website, it is rendered inside a sentence so we need to take care that the grammar ends up correct:
As of Redis version {deprecated_since}, this command is regarded as deprecated.
It can be replaced by {replaced_by} when migrating or writing new code.
oranagra
left a comment
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.
approved in a core-team meeting for 7.2.
@zuiderkwast can you make a PR for redis-docs with the content Yossi mentioned in #11420
Done. I'm not sure how much detail to include in the docs apart from "don't use it", so feel free to edit the docs it before doc merge. |
Clients should not use this command. Instead, clients should simply close the connection when they're not used anymore. Terminating a connection on the client side is preferable, as it eliminates `TIME_WAIT` lingering sockets on the server side.
Clients should not use this command. Instead, clients should simply close the connection when they're not used anymore. Terminating a connection on the client side is preferable, as it eliminates `TIME_WAIT` lingering sockets on the server side.
Fixes #11420.