Open ealter opened 5 years ago
Thank you for investigating! I'd say this is an issue for https://github.com/siddontang/go-mysql ; fixing it in gh-ost
is probably not the best idea.
Sounds good. I filed https://github.com/siddontang/go-mysql/issues/388
I have been running into this issue when running
gh-ost
inside of some of our docker containers. When the hostname of the docker container is at least 61 characters in length, I get the following error when trying to rungh-ost
.The docker container is running on Ubuntu Bionic.
When I specified
--hostname
when creating the same docker container to be 61 characters instead,gh-ost
ran without any issues.The error message comes from https://github.com/mysql/mysql-server/blob/124c7ab1d6f914637521fd4463a993aa73403513/sql/rpl_master.cc#L161 and it looks like hostname is chosen from https://github.com/siddontang/go-mysql/blob/master/replication/binlogsyncer.go#L495
Let me know if you need any other information to reproduce this.