2021-04-23 19:35:00 0 [Note] InnoDB: 1 transaction(s) which must be rolled back or cleaned up in total 1 row operations to undo
2021-04-23 19:35:00 0 [Note] InnoDB: Trx id counter is 44
2021-04-23 19:35:00 0 [Note] InnoDB: Starting final batch to recover 11 pages from redo log.
The server would just hang there. The relevant stack trace is as follows:
10.4 ee455e6f2e6c9cda921c0801210786123d9f8b95
#6 0x000055e9179033e9 in lock_wait_suspend_thread (thr=<optimized out>, thr@entry=0x55e9196c0e28) at /mariadb/10.4/storage/innobase/lock/lock0wait.cc:346
#7 0x000055e91797a028 in que_run_threads (thr=<optimized out>) at /mariadb/10.4/storage/innobase/que/que0que.cc:1151
#8 0x000055e91797a7e1 in que_eval_sql (info=info@entry=0x55e9196cda80, sql=<optimized out>, sql@entry=0x55e91808a3ae "PROCEDURE DELETE_FROM_TABLE_STATS () IS\nBEGIN\nDELETE FROM \"mysql/innodb_table_stats\" WHERE\ndatabase_name = :database_name AND\ntable_name = :table_name;\nEND;\n", reserve_dict_mutex=false, trx=trx@entry=0x7f07f0db3330) at /mariadb/10.4/storage/innobase/que/que0que.cc:1217
#9 0x000055e917bb2f27 in dict_stats_exec_sql (pinfo=pinfo@entry=0x55e9196cda80, sql=0x55e91808a3ae "PROCEDURE DELETE_FROM_TABLE_STATS () IS\nBEGIN\nDELETE FROM \"mysql/innodb_table_stats\" WHERE\ndatabase_name = :database_name AND\ntable_name = :table_name;\nEND;\n", trx=0x7f07f0db3330, trx@entry=0x0) at /mariadb/10.4/storage/innobase/dict/dict0stats.cc:305
#10 0x000055e917bbb21c in dict_stats_delete_from_table_stats (database_name=<optimized out>, table_name=<optimized out>) at /mariadb/10.4/storage/innobase/dict/dict0stats.cc:3506
#12 0x000055e9179dd6a0 in row_drop_table_for_mysql (name=<optimized out>, name@entry=0x55e91968aad0 "test/#sql-30e5b8_b", trx=<optimized out>, trx@entry=0x7f07f0db2228, sqlcom=sqlcom@entry=SQLCOM_DROP_TABLE, create_failed=false, nonatomic=<optimized out>) at /mariadb/10.4/storage/innobase/row/row0mysql.cc:3470
#13 0x000055e9179dc3a6 in row_mysql_drop_garbage_tables () at /mariadb/10.4/storage/innobase/row/row0mysql.cc:2793
#14 0x000055e9179174e2 in recv_recovery_rollback_active () at /mariadb/10.4/storage/innobase/log/log0recv.cc:3946
#15 0x000055e917a56a8b in srv_start (create_new_db=<optimized out>) at /mariadb/10.4/storage/innobase/srv/srv0start.cc:2182
#16 0x000055e9178649b7 in innodb_init (p=<optimized out>) at /mariadb/10.4/storage/innobase/handler/ha_innodb.cc:4313
#17 0x000055e917663452 in ha_initialize_handlerton (plugin=0x55e919391b90) at /mariadb/10.4/sql/handler.cc:574
A possible fix could be to make trx_rollback_recovered(false) roll back also any transactions that hold locks on mysql.innodb_table_stats or mysql.innodb_index_stats. In that way, no locking conflict would exist and the server should be able to start up.
Marko Mäkelä
added a comment - Looks OK. Only a minor suggestion:
bool trx_has_stats_table_lock( const trx_t *trx);
should better be:
bool trx_t::has_stats_table_lock() const
People
Thirunarayanan Balathandayuthapani
Marko Mäkelä
Votes:
0Vote for this issue
Watchers:
3Start watching this issue
Dates
Created:
Updated:
Resolved:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":929.7999999523163,"ttfb":132.29999995231628,"pageVisibility":"visible","entityId":99125,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"9e7fc860-90e2-42aa-b006-43ce8a424ea9","navigationType":0,"readyForUser":1011.1000001430511,"redirectCount":0,"resourceLoadedEnd":747.5,"resourceLoadedStart":137.79999995231628,"resourceTiming":[{"duration":318.60000014305115,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":137.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":137.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":456.40000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":318.40000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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":138,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":138,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":456.40000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":327.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":138.20000004768372,"connectEnd":138.20000004768372,"connectStart":138.20000004768372,"domainLookupEnd":138.20000004768372,"domainLookupStart":138.20000004768372,"fetchStart":138.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":138.20000004768372,"responseEnd":465.7000000476837,"responseStart":465.7000000476837,"secureConnectionStart":138.20000004768372},{"duration":487.7000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":138.29999995231628,"connectEnd":138.29999995231628,"connectStart":138.29999995231628,"domainLookupEnd":138.29999995231628,"domainLookupStart":138.29999995231628,"fetchStart":138.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":138.29999995231628,"responseEnd":626,"responseStart":626,"secureConnectionStart":138.29999995231628},{"duration":484.10000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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":138.29999995231628,"connectEnd":138.29999995231628,"connectStart":138.29999995231628,"domainLookupEnd":138.29999995231628,"domainLookupStart":138.29999995231628,"fetchStart":138.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":138.29999995231628,"responseEnd":622.4000000953674,"responseStart":622.4000000953674,"secureConnectionStart":138.29999995231628},{"duration":488,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":138.5,"connectEnd":138.5,"connectStart":138.5,"domainLookupEnd":138.5,"domainLookupStart":138.5,"fetchStart":138.5,"redirectEnd":0,"redirectStart":0,"requestStart":138.5,"responseEnd":626.5,"responseStart":626.5,"secureConnectionStart":138.5},{"duration":488.2999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":138.5,"connectEnd":138.5,"connectStart":138.5,"domainLookupEnd":138.5,"domainLookupStart":138.5,"fetchStart":138.5,"redirectEnd":0,"redirectStart":0,"requestStart":138.5,"responseEnd":626.7999999523163,"responseStart":626.7000000476837,"secureConnectionStart":138.5},{"duration":488.59999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":138.60000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":138.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":627.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":488.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":138.79999995231628,"connectEnd":138.79999995231628,"connectStart":138.79999995231628,"domainLookupEnd":138.79999995231628,"domainLookupStart":138.79999995231628,"fetchStart":138.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":138.79999995231628,"responseEnd":627.2000000476837,"responseStart":627.2000000476837,"secureConnectionStart":138.79999995231628},{"duration":488.7000000476837,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/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":138.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":138.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":627.6000001430511,"responseStart":0,"secureConnectionStart":0},{"duration":488.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/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":139.10000014305115,"connectEnd":139.10000014305115,"connectStart":139.10000014305115,"domainLookupEnd":139.10000014305115,"domainLookupStart":139.10000014305115,"fetchStart":139.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":139.10000014305115,"responseEnd":627.7000000476837,"responseStart":627.7000000476837,"secureConnectionStart":139.10000014305115},{"duration":607.2999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":139.70000004768372,"connectEnd":139.70000004768372,"connectStart":139.70000004768372,"domainLookupEnd":139.70000004768372,"domainLookupStart":139.70000004768372,"fetchStart":139.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":139.70000004768372,"responseEnd":747,"responseStart":747,"secureConnectionStart":139.70000004768372},{"duration":607.7999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":139.70000004768372,"connectEnd":139.70000004768372,"connectStart":139.70000004768372,"domainLookupEnd":139.70000004768372,"domainLookupStart":139.70000004768372,"fetchStart":139.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":139.70000004768372,"responseEnd":747.5,"responseStart":747.5,"secureConnectionStart":139.70000004768372},{"duration":55,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":612.6000001430511,"connectEnd":612.6000001430511,"connectStart":612.6000001430511,"domainLookupEnd":612.6000001430511,"domainLookupStart":612.6000001430511,"fetchStart":612.6000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":612.6000001430511,"responseEnd":667.6000001430511,"responseStart":667.6000001430511,"secureConnectionStart":612.6000001430511},{"duration":76.09999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2bu7/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":670.9000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":670.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":747,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":6,"responseStart":132,"responseEnd":136,"domLoading":135,"domInteractive":1067,"domContentLoadedEventStart":1067,"domContentLoadedEventEnd":1114,"domComplete":1528,"loadEventStart":1528,"loadEventEnd":1528,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1048.2999999523163},{"name":"bigPipe.sidebar-id.end","time":1049.1000001430511},{"name":"bigPipe.activity-panel-pipe-id.start","time":1049.2999999523163},{"name":"bigPipe.activity-panel-pipe-id.end","time":1050.5},{"name":"activityTabFullyLoaded","time":1132.9000000953674}],"measures":[],"correlationId":"2ae2f52ef14fe5","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":69,"dbReadsTimeInMs":11,"dbConnsTimeInMs":17,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Patch is in bb-10.2-thiru