Add extensions supported to cluster link layer to propagate extension faster during handshake#2310
Conversation
Signed-off-by: Binbin <binloveplay1314@qq.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## unstable #2310 +/- ##
============================================
+ Coverage 71.41% 71.45% +0.04%
============================================
Files 123 123
Lines 67069 67135 +66
============================================
+ Hits 47898 47973 +75
+ Misses 19171 19162 -9
🚀 New features to boost your workflow:
|
hpatro
left a comment
There was a problem hiding this comment.
I think the problem is during handshake the sender node is still treated as random node and is still returned as NULL from the below method.
Lines 3119 to 3137 in dcf3222
I think we can store these information at two places but use the link->extension explicitly to determine if we can send extensions or not and node->flags to gossip about extension support to others.
WDYT @enjoy-binbin ?
Let me confirm, we are saying the same thing? Node B does not know Node A (during handshake, random node), so just two different ways of saying it (yours is a little more specific)?
SGTM, i will make the change |
Signed-off-by: Binbin <binloveplay1314@qq.com>
|
@madolson Could you also give a look at this? |
Didn't follow the I was explaining from the code point of view where until we haven't finished the handshake and settled on the actual nodename, we don't retrieve the sender |
|
It suddenly occurred to me that we might need to keep this node check? Like when myself add a unknown node from the gossip part, in this case, aren't we need this node condition to send the packet in the very first time (before myself recevie the packet) |
Sorry i gave the wrong info, i mean
great, good to know, i just want to be sure we are in the same page, that is a good explanation. |
That's right 👍 . |
Signed-off-by: Binbin <binloveplay1314@qq.com>
Signed-off-by: Binbin <binloveplay1314@qq.com>
Signed-off-by: Binbin <binloveplay1314@qq.com>
Signed-off-by: Binbin <binloveplay1314@qq.com>
Signed-off-by: Binbin <binloveplay1314@qq.com>
…xtension faster during handshake (valkey-io#2310)" This reverts commit 78e7208.
This clusterLink->flags was added in valkey-io#2310, during the review, we at the end chose to add a new CLUSTER_LINK_XXX flag instead of sharing the old CLUSTER_NODE_XXX flag. Signed-off-by: Binbin <binloveplay1314@qq.com>
This clusterLink->flags was added in #2310, during the review, we at the end chose to add a new CLUSTER_LINK_XXX flag instead of sharing the old CLUSTER_NODE_XXX flag. Signed-off-by: Binbin <binloveplay1314@qq.com>
This clusterLink->flags was added in valkey-io#2310, during the review, we at the end chose to add a new CLUSTER_LINK_XXX flag instead of sharing the old CLUSTER_NODE_XXX flag. Signed-off-by: Binbin <binloveplay1314@qq.com>
This clusterLink->flags was added in valkey-io#2310, during the review, we at the end chose to add a new CLUSTER_LINK_XXX flag instead of sharing the old CLUSTER_NODE_XXX flag. Signed-off-by: Binbin <binloveplay1314@qq.com>
This clusterLink->flags was added in valkey-io#2310, during the review, we at the end chose to add a new CLUSTER_LINK_XXX flag instead of sharing the old CLUSTER_NODE_XXX flag. Signed-off-by: Binbin <binloveplay1314@qq.com>
This clusterLink->flags was added in valkey-io#2310, during the review, we at the end chose to add a new CLUSTER_LINK_XXX flag instead of sharing the old CLUSTER_NODE_XXX flag. Signed-off-by: Binbin <binloveplay1314@qq.com> Signed-off-by: Harkrishn Patro <bunty.hari@gmail.com>
Add support_extension to cluster link, so that when myself receives a message from sender,
even if myself does not know the sender, for example during handshake the sender node is
still treated as random node, in thi case, the packet we reply to sender can also carry the
extension, since the sender link explicitly indicates that it supports the extension, by doing
this, we can speed up the spread of the extension.
See #2283 (comment) and
#2279 (comment) for more details.