percona 5.7.13 missing event in tpcc test with threadpool
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS |
New
|
Undecided
|
Unassigned |
Bug Description
percona version: 5.7.13 commit e6fa0e9b586c483
tpcc version: commit faa06df608d8bd3
1024 threads tpcc test (600 seconds) with threadpool, one transtion was sleeping for very long time (11770 seconds). All other transtions were blocked and the test can not finish. It seems like percona server missed a event from tpcc client. The probability of this bug occurrence is very low (about 1/15).
show processlist:
Id User Host db Command Time State Info Rows_sent Rows_examined
13074 root localhost tpcc1000 Sleep 11770 NULL 0 0
13115 root localhost tpcc1000 Execute 25 statistics SELECT d_next_o_id, d_tax FROM district WHERE d_id = ? AND d_w_id = ? FOR UPDATE 0 0
13241 root localhost tpcc1000 Execute 30 statistics SELECT d_next_o_id, d_tax FROM district WHERE d_id = ? AND d_w_id = ? FOR UPDATE 0 0
13296 root localhost tpcc1000 Execute 0 updating UPDATE warehouse SET w_ytd = w_ytd + ? WHERE w_id = ? 0 0
13439 root localhost tpcc1000 Execute 6 statistics SELECT d_next_o_id, d_tax FROM district WHERE d_id = ? AND d_w_id = ? FOR UPDATE 0 0
13564 root localhost tpcc1000 Execute 0 statistics SELECT d_next_o_id, d_tax FROM district WHERE d_id = ? AND d_w_id = ? FOR UPDATE 0 0
13614 root localhost tpcc1000 Execute 49 statistics SELECT d_next_o_id, d_tax FROM district WHERE d_id = ? AND d_w_id = ? FOR UPDATE 0 0
13617 root localhost tpcc1000 Execute 47 statistics SELECT d_next_o_id, d_tax FROM district WHERE d_id = ? AND d_w_id = ? FOR UPDATE 0 0
13618 root localhost tpcc1000 Execute 0 statistics SELECT d_next_o_id, d_tax FROM district WHERE d_id = ? AND d_w_id = ? FOR UPDATE 0 0
13636 root localhost tpcc1000 Execute 0 updating UPDATE warehouse SET w_ytd = w_ytd + ? WHERE w_id = ? 0 0
13920 root localhost tpcc1000 Execute 40 statistics SELECT d_next_o_id, d_tax FROM district WHERE d_id = ? AND d_w_id = ? FOR UPDATE 0 0
14012 root localhost tpcc1000 Execute 0 updating UPDATE district SET d_ytd = d_ytd + ? WHERE d_w_id = ? AND d_id = ? 0 0
14086 root localhost NULL Query 0 starting show processlist 0 0
percona server config file:
[mysqld]
log-error=error.log
explicit_
secure-
skip-grant-tables
bind-address = 0.0.0.0
core-file
gdb
##### basic and group replication #####
innodb_
sync_binlog=1
server-id=1
port=13001
socket=
#log-bin=master.bin
binlog-format=row
gtid-mode=on
enforce-
log-slave-updates
master-
relay-log-
transaction-
binlog-
##### for performance purpose #####
innodb_
innodb_
innodb_
innodb_
max_connections = 50000
table_open_cache = 8192
sort_buffer_size = 4M
join_buffer_size = 4M
query_cache_size = 0
query_cache_type = 0
innodb_
innodb_
innodb_
innodb_
innodb_
innodb_
innodb_
innodb_
skip-ssl
innodb_
thread_
thread_pool_size=3
# for tpcc
max_prepared_
innodb_
innodb_
innodb_
innodb_
tpcc test command:
./tpcc_start -S$SOCK -dtpcc1000 -uroot -w1000 -c1024 -r0 -l600 -f logs/tpcc_1024.log -t logs/tpcc_
Percona now uses JIRA for bug reports so this bug report is migrated to: https:/ /jira.percona. com/browse/ PS-3499