Add availability_zone to the HELLO response#1487
Add availability_zone to the HELLO response#1487zuiderkwast merged 4 commits intovalkey-io:unstablefrom
availability_zone to the HELLO response#1487Conversation
zuiderkwast
left a comment
There was a problem hiding this comment.
I like the idea but i think we should only include it if it's configured.
Signed-off-by: Rueian <rueiancsie@gmail.com>
zuiderkwast
left a comment
There was a problem hiding this comment.
@valkey-io/core-team please approve if you agree.
enjoy-binbin
left a comment
There was a problem hiding this comment.
LGTM, please also add a test, i think it can be fit in protocol.tcl
Signed-off-by: Rueian <rueiancsie@gmail.com>
Thanks for the direction but how about we add the test in the tracking.tcl? That is the only place I found that has tests for the HELLO command. |
|
tracking.tcl seem odd, the test does not do anything close to tracking, i suggest we also move |
Signed-off-by: Rueian <rueiancsie@gmail.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## unstable #1487 +/- ##
============================================
- Coverage 70.86% 70.85% -0.02%
============================================
Files 119 119
Lines 64859 64863 +4
============================================
- Hits 45963 45959 -4
- Misses 18896 18904 +8
|
Updated. |
Signed-off-by: Rueian <rueiancsie@gmail.com>
This PR is for valkey-io/valkey#1487. Signed-off-by: Rueian <rueiancsie@gmail.com>
|
Thanks for all the reviewing. Here is the PR for doc changes: valkey-io/valkey-doc#207. |
This PR is a followup for #1487. Signed-off-by: Rueian <rueiancsie@gmail.com> Co-authored-by: Binbin <binloveplay1314@qq.com>
Documentation for valkey-io/valkey#1487. It includes the `availability_zone` field in the examples and has a note saying that the field will only be present when it is set in configs. Signed-off-by: Rueian <rueiancsie@gmail.com>
It's inconvenient for client implementations to extract the `availability_zone` information from the `INFO` response. The `INFO` response contains a lot of information that a client implementation typically doesn't need. This PR adds the availability zone to the `HELLO` response. Clients usually already use the `HELLO` command for protocol negotiation and also get the server `version` and `role` from its response. To keep the `HELLO` response small, the field is only added if availability zone is configured. --------- Signed-off-by: Rueian <rueiancsie@gmail.com>
This PR is a followup for valkey-io#1487. Signed-off-by: Rueian <rueiancsie@gmail.com> Co-authored-by: Binbin <binloveplay1314@qq.com>
We add it to HELLO response in #1487. --------- Signed-off-by: Binbin <binloveplay1314@qq.com> Co-authored-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
…y-io#1695) We add it to HELLO response in valkey-io#1487. --------- Signed-off-by: Binbin <binloveplay1314@qq.com> Co-authored-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
…y-io#1695) We add it to HELLO response in valkey-io#1487. --------- Signed-off-by: Binbin <binloveplay1314@qq.com> Co-authored-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
…y-io#1695) We add it to HELLO response in valkey-io#1487. --------- Signed-off-by: Binbin <binloveplay1314@qq.com> Co-authored-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
…t commands `availability_zone` was added to the HELLO command in valkey-io#1487, and it was missing the reply schema and the test was wrongly marked with `logreqres:skip`. `availability-zone` was added to CLUSTER SHARDS and CLUSTER SLOTS commands in valkey-io#3156, and it was missing the reply schema. Signed-off-by: Binbin <binloveplay1314@qq.com>
…3352) `availability_zone` was added to the HELLO command in #1487, and it was missing the reply schema and the test was wrongly marked with `logreqres:skip`. `availability-zone` was added to CLUSTER SHARDS and CLUSTER SLOTS commands in #3156, and it was missing the reply schema. --------- Signed-off-by: Binbin <binloveplay1314@qq.com>
…3352) `availability_zone` was added to the HELLO command in #1487, and it was missing the reply schema and the test was wrongly marked with `logreqres:skip`. `availability-zone` was added to CLUSTER SHARDS and CLUSTER SLOTS commands in #3156, and it was missing the reply schema. --------- Signed-off-by: Binbin <binloveplay1314@qq.com>
It's inconvenient for client implementations to extract the
availability_zoneinformation from theINFOresponse. TheINFOresponse contains a lot of information that a client implementation typically doesn't need.This PR adds the availability zone to the
HELLOresponse. Clients usually already use theHELLOcommand for protocol negotiation and also get the serverversionandrolefrom its response. To keep theHELLOresponse small, the field is only added if availability zone is configured.