Open kbr-scylla opened 4 weeks ago
it's on purpose, since scylla or some of the tooling (i.e. nodetool) and cloud provider, we returning different formats we decided to always use the full format, with leading zeros, to be able to compare correctly.
question is why scylla use the short format ?
is it specified anywhere in scylla code ? or by product of something else ?
looks like IPv6 printing was added in scylladb/seastar@97102fa83b19248fd0f4b2286868da6c812d1772 by @elcallio implementation
std::ostream& seastar::net::operator<<(std::ostream& os, const ipv6_address& a) {
char buffer[64];
return os << ::inet_ntop(AF_INET6, a.ip.data(), buffer, sizeof(buffer));
}
so it's using the standard inet_ntop
function https://man7.org/linux/man-pages/man3/inet_ntop.3.html
defined in RFC 2553 https://datatracker.ietf.org/doc/html/rfc2553#section-6.6
parallel-topology-schema-changes-mu-db-node-e330a762-9/messages.log:
note the
broadcast_address=2a05:d01c:964:7d01:9e5:bac1:a3ae:f921
SCT log printing about that node:
ip_address is: 2a05:d01c:0964:7d01:09e5:bac1:a3ae:f921
find the difference...