You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kvrocks.apache.org by "git-hulk (via GitHub)" <gi...@apache.org> on 2023/04/12 11:17:07 UTC

[GitHub] [incubator-kvrocks] git-hulk opened a new issue, #1381: SetClusterNodes allow to match localhost and real ip when listening on 0.0.0.0

git-hulk opened a new issue, #1381:
URL: https://github.com/apache/incubator-kvrocks/issues/1381

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/incubator-kvrocks/issues) and found no similar issues.
   
   
   ### Motivation
   
   Currently, `SetClusterNodes` can't match the node if the instance is listening on 0.0.0.0 instead of the real IP. 
   
   For example, the cluster topology is: `lohMbHeln658feDcRVKYb4tT7XClAm3Zr4awKuoK 127.0.0.1 6666 master -  0-16383`, but the listen address is 0.0.0.0, then it won't match the cluster node since the listen IP is not strictly equal to cluster's node IP 127.0.0.1(as well as not localhost IP like 172.14.1.x).
   
   This would confuse users because the cluster didn't work as their expected.
   
   ### Solution
   
   Check the IP address is matched by the real listening IP addresses instead of the bind address directly when using 0.0.0.0.
   
   https://github.com/apache/incubator-kvrocks/blob/unstable/src/cluster/cluster.cc#L211
   
   ### Are you willing to submit a PR?
   
   - [ ] I'm willing to submit a PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-kvrocks] PragmaTwice closed issue #1381: SetClusterNodes allow to match localhost and real ip when listening on 0.0.0.0

Posted by "PragmaTwice (via GitHub)" <gi...@apache.org>.
PragmaTwice closed issue #1381: SetClusterNodes  allow to match localhost and real ip when listening on 0.0.0.0
URL: https://github.com/apache/incubator-kvrocks/issues/1381


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-kvrocks] PragmaTwice commented on issue #1381: SetClusterNodes allow to match localhost and real ip when listening on 0.0.0.0

Posted by "PragmaTwice (via GitHub)" <gi...@apache.org>.
PragmaTwice commented on issue #1381:
URL: https://github.com/apache/incubator-kvrocks/issues/1381#issuecomment-1506932452

   > please assign to me
   
   Great! Assigned.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-kvrocks] zevin02 commented on issue #1381: SetClusterNodes allow to match localhost and real ip when listening on 0.0.0.0

Posted by "zevin02 (via GitHub)" <gi...@apache.org>.
zevin02 commented on issue #1381:
URL: https://github.com/apache/incubator-kvrocks/issues/1381#issuecomment-1506908550

   please assign to me


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org