-
Notifications
You must be signed in to change notification settings - Fork 287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TiCDC mysql sink can not connect to ipv6 address #6135
Comments
please also consider fixing DM's usage Line 62 in ee4e36c
|
sync-diff & tidb-binlog may also have the problem. |
The problem with dm might be that the user might pass ::1 instead of [::1], right? |
Maybe DM should support both type, I haven't take a look at IPv6 address format 😂 |
|
/label affect-6.1 |
@nongfushanquan: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
/label affects-6.1 |
square brackets are not part of the address, it part of the URI syntax. IPV6 address doesn't has square brackets.
|
Uh-huh, That's what I meant too. |
What did you do?
Create a changefeed that replicate data to an ipv6 address MySQL server.
tiflow/cdc/sink/mysql/mysql.go
Line 109 in ee4e36c
We should use
net.JoinHostPort
for hostnames that are in literal IP addresses.Workaround: use DNS domain name.
What did you expect to see?
Success.
What did you see instead?
Starting component
cdc
: /Users/.tiup/components/cdc/v6.1.0/cdc cli changefeed create --pd=http://[::1]:2379 --sink-uri=tidb://root:@[::1]:4005/ --changefeed-id=simple-replication-task --sort-engine=unifiedError: [CDC:ErrMySQLConnectionError]fail to open MySQL connection: dial tcp [::1:4005]:3306: connect: no route to host
Versions of the cluster
TiCDC version (execute
cdc version
):v6.1.0
The text was updated successfully, but these errors were encountered: