Bug #39142 Error in rw-splitting.lua
Submitted: 31 Aug 2008 0:51 Modified: 18 Sep 2008 18:53
Reporter: Josh Boyd Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Proxy: Scripts Severity:S1 (Critical)
Version:Trunk r533 OS:Linux (Ubuntu 8.04.1)
Assigned to: CPU Architecture:Any
Tags: proxy, rw-split

[31 Aug 2008 0:51] Josh Boyd
Description:
When I run mysql-proxy (latest SVN checkout), I get the following once I try to connect to the proxy:

mysql-proxy --admin-address=127.0.0.1:4042 --proxy-backend-addresses=10.254.159.159:3306 --proxy-read-only-backend-addresses=10.254.218.207:3306 --proxy-skip-profiling --proxy-lua-script=/usr/local/share/mysql-proxy/rw-splitting.lua --plugins=proxy --plugins=admin --log-level=debug --plugin-dir=/usr/local/lib/mysql-proxy

2008-08-30 20:47:27: (critical) proxy-plugin.c:2714: (connect_server) [string "/usr/local/share/mysql-proxy/rw-splitting.l..."]:70: attempt to concatenate field 'address' (a nil value)
2008-08-30 20:47:27: (critical) proxy-plugin.c.2495: I have no server backend, closing connection
2008-08-30 20:47:27: (critical) network-mysqld.c.1092: plugin_call(CON_STATE_READ_QUERY) failed
2008-08-30 20:47:27: (critical) proxy-plugin.c.3100: (disconnect_client) [string "/usr/local/share/mysql-proxy/rw-splitting.l..."]:356: attempt to concatenate field 'address' (a nil value)

2008-08-30 20:47:27: (critical) proxy-plugin.c:2714: (connect_server) [string "/usr/local/share/mysql-proxy/rw-splitting.l..."]:70: attempt to concatenate field 'address' (a nil value)
2008-08-30 20:47:27: (critical) proxy-plugin.c.2495: I have no server backend, closing connection
2008-08-30 20:47:27: (critical) network-mysqld.c.1092: plugin_call(CON_STATE_READ_QUERY) failed
2008-08-30 20:47:27: (critical) proxy-plugin.c.3100: (disconnect_client) [string "/usr/local/share/mysql-proxy/rw-splitting.l..."]:356: attempt to concatenate field 'address' (a nil value)

Here are the versions and such:

mysql-proxy -V
mysql-proxy 0.7.0
  glib2: 2.16.4
  libevent: 1.3e

How to repeat:
Runtime settings above should be sufficient to repeat, I believe.
[31 Aug 2008 1:03] Josh Boyd
This is a duplicate of http://bugs.mysql.com/bug.php?id=38419 (sorry). I applied the patch that was suggested there, however I still have the same problem.
[18 Sep 2008 18:34] Sveta Smirnova
Thank you for the report.

Verified as described.
[18 Sep 2008 18:53] Sveta Smirnova
I looked through bug #38419 more carefully and this is the same error. So I mark this one as duplicate of the former.