lightning failed to connect to tidb when using ipv6 host #35880
Labels
affects-5.3
This bug affects 5.3.x versions.
affects-5.4
This bug affects 5.4.x versions.
affects-6.1
component/lightning
This issue is related to Lightning of TiDB.
severity/minor
type/bug
The issue is confirmed as a bug.
Bug Report
like pingcap/tiflow#6135, we should use net.JoinHostPort in:
tidb/br/pkg/lightning/common/util.go
Line 60 in ea5b0ff
PS: we cannot workaround by add square brace to host since when connecting to tidb status port we uses
net.JoinHostPort
, in which case it'll add square brace twicetidb/br/pkg/lightning/config/config.go
Line 157 in 323411d
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: