Bug #58591 | [network-mysqld.c:937]: error on a connection (fd: -1 event: 0). closing client | ||
---|---|---|---|
Submitted: | 30 Nov 2010 15:32 | Modified: | 3 Dec 2010 2:59 |
Reporter: | david nick | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Proxy: Scripts | Severity: | S3 (Non-critical) |
Version: | 0.8.1 | OS: | Linux (Centos5) |
Assigned to: | CPU Architecture: | Any | |
Tags: | mysql-proxy rw-splitting |
[30 Nov 2010 15:32]
david nick
[30 Nov 2010 15:45]
david nick
my.cnf: [mysqld] port = 3306 socket = /tmp/mysql.sock datadir=/data/mysql back_log = 50 max_connections = 500 max_connect_errors = 100 table_cache = 2048 max_allowed_packet = 16M binlog_cache_size = 1M max_heap_table_size = 64M sort_buffer_size = 8M join_buffer_size = 8M thread_cache_size = 8 thread_concurrency = 8 query_cache_size = 64M query_cache_limit = 2M ft_min_word_len = 4 default_table_type = InnoDB thread_stack = 192K transaction_isolation = REPEATABLE-READ tmp_table_size = 64M long_query_time = 3 key_buffer_size = 32M read_buffer_size = 2M read_rnd_buffer_size = 16M bulk_insert_buffer_size = 64M myisam_sort_buffer_size = 128M myisam_max_sort_file_size = 10G myisam_repair_threads = 1 myisam_recover innodb_additional_mem_pool_size = 16M innodb_buffer_pool_size = 36M innodb_data_file_path = ibdata1:4G;idbdata2:4G:autoextend innodb_file_io_threads = 5 innodb_thread_concurrency = 5 innodb_flush_log_at_trx_commit = 1 innodb_log_buffer_size = 8M innodb_log_file_size = 256M innodb_autoextend_increment = 20M innodb_log_files_in_group = 3 innodb_max_dirty_pages_pct = 80 innodb_flush_method=O_DIRECT innodb_lock_wait_timeout = 50 auto_increment_increment=2 auto_increment_offset=1 expire_logs_days=3 innodb_write_io_threads=5 innodb_io_capacity=200 slow_query_log=/data/logs/slow.log innodb_use_sys_malloc =1 user=mysql old_passwords=0 # sync server-id=1001 log-bin=mysql-bin binlog-ignore-db=mysql sync_binlog=1 [mysqld_safe] log-error=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid skip-name-resolve skip-grant-tables skip-locking
[30 Nov 2010 16:11]
david nick
[root@test1 ~]# php test.php [connect_server] 127.0.0.1:52669 [1].connected_clients = 0 [1].pool.cur_idle = 5 [1].pool.max_idle = 8 [1].pool.min_idle = 4 [1].type = 1 [1].state = 1 [2].connected_clients = 0 [2].pool.cur_idle = 0 [2].pool.max_idle = 8 [2].pool.min_idle = 4 [2].type = 2 [2].state = 1 [2] idle-conns below min-idle [read_query] 127.0.0.1:52669 current backend = 0 client default db = test client username = root query = SELECT * FROM site.site limit 2 sending to backend : 0.0.0.0:3306 is_slave : true server default db: test server username : root in_trans : false in_calc_found : false COM_QUERY : true [read_query] 127.0.0.1:52669 current backend = 0 client default db = test client username = root (QUIT) current backend = 0 [disconnect_client] 127.0.0.1:52669 [root@test1 ~]# php test.php [connect_server] 127.0.0.1:52680 [1].connected_clients = 0 [1].pool.cur_idle = 5 [1].pool.max_idle = 8 [1].pool.min_idle = 4 [1].type = 1 [1].state = 1 [2].connected_clients = 0 [2].pool.cur_idle = 5 [2].pool.max_idle = 8 [2].pool.min_idle = 4 [2].type = 2 [2].state = 1 [1] taking master as default using pooled connection from: 1 [disconnect_client] 127.0.0.1:52680 Connection failed: SQLSTATE[08S01] [1156] Got packets out of order [root@test1 ~]# php test.php [connect_server] 127.0.0.1:54787 [1].connected_clients = 0 [1].pool.cur_idle = 0 [1].pool.max_idle = 8 [1].pool.min_idle = 4 [1].type = 1 [1].state = 1 [1] idle-conns below min-idle [read_query] 127.0.0.1:54787 current backend = 0 client default db = test client username = root query = SELECT * FROM site.site limit 2 sending to backend : 0.0.0.0:3306 is_slave : true server default db: test server username : root in_trans : false in_calc_found : false COM_QUERY : true [read_query] 127.0.0.1:54787 current backend = 0 client default db = test client username = root (QUIT) current backend = 0 [disconnect_client] 127.0.0.1:54787 [root@test1 ~]# php test.php [connect_server] 127.0.0.1:55499 [1].connected_clients = 0 [1].pool.cur_idle = 5 [1].pool.max_idle = 8 [1].pool.min_idle = 4 [1].type = 1 [1].state = 1 [2].connected_clients = 0 [2].pool.cur_idle = 5 [2].pool.max_idle = 8 [2].pool.min_idle = 4 [2].type = 2 [2].state = 1 [1] taking master as default using pooled connection from: 1 [disconnect_client] 127.0.0.1:55499 Connection failed: SQLSTATE[08S01] [1156] Got packets out of order [root@test1 ~]#
[1 Dec 2010 18:52]
Sveta Smirnova
Thank you for the report. Verified as described.
[1 Dec 2010 18:57]
Sveta Smirnova
Bug #57655 was marked as duplicate of this one.
[3 Dec 2010 2:59]
david nick
I reinstalled mysql5.1 compile from official src instead of Percona server, everything work fine now. now I use mysql5.1 as a readonly slave and Percona as master server . so may be it is not compatible with Percona.