mysql-proxy does not re-resolve DNS names for backend servers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MySQL Proxy |
Unknown
|
Unknown
|
|||
mysql-proxy (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
mysql-proxy does not re-resolve DNS names of host in the event of connect failure.
If a backend mysql server's DNS name rotates it's IP address, the mysql-proxy will not correct it's lookup until the service is restarted.
The example below shows the service still attempting to connect to 10.0.0.2 days after the dns name in the launch config ip was moved to 10.0.0.3.
/usr/bin/
<snip...>
Dec 14 06:58:59 localhost mysql-proxy: 2015-12-14 06:58:59: (message) proxy-plugin.
Dec 14 06:58:59 localhost mysql-proxy: 2015-12-14 06:58:59: (critical) proxy-plugin.
Dec 14 06:58:59 localhost mysql-proxy: 2015-12-14 06:58:59: (debug) [network-
Dec 14 06:58:59 localhost mysql-proxy: 2015-12-14 06:58:59: (warning) (libevent) event_del: event has no event_base set.
<snip>
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: mysql-proxy 0.8.1-1.1build1
ProcVersionSign
Uname: Linux 3.13.0-46-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.18
Architecture: amd64
Date: Mon Dec 21 15:23:22 2015
Ec2AMI: ami-018c9568
Ec2AMIManifest: (unknown)
Ec2Availability
Ec2InstanceType: m3.large
Ec2Kernel: aki-919dcaf8
Ec2Ramdisk: unavailable
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: mysql-proxy
UpgradeStatus: No upgrade log present (probably fresh install)
modified.
modified.
mtime.conffile.