To reproduce:
- start server with all defaults;
- run mysql -e "set global innodb_spin_wait_delay = 164723660; shutdown"
- wait
It takes a while (up to a couple of minutes on my machine), but eventually the server goes down with the assertion failure:
2016-12-30 17:57:50 140352190149376 [Note] /data/bld/10.2/bin/mysqld (root[root] @ localhost [127.0.0.1]): Normal shutdown
|
|
2016-12-30 17:57:50 140352190149376 [Note] Event Scheduler: Purging the queue. 0 events
|
mysqld: /data/src/10.2/sql/sql_list.h:665: void ilink::assert_linked(): Assertion `prev != 0 && next != 0' failed.
|
161230 17:58:15 [ERROR] mysqld got signal 6 ;
|
..
|
#6 0x00007fbb74a9c266 in __assert_fail_base (fmt=0x7fbb74bd5238 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x7fbb77fd3ece "prev != 0 && next != 0", file=file@entry=0x7fbb77fd3eb0 "/data/src/10.2/sql/sql_list.h", line=line@entry=665, function=function@entry=0x7fbb77fddd30 <ilink::assert_linked()::__PRETTY_FUNCTION__> "void ilink::assert_linked()") at assert.c:92
|
#7 0x00007fbb74a9c312 in __GI___assert_fail (assertion=0x7fbb77fd3ece "prev != 0 && next != 0", file=0x7fbb77fd3eb0 "/data/src/10.2/sql/sql_list.h", line=665, function=0x7fbb77fddd30 <ilink::assert_linked()::__PRETTY_FUNCTION__> "void ilink::assert_linked()") at assert.c:101
|
#8 0x00007fbb774ab553 in ilink::assert_linked (this=0x7fbb33416070) at /data/src/10.2/sql/sql_list.h:665
|
#9 0x00007fbb774ac5ee in unlink_not_visible_thd (thd=0x7fbb33416070) at /data/src/10.2/sql/sql_class.h:4409
|
#10 0x00007fbb7749e846 in delete_running_thd (thd=0x7fbb33416070) at /data/src/10.2/sql/mysqld.cc:2909
|
#11 0x00007fbb7753a4b3 in destroy_thd (thd=0x7fbb33416070) at /data/src/10.2/sql/sql_class.cc:4481
|
#12 0x00007fbb77a1e35b in innobase_destroy_background_thd (thd=0x7fbb33416070) at /data/src/10.2/storage/innobase/handler/ha_innodb.cc:1815
|
#13 0x00007fbb77beb9bb in srv_worker_thread (arg=0x0) at /data/src/10.2/storage/innobase/srv/srv0srv.cc:2800
|
#14 0x00007fbb76ba90a4 in start_thread (arg=0x7fbb353f8700) at pthread_create.c:309
|
#15 0x00007fbb74b5687d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
|
On 10.1 or MySQL 5.7 the shutdown is also slow, which I assume is totally expected, but it ends all right, without any trouble:
5.7
|
2016-12-30T15:50:12.438654Z 0 [Note] InnoDB: Starting shutdown...
|
2016-12-30T15:50:12.538897Z 0 [Note] InnoDB: Dumping buffer pool(s) to /data/bld/mysql-5.7/data/ib_buffer_pool
|
2016-12-30T15:50:12.545087Z 0 [Note] InnoDB: Buffer pool(s) dump completed at 161230 17:50:12
|
2016-12-30T15:51:12.576742Z 0 [Note] InnoDB: Waiting for worker threads to be suspended
|
2016-12-30T15:51:32.666637Z 0 [Note] InnoDB: Shutdown completed; log sequence number 2396622
|
2016-12-30T15:51:32.671000Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
|
2016-12-30T15:51:32.672984Z 0 [Note] /data/bld/mysql-5.7/bin/mysqld: Shutdown complete
|
10.1
|
2016-12-30 17:51:56 139709912304384 [Note] /data/bld/10.1/bin/mysqld: Normal shutdown
|
|
2016-12-30 17:51:56 139709912304384 [Note] Event Scheduler: Purging the queue. 0 events
|
2016-12-30 17:51:56 139709141473024 [Note] InnoDB: FTS optimize thread exiting.
|
2016-12-30 17:51:56 139709912304384 [Note] InnoDB: Starting shutdown...
|
2016-12-30 17:51:56 139709912304384 [Note] InnoDB: Waiting for page_cleaner to finish flushing of buffer pool
|
2016-12-30 17:53:15 139709912304384 [Note] InnoDB: Shutdown completed; log sequence number 1662538
|
2016-12-30 17:53:15 139709912304384 [Note] /data/bld/10.1/bin/mysqld: Shutdown complete
|
- duplicates
-
MDEV-11695
Define a reasonable upper limit for innodb_spin_wait_delay
-
-
Closed
{"report":{"fcp":633,"ttfb":164.59999990463257,"pageVisibility":"visible","entityId":59632,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"7bd75978-b359-484c-8b48-e51e9f19aa2b","navigationType":0,"readyForUser":751.5999999046326,"redirectCount":0,"resourceLoadedEnd":606.5,"resourceLoadedStart":169.59999990463257,"resourceTiming":[{"duration":6.299999952316284,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":169.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":169.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":175.89999985694885,"responseStart":0,"secureConnectionStart":0},{"duration":6.299999952316284,"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":169.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":169.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":176.09999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":59,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":170,"connectEnd":170,"connectStart":170,"domainLookupEnd":170,"domainLookupStart":170,"fetchStart":170,"redirectEnd":0,"redirectStart":0,"requestStart":170,"responseEnd":229,"responseStart":229,"secureConnectionStart":170},{"duration":134.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":170.09999990463257,"connectEnd":170.09999990463257,"connectStart":170.09999990463257,"domainLookupEnd":170.09999990463257,"domainLookupStart":170.09999990463257,"fetchStart":170.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":170.09999990463257,"responseEnd":304.2000000476837,"responseStart":304.2000000476837,"secureConnectionStart":170.09999990463257},{"duration":137.59999990463257,"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":170.20000004768372,"connectEnd":170.20000004768372,"connectStart":170.20000004768372,"domainLookupEnd":170.20000004768372,"domainLookupStart":170.20000004768372,"fetchStart":170.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":170.20000004768372,"responseEnd":307.7999999523163,"responseStart":307.7999999523163,"secureConnectionStart":170.20000004768372},{"duration":137.90000009536743,"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":170.29999995231628,"connectEnd":170.29999995231628,"connectStart":170.29999995231628,"domainLookupEnd":170.29999995231628,"domainLookupStart":170.29999995231628,"fetchStart":170.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":170.29999995231628,"responseEnd":308.2000000476837,"responseStart":308.2000000476837,"secureConnectionStart":170.29999995231628},{"duration":138.40000009536743,"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":170.39999985694885,"connectEnd":170.39999985694885,"connectStart":170.39999985694885,"domainLookupEnd":170.39999985694885,"domainLookupStart":170.39999985694885,"fetchStart":170.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":170.39999985694885,"responseEnd":308.7999999523163,"responseStart":308.7999999523163,"secureConnectionStart":170.39999985694885},{"duration":138.70000004768372,"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":170.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":170.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":309.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":138.60000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":170.59999990463257,"connectEnd":170.59999990463257,"connectStart":170.59999990463257,"domainLookupEnd":170.59999990463257,"domainLookupStart":170.59999990463257,"fetchStart":170.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":170.59999990463257,"responseEnd":309.2000000476837,"responseStart":309.2000000476837,"secureConnectionStart":170.59999990463257},{"duration":138.89999985694885,"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":170.70000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":170.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":309.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":138.80000019073486,"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":170.89999985694885,"connectEnd":170.89999985694885,"connectStart":170.89999985694885,"domainLookupEnd":170.89999985694885,"domainLookupStart":170.89999985694885,"fetchStart":170.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":170.89999985694885,"responseEnd":309.7000000476837,"responseStart":309.7000000476837,"secureConnectionStart":170.89999985694885},{"duration":419.7999999523163,"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":176.20000004768372,"connectEnd":176.20000004768372,"connectStart":176.20000004768372,"domainLookupEnd":176.20000004768372,"domainLookupStart":176.20000004768372,"fetchStart":176.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":176.20000004768372,"responseEnd":596,"responseStart":595.8999998569489,"secureConnectionStart":176.20000004768372},{"duration":430.2000000476837,"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":176.29999995231628,"connectEnd":176.29999995231628,"connectStart":176.29999995231628,"domainLookupEnd":176.29999995231628,"domainLookupStart":176.29999995231628,"fetchStart":176.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":176.29999995231628,"responseEnd":606.5,"responseStart":606.5,"secureConnectionStart":176.29999995231628},{"duration":161.20000004768372,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":441.39999985694885,"connectEnd":441.39999985694885,"connectStart":441.39999985694885,"domainLookupEnd":441.39999985694885,"domainLookupStart":441.39999985694885,"fetchStart":441.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":441.39999985694885,"responseEnd":602.5999999046326,"responseStart":602.5999999046326,"secureConnectionStart":441.39999985694885},{"duration":1.5,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":612.3999998569489,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":612.3999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":613.8999998569489,"responseStart":0,"secureConnectionStart":0},{"duration":137.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/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":685.7000000476837,"connectEnd":685.7000000476837,"connectStart":685.7000000476837,"domainLookupEnd":685.7000000476837,"domainLookupStart":685.7000000476837,"fetchStart":685.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":685.7000000476837,"responseEnd":823.2999999523163,"responseStart":823.2999999523163,"secureConnectionStart":685.7000000476837}],"fetchStart":1,"domainLookupStart":1,"domainLookupEnd":1,"connectStart":1,"connectEnd":1,"requestStart":7,"responseStart":165,"responseEnd":175,"domLoading":168,"domInteractive":807,"domContentLoadedEventStart":807,"domContentLoadedEventEnd":847,"domComplete":1697,"loadEventStart":1697,"loadEventEnd":1698,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":787.2000000476837},{"name":"bigPipe.sidebar-id.end","time":788.2000000476837},{"name":"bigPipe.activity-panel-pipe-id.start","time":788.3999998569489},{"name":"bigPipe.activity-panel-pipe-id.end","time":790.8999998569489},{"name":"activityTabFullyLoaded","time":853.7999999523163}],"measures":[],"correlationId":"317ee0e6fee5a7","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":73,"dbReadsTimeInMs":11,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}