Index corruption found during RQG testing
|
Some CHECK TABLE t2 EXTENDED harvested
|
test.t2 check Warning InnoDB: Index 'Marvão_idx3' contains 36 entries, should be 37.
|
And the server error log contains a
|
[rr 76197 241886]2020-06-16 18:31:54 33 [ERROR] InnoDB: Index `Marvão_idx3` of table `test`.`t2` is corrupted
|
[rr 76197 241890]2020-06-16 18:31:54 33 [Note] InnoDB: Load corrupted index `Marvão_idx3` of table `test`.`t2`
|
|
Work flow:
|
1. Start the server and generate some initial data
|
2. Several concurrent sessions runs a DDL/DML mix
|
and sometimes CHECK TABLE EXTENDED
|
Please note critical events like killing the server process followed by Restart
|
with CrashRecovery are not involved..
|
|
I have some "rr" trace for the tree
|
origin/bb-10.5-marko 8cad9bc9805ff058e8493d92d4915ca437d16b08
|
which is based on actual 10.5 but contains some non final changes of Marko.
|
Per Marko the failure cannot be caused by his changes.
|
|
My test machinery has seen the same problem also on
|
10.3.24 origin/10.3 294ac1fbab306e97dad3588a00e3527f2056e7e4 2020-05-19T15:27:22+00:00
|
but the corresponding details are lost.
|
And so its unknown if that was during concurrent load or after crash with recovery.
|
|
RQG
|
git clone https://github.com/mleich1/rqg --branch experimental RQG
|
origin/experimental 611a31e38a3bc157392c0748c95991b6a248bb3b 2020-06-09T15:31:46+02:00
|
|
perl rqg.pl \
|
--grammar=conf/mariadb/table_stress_innodb_nocopy.yy \
|
--gendata=conf/mariadb/table_stress.zz \
|
--gendata_sql=conf/mariadb/table_stress.sql \
|
--mysqld=--innodb_use_native_aio=1 \
|
--mysqld=--innodb_lock_schedule_algorithm=fcfs \
|
--mysqld=--loose-idle_write_transaction_timeout=0 \
|
--mysqld=--loose-idle_transaction_timeout=0 \
|
--mysqld=--loose-idle_readonly_transaction_timeout=0 \
|
--mysqld=--connect_timeout=60 \
|
--mysqld=--interactive_timeout=28800 \
|
--mysqld=--slave_net_timeout=60 \
|
--mysqld=--net_read_timeout=30 \
|
--mysqld=--net_write_timeout=60 \
|
--mysqld=--loose-table_lock_wait_timeout=50 \
|
--mysqld=--wait_timeout=28800 \
|
--mysqld=--lock-wait-timeout=86400 \
|
--mysqld=--innodb-lock-wait-timeout=50 \
|
--no-mask \
|
--queries=10000000 \
|
--seed=random \
|
--reporters=Backtrace \
|
--reporters=ErrorLog \
|
--reporters=Deadlock1 \
|
--validators=None \
|
--mysqld=--log_output=none \
|
--mysqld=--log-bin \
|
--mysqld=--log_bin_trust_function_creators=1 \
|
--mysqld=--loose-max-statement-time=30 \
|
--mysqld=--loose-debug_assert_on_not_freed_memory=0 \
|
--engine=InnoDB \
|
--restart_timeout=120 \
|
--duration=300 \
|
--mysqld=--loose-innodb_fatal_semaphore_wait_threshold=300 \
|
--mysqld=--innodb_stats_persistent=off \
|
--threads=33 \
|
--mysqld=--innodb_page_size=4K \
|
--mysqld=--innodb-buffer-pool-size=256M \
|
--duration=300 \
|
--no_mask \
|
... certain local settings ...
|
|
If looking into the attached RQG protocol 002082.log and the RQG call mentioned there please be aware that the "--reporters=CrashRecovery1" just tells
|
that running a work flow invoking kill+restart was planned.
|
But the data corruption was hit before the RQG reporter "CrashRecovery1"
|
would kill the server process.
|
{"report":{"fcp":1049.8000001907349,"ttfb":320.3999996185303,"pageVisibility":"visible","entityId":88434,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"c326efd3-ddf1-49c9-aab5-9099079f1014","navigationType":0,"readyForUser":1152.1999998092651,"redirectCount":0,"resourceLoadedEnd":1404.8000001907349,"resourceLoadedStart":325.69999980926514,"resourceTiming":[{"duration":250.4000005722046,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":325.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":325.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":576.1000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":250.29999923706055,"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":326.1000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":326.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":576.3999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":259.3999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":326.30000019073486,"connectEnd":326.30000019073486,"connectStart":326.30000019073486,"domainLookupEnd":326.30000019073486,"domainLookupStart":326.30000019073486,"fetchStart":326.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":326.30000019073486,"responseEnd":585.6999998092651,"responseStart":585.6999998092651,"secureConnectionStart":326.30000019073486},{"duration":293.0999994277954,"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":326.80000019073486,"connectEnd":326.80000019073486,"connectStart":326.80000019073486,"domainLookupEnd":326.80000019073486,"domainLookupStart":326.80000019073486,"fetchStart":326.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":326.80000019073486,"responseEnd":619.8999996185303,"responseStart":619.8999996185303,"secureConnectionStart":326.80000019073486},{"duration":296.69999980926514,"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":327,"connectEnd":327,"connectStart":327,"domainLookupEnd":327,"domainLookupStart":327,"fetchStart":327,"redirectEnd":0,"redirectStart":0,"requestStart":327,"responseEnd":623.6999998092651,"responseStart":623.6999998092651,"secureConnectionStart":327},{"duration":297.1000003814697,"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":327.19999980926514,"connectEnd":327.19999980926514,"connectStart":327.19999980926514,"domainLookupEnd":327.19999980926514,"domainLookupStart":327.19999980926514,"fetchStart":327.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":327.19999980926514,"responseEnd":624.3000001907349,"responseStart":624.3000001907349,"secureConnectionStart":327.19999980926514},{"duration":297.19999980926514,"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":327.5,"connectEnd":327.5,"connectStart":327.5,"domainLookupEnd":327.5,"domainLookupStart":327.5,"fetchStart":327.5,"redirectEnd":0,"redirectStart":0,"requestStart":327.5,"responseEnd":624.6999998092651,"responseStart":624.6999998092651,"secureConnectionStart":327.5},{"duration":405.5999994277954,"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":327.6000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":327.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":733.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":297.3999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":327.80000019073486,"connectEnd":327.80000019073486,"connectStart":327.80000019073486,"domainLookupEnd":327.80000019073486,"domainLookupStart":327.80000019073486,"fetchStart":327.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":327.80000019073486,"responseEnd":625.1999998092651,"responseStart":625.1999998092651,"secureConnectionStart":327.80000019073486},{"duration":405.3999996185303,"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":328,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":328,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":733.3999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":297.69999980926514,"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":328.1000003814697,"connectEnd":328.1000003814697,"connectStart":328.1000003814697,"domainLookupEnd":328.1000003814697,"domainLookupStart":328.1000003814697,"fetchStart":328.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":328.1000003814697,"responseEnd":625.8000001907349,"responseStart":625.8000001907349,"secureConnectionStart":328.1000003814697},{"duration":484.9000005722046,"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":333.69999980926514,"connectEnd":333.69999980926514,"connectStart":333.69999980926514,"domainLookupEnd":333.69999980926514,"domainLookupStart":333.69999980926514,"fetchStart":333.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":333.69999980926514,"responseEnd":818.6000003814697,"responseStart":818.6000003814697,"secureConnectionStart":333.69999980926514},{"duration":1065.1999998092651,"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":334.5,"connectEnd":334.5,"connectStart":334.5,"domainLookupEnd":334.5,"domainLookupStart":334.5,"fetchStart":334.5,"redirectEnd":0,"redirectStart":0,"requestStart":334.5,"responseEnd":1399.6999998092651,"responseStart":1399.6999998092651,"secureConnectionStart":334.5},{"duration":131.4000005722046,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":745.3999996185303,"connectEnd":745.3999996185303,"connectStart":745.3999996185303,"domainLookupEnd":745.3999996185303,"domainLookupStart":745.3999996185303,"fetchStart":745.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":745.3999996185303,"responseEnd":876.8000001907349,"responseStart":876.8000001907349,"secureConnectionStart":745.3999996185303},{"duration":400.19999980926514,"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":1004.6000003814697,"connectEnd":1004.6000003814697,"connectStart":1004.6000003814697,"domainLookupEnd":1004.6000003814697,"domainLookupStart":1004.6000003814697,"fetchStart":1004.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":1004.6000003814697,"responseEnd":1404.8000001907349,"responseStart":1404.8000001907349,"secureConnectionStart":1004.6000003814697},{"duration":380.80000019073486,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1043,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1043,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1423.8000001907349,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":126,"responseStart":320,"responseEnd":329,"domLoading":323,"domInteractive":1428,"domContentLoadedEventStart":1428,"domContentLoadedEventEnd":1474,"domComplete":2040,"loadEventStart":2040,"loadEventEnd":2041,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1401.8000001907349},{"name":"bigPipe.sidebar-id.end","time":1402.8000001907349},{"name":"bigPipe.activity-panel-pipe-id.start","time":1403},{"name":"bigPipe.activity-panel-pipe-id.end","time":1405.5},{"name":"activityTabFullyLoaded","time":1483.3000001907349}],"measures":[],"correlationId":"b27239ae2ab104","effectiveType":"4g","downlink":9.8,"rtt":0,"serverDuration":119,"dbReadsTimeInMs":27,"dbConnsTimeInMs":37,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}