Failed to Reload Configuration After Online Modification of TiDB Cluster Built in Pure IPv6 Environment

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 纯ipv6环境搭建的tidb集群在线修改配置后reload失败

| username: Hacker_GfW2YGtK

[TiDB Usage Environment] Production Environment
[TiDB Version]
v7.1.0
[Reproduction Path] What operations were performed when the issue occurred
After using tiup cluster edit-config, an error occurred when using the reload command: Error: failed to get leader count node175.tidb.fee.net.chinamobile.com: metric tikv_raftstore_region_count{type="leader"} not found. The TiKV log is as follows:


The log shows that it cannot obtain monitoring information through the domain name. By checking the port, it was found that port 20180 is listening on the IPv4 protocol stack, and it cannot be accessed through the IPv6 address.
image
However, the TiKV startup script is as follows, and the option --advertise-status-addr should listen on the IPv6 protocol stack, but it does not.

Please advise.
[Resource Configuration]
[Attachments: Screenshots/Logs/Monitoring]

| username: tidb菜鸟一只 | Original post link

Is port 20160 started on IPv4 or IPv6?

| username: Hacker_GfW2YGtK | Original post link

20160 starts on a dual-stack:
image

| username: redgame | Original post link

It is possible that the tikv-exporter on the TiKV node did not start correctly or failed to run, resulting in TiDB monitoring being unable to obtain the corresponding metric data.

| username: Hacker_GfW2YGtK | Original post link

When the TiKV service starts, the specified status port is 20180, but it is currently listening incorrectly. Is this a bug? This way, you can’t apply the configuration changes online with reload; you can only restart the cluster?

| username: 有猫万事足 | Original post link

This is the issue. Someone has already reported this bug, but it hasn’t been fixed yet. :joy:

| username: Hacker_GfW2YGtK | Original post link

Got it, thanks.
Waiting for the official fix…

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.