Not the answer you need?
Register and ask your own question!

bugs for sysbench oltp, delete, insert, parallel, how can i do multi-transactions?

LiuLiu EntrantLegacy User Role Beginner
whatever i change the mysqld.conf, the sysben will report
sh oltp.sh
+ . ./conf.sh
++ host=10.17.140.192
++ port=3306
++ port=3307
++ port=3308
++ port=3309
++ user=root
++ [email protected]
++ tcount=100
++ tsize=1000000
++ threads=256
++ dbname=bench
++ interval=10
++ maxtime=120
++ requests=2000000000
++ driver=mysql
+ sysbench --test=./lua-tests/db/oltp.lua --db-driver=mysql --mysql-host=10.17.140.192 --count=100 --oltp-table-size=1000000 --num-threads=256 --max-requests=2000000000 --oltp-re
WARNING: the --test option is deprecated. You can pass a script name or path on the comma
WARNING: --num-threads is deprecated, use --threads instead
WARNING: --max-requests is deprecated, use --events instead
WARNING: --max-time is deprecated, use --time instead
...
(last message repeated 1 times)
FATAL: `thread_run' function failed: ./lua-tests/db/oltp.lua:85: db_query() failed
(last message repeated 4 times)
FATAL: mysql_drv_query() returned error 2013 (Lost connection to MySQL server during query) for query 'COMMIT'
FATAL: `thread_run' function failed: ./lua-tests/db/oltp.lua:85: db_query() failed
(last message repeated 3 times)
FATAL: mysql_drv_query() returned error 2013 (Lost connection to MySQL server during query) for query 'COMMIT'
FATAL: `thread_run' function failed: ./lua-tests/db/oltp.lua:85: db_query() failed
Error in my_thread_global_end(): 256 threads didn't exit

and one of the pxc node will break, the logs like this:

2018-12-18T15:50:27.671157+08:00 0 [Warning] WSREP: gcomm/src/asio_udp.cpp:send():158: Error: send_to: Resource temporarily unavailable
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<asio::system_error> >'
what(): remote_endpoint: Transport endpoint is not connected
07:50:27 UTC - mysqld got signal 6 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
Attempting to collect some information that could help diagnose the problem.
As this is a crash and something is definitely wrong, the information
collection process might fail.
Please help us make Percona XtraDB Cluster better by reporting any
bugs at https://jira.percona.com/projects/PXC/issues

key_buffer_size=268435456
read_buffer_size=524288
max_used_connections=256
max_threads=1001
thread_count=289
connection_count=256
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 2836854 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x0
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 0 thread_stack 0x80000
/usr/sbin/mysqld(my_print_stacktrace+0x3b)[0xf36d5b]
/usr/sbin/mysqld(handle_fatal_signal+0x471)[0x7ad461]
/lib64/libpthread.so.0(+0xf6d0)[0x7f53f4da96d0]
/lib64/libc.so.6(gsignal+0x37)[0x7f53f2eaa277]
/lib64/libc.so.6(abort+0x148)[0x7f53f2eab968]
/lib64/libstdc++.so.6(_ZN9__gnu_cxx27__verbose_terminate_handlerEv+0x165)[0x7f53f37b97d5]
/lib64/libstdc++.so.6(+0x5e746)[0x7f53f37b7746]
/lib64/libstdc++.so.6(+0x5e773)[0x7f53f37b7773]
/lib64/libstdc++.so.6(+0x5e993)[0x7f53f37b7993]
/usr/lib64/galera3/libgalera_smm.so(_ZN5boost15throw_exceptionIN4asio12system_errorEEEvRKT_+0x191)[0x7f53e88c4491]
/usr/lib64/galera3/libgalera_smm.so(_ZN4asio6detail14do_throw_errorERKNS_10error_codeEPKc+0x7c)[0x7f53e88c45ac]
/usr/lib64/galera3/libgalera_smm.so(_ZNK5gcomm13AsioUdpSocket11remote_addrEv+0x3a1)[0x7f53e8995801]
/usr/lib64/galera3/libgalera_smm.so(_Z4sendPN5gcomm6SocketERNS_8DatagramE+0x10e)[0x7f53e893396e]
/usr/lib64/galera3/libgalera_smm.so(_ZN5gcomm6GMCast11handle_downERNS_8DatagramERKNS_13ProtoDownMetaE+0x31b)[0x7f53e8933dcb]
/usr/lib64/galera3/libgalera_smm.so(_ZN5gcomm8Protolay9send_downERNS_8DatagramERKNS_13ProtoDownMetaE+0x64)[0x7f53e8928a64]
/usr/lib64/galera3/libgalera_smm.so(_ZN5gcomm3evs5Proto6resendERKNS_4UUIDENS0_5RangeE+0x543)[0x7f53e89070f3]
/usr/lib64/galera3/libgalera_smm.so(_ZN5gcomm3evs5Proto10handle_gapERKNS0_10GapMessageESt17_Rb_tree_iteratorISt4pairIKNS_4UUIDENS0_4NodeEEE+0xe80)[0x7f53e891cff0]
/usr/lib64/galera3/libgalera_smm.so(_ZN5gcomm3evs5Proto10handle_msgERKNS0_7MessageERKNS_8DatagramEb+0x659)[0x7f53e8925819]
/usr/lib64/galera3/libgalera_smm.so(_ZN5gcomm3evs5Proto9handle_upEPKvRKNS_8DatagramERKNS_11ProtoUpMetaE+0x453)[0x7f53e89263d3]
/usr/lib64/galera3/libgalera_smm.so(_ZN5gcomm6GMCast9handle_upEPKvRKNS_8DatagramERKNS_11ProtoUpMetaE+0xa4d)[0x7f53e894057d]
/usr/lib64/galera3/libgalera_smm.so(_ZN5gcomm10Protostack8dispatchEPKvRKNS_8DatagramERKNS_11ProtoUpMetaE+0x67)[0x7f53e896a3b7]
/usr/lib64/galera3/libgalera_smm.so(_ZN5gcomm12AsioProtonet8dispatchERKPKvRKNS_8DatagramERKNS_11ProtoUpMetaE+0x4f)[0x7f53e899b15f]
/usr/lib64/galera3/libgalera_smm.so(_ZN5gcomm13AsioUdpSocket12read_handlerERKN4asio10error_codeEm+0x3a3)[0x7f53e89964a3]
/usr/lib64/galera3/libgalera_smm.so(_ZN4asio6detail27reactive_socket_recvfrom_opINSt3tr15arrayINS_14mutable_bufferELm1EEENS_2ip14basic_endpointINS6_3udpEEEN5boost3_bi6bind_tIvNSA_4_mfi3mf2IvN5gcomm13AsioUdpSocketERKNS_10error_codeEmEENSB_5list3INSB_5valueINSA_10shared_ptrISG_EEEEPFNSA_3argILi1EEEvEPFNSQ_ILi2EEEvEEEEEE11do_completeEPNS0_15task_io_serviceEPNS0_25task_io_service_operationESJ_m+0x106)[0x7f53e89989e6]
/usr/lib64/galera3/libgalera_smm.so(_ZN4asio6detail15task_io_service3runERNS_10error_codeE+0x453)[0x7f53e8983bb3]
/usr/lib64/galera3/libgalera_smm.so(_ZN5gcomm12AsioProtonet10event_loopERKN2gu8datetime6PeriodE+0x247)[0x7f53e899c647]
/usr/lib64/galera3/libgalera_smm.so(_ZN9GCommConn3runEv+0xa4)[0x7f53e89b4ed4]
/usr/lib64/galera3/libgalera_smm.so(_ZN9GCommConn6run_fnEPv+0x32)[0x7f53e89bb0a2]
/lib64/libpthread.so.0(+0x7e25)[0x7f53f4da1e25]
/lib64/libc.so.6(clone+0x6d)[0x7f53f2f72bad]
You may download the Percona XtraDB Cluster operations manual by visiting
http://www.percona.com/software/percona-xtradb-cluster/. You may find information
in the manual which will help you identify the cause of the crash

Comments

  • przemekprzemek Percona Support Engineer Percona Staff Role
    Hi Liu,

    It this crash reproducible each time you run the test?
    Please provide the following:
    [LIST]
    [*]rpm -qa|egrep -i "mysql|percona|maria|boost|sysbench"
    [*]
    
    [*]of if you are on debian/ubuntu:
    dpkg -l|egrep -i "mysql|percona|maria|boost|sysbench"
    
    [*]my.cnf from your nodes
    [*]copy of conf.sh script
    [/LIST]
Sign In or Register to comment.

MySQL, InnoDB, MariaDB and MongoDB are trademarks of their respective owners.
Copyright ©2005 - 2020 Percona LLC. All rights reserved.