• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

samsarahq / thunder / 2187
62%
master: 66%

Build:
Build:
LAST BUILD BRANCH: dependabot/npm_and_yarn/client/ua-parser-js-0.7.33
DEFAULT BRANCH: master
Ran 12 Nov 2019 07:15PM UTC
Jobs 1
Files 49
Run time 4s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

12 Nov 2019 07:13PM UTC coverage: 62.202% (-0.08%) from 62.277%
2187

Pull #334

travis-ci

web-flow
go livesql/binlog: set Localhost in binlogSyncerConfig

This sets the localhost field of the BinlogSyncerConfig. If unset,
as it was, it will use the os.Hostname() value as the hostname instead.

In rare situations, the OS's hostname could be too long for the slave
host's "host" field, and we got an error like:

  panic: ERROR 1105 (HY000): Failed to register slave: too long 'report-host'

which would crash the server. So we strip the hostname to be 60
characters, which is the max allowed length.

It doesn't seem like the hostname of the slave hosts matters that much;
Verified everything still worked as expected. We could hardcode
"localhost" here as the host name but are keeping the OS's hostname in
case it's useful for debugging on remote hosts.

To see the hostname of slave hosts:
mysql> show slave hosts;
+------------+--------------------------+------+-----------+------------+
| Server_id  | Host                     | Port | Master_id | Slave_UUID |
+------------+--------------------------+------+-----------+------------+
| 2926146535 | Arthur-Huang-MacBook-Pro | 3308 |         1 |            |
| 4101280766 | Arthur-Huang-MacBook-Pro | 3308 |         1 |            |
|  738891311 | Arthur-Huang-MacBook-Pro | 3308 |         1 |            |
| 3490062834 | Arthur-Huang-MacBook-Pro | 3308 |         1 |            |
| 3176772553 | Arthur-Huang-MacBook-Pro | 3308 |         1 |            |
|  985189460 | Arthur-Huang-MacBook-Pro | 3308 |         1 |            |
| 4240725287 | Arthur-Huang-MacBook-Pro | 3308 |         1 |            |
| 2752132824 | Arthur-Huang-MacBook-Pro | 3308 |         1 |            |
| 3221796892 | Arthur-Huang-MacBook-Pro | 3308 |         1 |            |
| 3038601891 | Arthur-Huang-MacBook-Pro | 3308 |         1 |            |
+------------+--------------------------+------+-----------+------------+

Also see https://github.com/siddontang/go-mysql/issues/388
Pull Request #334: go livesql/binlog: limit slave host name length in binlogSyncerConfig

10 of 10 new or added lines in 1 file covered. (100.0%)

4356 of 7003 relevant lines covered (62.2%)

14832.22 hits per line

Jobs
ID Job ID Ran Files Coverage
1 2187.1 12 Nov 2019 07:15PM UTC 0
62.2
Travis Job 2187.1
Source Files on build 2187
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2187
  • Pull Request #334
  • PR Base - master (#2183)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc