apache / kvrocks

Apache Kvrocks is a distributed key value NoSQL database that uses RocksDB as storage engine and is compatible with Redis protocol.
https://kvrocks.apache.org/
Apache License 2.0
3.55k stars 466 forks source link

[BUG] It doesn't work with ipv6? #491

Closed MrYawe closed 2 years ago

MrYawe commented 2 years ago

I'm trying to make kvrocks works with an ipv6 address on https://fly.io

To Reproduce Here is my Dockerfile :

FROM kvrocks/kvrocks:v2.0.6

RUN sed -i "s|bind 0.0.0.0|bind ::|g" ./conf/kvrocks.conf
# lsof -i -P -n | grep LISTEN
kvrocks  523 root   16u  IPv4   4450      0t0  TCP *:6666 (LISTEN)
kvrocks  523 root   21u  IPv4   4452      0t0  TCP *:6666 (LISTEN)
kvrocks  523 root   26u  IPv4   4454      0t0  TCP *:6666 (LISTEN)
kvrocks  523 root   31u  IPv4   4456      0t0  TCP *:6666 (LISTEN)
kvrocks  523 root   36u  IPv4   4458      0t0  TCP *:6666 (LISTEN)
kvrocks  523 root   41u  IPv4   4460      0t0  TCP *:6666 (LISTEN)
kvrocks  523 root   46u  IPv4   4462      0t0  TCP *:6666 (LISTEN)
kvrocks  523 root   51u  IPv4   4464      0t0  TCP *:6666 (LISTEN)

Expected behavior Kvrocks should listen on IPv6 TCP *:6666

git-hulk commented 2 years ago

Yes, kvrocks don't support ipv6 address now, we can support it on the next release. PR is always welcome!