You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What version of Kubernetes are you using?
Client Version: v1.31.1
Kustomize Version: v5.4.2
What version of TiDB Operator are you using?
v1.6.0
What did you do?
We deployed a tidb cluster with 3 replicas of pd, tikv and tidb. After the cluster is fully up and healthy, we changed the spec.tidb.config and set port to 80.
The last replica of TiDB restarted. However, it stayed in the unhealthy state due to the error reported by Readiness probe: Readiness probe failed: dial tcp 10.244.3.8:4000: connect: connection refused. And the operator keeps waiting it and hangs.
The root cause of this bug is similar to #6014. The operator hardcodes the port number used to query the readiness of the TiDB here:
What did you expect to see?
We expected to see the tidb rolling update and using the new port.
What did you see instead?
The last replica of tidb restarted. However, it stayed in the unhealthy state due to the error reported by Readiness probe Readiness probe failed: dial tcp 10.244.3.8:4000: connect: connection refused . And the operators kept waiting it and hanged.
Root Cause
After the port of tidb is changed in the configuration, the readiness probe still tries to connect tidb using the default port set in statefulset causing connection failure.
The text was updated successfully, but these errors were encountered:
kos-team
changed the title
TiDB Pods stay unhealthy after configuring the port parameter in TiDB configuration
TiDB Pods stay unhealthy after configuring the port parameter in TiDB configuration
Dec 26, 2024
TiDB Operator doesn't support changing the port after the TiDB cluster is deployed, and a workaround may be to create an additional service with a customized port.
Bug Report
What version of Kubernetes are you using?
Client Version: v1.31.1
Kustomize Version: v5.4.2
What version of TiDB Operator are you using?
v1.6.0
What did you do?
We deployed a tidb cluster with 3 replicas of pd, tikv and tidb. After the cluster is fully up and healthy, we changed the
spec.tidb.config
and setport
to80
.The last replica of TiDB restarted. However, it stayed in the unhealthy state due to the error reported by Readiness probe:
Readiness probe failed: dial tcp 10.244.3.8:4000: connect: connection refused
. And the operator keeps waiting it and hangs.The root cause of this bug is similar to #6014. The operator hardcodes the port number used to query the readiness of the TiDB here:
tidb-operator/pkg/manager/member/tidb_member_manager.go
Line 1229 in 1867f39
How to reproduce
port
to thespec.tidb.config
What did you expect to see?
We expected to see the tidb rolling update and using the new port.
What did you see instead?
The last replica of tidb restarted. However, it stayed in the unhealthy state due to the error reported by Readiness probe
Readiness probe failed: dial tcp 10.244.3.8:4000: connect: connection refused
. And the operators kept waiting it and hanged.Root Cause
After the port of tidb is changed in the configuration, the readiness probe still tries to connect tidb using the default port set in statefulset causing connection failure.
The text was updated successfully, but these errors were encountered: