revision-id: knielsen@knielsen-hq.org-20140321123055-8ch69qymsj1xqmw4
|
date: 2014-03-21 13:30:55 +0100
|
build-date: 2014-03-24 18:54:08 +0200
|
revno: 4076
|
branch-nick: 10.0
|
The timeout error was encountered while running a concurrent test (12 threads on master) with SBR replication using GTID, and slave-parallel-threads=10.
140321 20:08:47 [Note] Slave I/O thread: connected to master 'root@127.0.0.1:10730',replication starts at GTID position ''
|
140321 20:12:58 [ERROR] mysqld: Lock wait timeout exceeded; try restarting transaction
|
140321 20:12:58 [ERROR] Slave SQL: Error 'Lock wait timeout exceeded; try restarting transaction' on query. Default database: 'test'. Query: 'UPDATE `table10_innodb_int_autoinc` AS X SET `col_char_12_key` = 'j' WHERE X . `col_int_key` IN ( 223 , 4 , 113 , 1674772480 , 242679808 ) ORDER BY `col_char_12`,`col_char_12_key`,`col_int`,`col_int_key`,`pk` LIMIT 5', Internal MariaDB error code: 1205
|
140321 20:12:58 [Warning] Slave: Lock wait timeout exceeded; try restarting transaction Error_code: 1205
|
140321 20:12:58 [Warning] Slave: Sort aborted: Lock wait timeout exceeded; try restarting transaction Error_code: 1028
|
140321 20:12:58 [ERROR] Error running query, slave SQL thread aborted. Fix the problem, and restart the slave SQL thread with "SLAVE START". We stopped at log 'mysql-bin.000033' position 20863; GTID position '0-1-669'
|
The test mainly executes DML, but involves DDL and FLUSH LOGS as well.
The test flow includes a lot of statements that are unsafe for SBR or are considered to be such, but as far as I can see from the slave log, there was nothing particularly wrong done to the slave around the time when the problem occured.
Slave is not restarted during the test (neither the server, nor the logical slave).
I encountered the same error several times later, so it's not a unique occasion, but it's sporadic and not easily reproducible. Also, I couldn't reproduce it while feeding the same master binary logs to a clean slave, so it seems to be a true race condition.
The following logs are attached:
- master_binlogs.tar.gz - all master binary logs
- slave_error.log
- slave_general.log
- my.cnf (for the reference, only one meaningful option in there, slave-parallel-threads=10); identical for master and slave
Server command lines (although semisync plugins are there, they were not available at the time of server startup, so the error of not finding them can be seen in the slave error log):
<basedir>/sql/mysqld --defaults-group-suffix=.runtime --defaults-file=<master_vardir>/my.cnf --basedir=<basedir> --datadir=<master_vardir>/data --lc-messages-dir=<basedir>/sql/share --character-sets-dir=<basedir>/sql/share/charsets --tmpdir=<master_vardir>/tmp --core-file --max-allowed-packet=128Mb --port=10730 --socket=<master_vardir>/mysql.sock --pid-file=<master_vardir>/mysql.pid --general-log --general-log-file=<master_vardir>/mysql.log --server_id=1 --log-bin=mysql-bin --report-host=127.0.0.1 --report_port=10730 --sql-mode=no_engine_substitution --binlog_commit_wait_count=10 --binlog_commit_wait_usec=1000000 --plugin-load-add=semisync_master --plugin-load-add=semisync_slave --loose-rpl_semi_sync_master_timeout=600 --log-output=FILE --slave-skip-errors=1054,1317,1049,1305,1539,1505
|
<basedir>/sql/mysqld --defaults-group-suffix=.runtime --defaults-file=<slave_vardir>/my.cnf --basedir=<basedir> --datadir=<slave_vardir>/data --lc-messages-dir=<basedir>/sql/share --character-sets-dir=<basedir>/sql/share/charsets --tmpdir=<slave_vardir>/tmp --core-file --max-allowed-packet=128Mb --port=10732 --socket=<slave_vardir>/mysql.sock --pid-file=<slave_vardir>/mysql.pid --general-log --general-log-file=<slave_vardir>/mysql.log --server_id=2 --report-host=127.0.0.1 --report_port=10732 --sql-mode=no_engine_substitution --binlog_commit_wait_count=10 --binlog_commit_wait_usec=1000000 --plugin-load-add=semisync_master --plugin-load-add=semisync_slave --loose-rpl_semi_sync_master_timeout=600 --log-output=FILE --slave-skip-errors=1054,1317,1049,1305,1539,1505
|
{"report":{"fcp":911.2000000476837,"ttfb":263.90000009536743,"pageVisibility":"visible","entityId":33301,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"573710f3-db79-453d-a453-d179b21c159e","navigationType":0,"readyForUser":994.2000000476837,"redirectCount":0,"resourceLoadedEnd":1059.5,"resourceLoadedStart":269.7000000476837,"resourceTiming":[{"duration":73.70000004768372,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":269.7000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":269.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":343.40000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":73.80000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":270,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":270,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":343.80000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":131.10000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":270.2000000476837,"connectEnd":270.2000000476837,"connectStart":270.2000000476837,"domainLookupEnd":270.2000000476837,"domainLookupStart":270.2000000476837,"fetchStart":270.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":270.2000000476837,"responseEnd":401.30000019073486,"responseStart":401.30000019073486,"secureConnectionStart":270.2000000476837},{"duration":205.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":270.40000009536743,"connectEnd":270.40000009536743,"connectStart":270.40000009536743,"domainLookupEnd":270.40000009536743,"domainLookupStart":270.40000009536743,"fetchStart":270.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":270.40000009536743,"responseEnd":476.30000019073486,"responseStart":476.30000019073486,"secureConnectionStart":270.40000009536743},{"duration":209.29999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":270.60000014305115,"connectEnd":270.60000014305115,"connectStart":270.60000014305115,"domainLookupEnd":270.60000014305115,"domainLookupStart":270.60000014305115,"fetchStart":270.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":270.60000014305115,"responseEnd":479.90000009536743,"responseStart":479.80000019073486,"secureConnectionStart":270.60000014305115},{"duration":209.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":270.80000019073486,"connectEnd":270.80000019073486,"connectStart":270.80000019073486,"domainLookupEnd":270.80000019073486,"domainLookupStart":270.80000019073486,"fetchStart":270.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":270.80000019073486,"responseEnd":480.40000009536743,"responseStart":480.40000009536743,"secureConnectionStart":270.80000019073486},{"duration":209.70000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":271,"connectEnd":271,"connectStart":271,"domainLookupEnd":271,"domainLookupStart":271,"fetchStart":271,"redirectEnd":0,"redirectStart":0,"requestStart":271,"responseEnd":480.7000000476837,"responseStart":480.7000000476837,"secureConnectionStart":271},{"duration":271.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":271.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":271.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":542.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":209.89999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":271.30000019073486,"connectEnd":271.30000019073486,"connectStart":271.30000019073486,"domainLookupEnd":271.30000019073486,"domainLookupStart":271.30000019073486,"fetchStart":271.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":271.30000019073486,"responseEnd":481.2000000476837,"responseStart":481.10000014305115,"secureConnectionStart":271.30000019073486},{"duration":271.30000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":271.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":271.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":542.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":209.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":271.7000000476837,"connectEnd":271.7000000476837,"connectStart":271.7000000476837,"domainLookupEnd":271.7000000476837,"domainLookupStart":271.7000000476837,"fetchStart":271.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":271.7000000476837,"responseEnd":481.60000014305115,"responseStart":481.60000014305115,"secureConnectionStart":271.7000000476837},{"duration":430.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":272.5,"connectEnd":272.5,"connectStart":272.5,"domainLookupEnd":272.5,"domainLookupStart":272.5,"fetchStart":272.5,"redirectEnd":0,"redirectStart":0,"requestStart":272.5,"responseEnd":702.9000000953674,"responseStart":702.9000000953674,"secureConnectionStart":272.5},{"duration":763.5999999046326,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":272.60000014305115,"connectEnd":272.60000014305115,"connectStart":272.60000014305115,"domainLookupEnd":272.60000014305115,"domainLookupStart":272.60000014305115,"fetchStart":272.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":272.60000014305115,"responseEnd":1036.2000000476837,"responseStart":1036.2000000476837,"secureConnectionStart":272.60000014305115},{"duration":149.09999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":554.1000001430511,"connectEnd":554.1000001430511,"connectStart":554.1000001430511,"domainLookupEnd":554.1000001430511,"domainLookupStart":554.1000001430511,"fetchStart":554.1000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":554.1000001430511,"responseEnd":703.2000000476837,"responseStart":703.2000000476837,"secureConnectionStart":554.1000001430511},{"duration":208.90000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":828.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":828.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1037.1000001430511,"responseStart":0,"secureConnectionStart":0},{"duration":208.60000014305115,"initiatorType":"link","name":"https://jira.mariadb.org/s/50bc9be5bfead1a25e72c1a9338c94f6-CDN/lu2cib/820016/12ta74/e108c7645258ccb43280ed3404e3e949/_/download/contextbatch/css/com.atlassian.jira.plugins.jira-development-integration-plugin:0,-_super,-jira.view.issue,-jira.global,-jira.general,-jira.browse.project,-project.issue.navigator,-atl.general/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":828.7000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":828.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1037.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":219.79999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":829.6000001430511,"connectEnd":829.6000001430511,"connectStart":829.6000001430511,"domainLookupEnd":829.6000001430511,"domainLookupStart":829.6000001430511,"fetchStart":829.6000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":829.6000001430511,"responseEnd":1049.4000000953674,"responseStart":1049.4000000953674,"secureConnectionStart":829.6000001430511},{"duration":206.09999990463257,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":905.1000001430511,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":905.1000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1111.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":228,"initiatorType":"script","name":"https://jira.mariadb.org/s/097ae97cb8fbec7d6ea4bbb1f26955b9-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":830.1000001430511,"connectEnd":830.1000001430511,"connectStart":830.1000001430511,"domainLookupEnd":830.1000001430511,"domainLookupStart":830.1000001430511,"fetchStart":830.1000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":830.1000001430511,"responseEnd":1058.1000001430511,"responseStart":1058.1000001430511,"secureConnectionStart":830.1000001430511},{"duration":229.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/e0bf5781d46ea69fb123572974cf39de-CDN/lu2cib/820016/12ta74/e108c7645258ccb43280ed3404e3e949/_/download/contextbatch/js/com.atlassian.jira.plugins.jira-development-integration-plugin:0,-_super,-jira.view.issue,-jira.global,-jira.general,-jira.browse.project,-project.issue.navigator,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":830.4000000953674,"connectEnd":830.4000000953674,"connectStart":830.4000000953674,"domainLookupEnd":830.4000000953674,"domainLookupStart":830.4000000953674,"fetchStart":830.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":830.4000000953674,"responseEnd":1059.5,"responseStart":1059.5,"secureConnectionStart":830.4000000953674}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":100,"responseStart":264,"responseEnd":266,"domLoading":267,"domInteractive":1060,"domContentLoadedEventStart":1060,"domContentLoadedEventEnd":1105,"domComplete":1771,"loadEventStart":1772,"loadEventEnd":1773,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1038},{"name":"bigPipe.sidebar-id.end","time":1038.7000000476837},{"name":"bigPipe.activity-panel-pipe-id.start","time":1038.9000000953674},{"name":"bigPipe.activity-panel-pipe-id.end","time":1041.5},{"name":"activityTabFullyLoaded","time":1118.7000000476837}],"measures":[],"correlationId":"422745cc4a4","effectiveType":"4g","downlink":9.7,"rtt":0,"serverDuration":101,"dbReadsTimeInMs":12,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}