use_stat_tables='preferably'
|
optimizer_use_condition_selectivity=4
|
histogram_size=255
|
Thread pointer: 0x0x7f187cf92008
|
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 = 0x7f1cb5654d10 thread_stack 0x48000
|
/usr/sbin/mysqld(my_print_stacktrace+0x2b)[0xb7054b]
|
/usr/sbin/mysqld(handle_fatal_signal+0x398)[0x727588]
|
/lib64/libpthread.so.0(+0xf710)[0x7f1cb531a710]
|
/usr/sbin/mysqld(_ZN9Field_bit5storeEPKcjPK15charset_info_st+0x10f)[0x713caf]
|
/usr/sbin/mysqld(_Z28get_column_range_cardinalityP5FieldP12st_key_rangeS2_j+0x135)[0x63f605]
|
/usr/sbin/mysqld(_Z36calculate_cond_selectivity_for_tableP3THDP5TABLEP4Item+0x836)[0x80bd76]
|
/usr/sbin/mysqld[0x528cce]
|
/usr/sbin/mysqld(_ZN4JOIN14optimize_innerEv+0x6de)[0x61c8de]
|
/usr/sbin/mysqld(_Z12mysql_selectP3THDPPP4ItemP10TABLE_LISTjR4ListIS1_ES2_jP8st_orderSB_S2_SB_yP13select_resultP18st_select_lex_unitP13st_select_lex+0xd8)[0x61efb8]
|
/usr/sbin/mysqld(_Z13handle_selectP3THDP3LEXP13select_resultm+0x28d)[0x62284d]
|
/usr/sbin/mysqld[0x5ca456]
|
/usr/sbin/mysqld(_Z21mysql_execute_commandP3THD+0x4c4f)[0x5d51af]
|
/usr/sbin/mysqld[0x5d6cc2]
|
/usr/sbin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcj+0x1b20)[0x5d8e80]
|
/usr/sbin/mysqld(_Z24do_handle_one_connectionP3THD+0x453)[0x696993]
|
/usr/sbin/mysqld(handle_one_connection+0x42)[0x696a62]
|
/lib64/libpthread.so.0(+0x79d1)[0x7f1cb53129d1]
|
/lib64/libc.so.6(clone+0x6d)[0x7f1cb3a2fb5d]
|
Trying to get some variables.
|
Some pointers may be invalid and cause the dump to abort.
|
Query (0x7f1859c20020): SELECT id, reportName, scheduleName, reportId, reportScheduleId, reportType, status, reportFormat, generationStartTime, executionTime, fileUrl, fileSize, retainUntil, users, userGroups, recurrenceType, recurrenceIntervalType, recurrenceIntervalValue, recurrenceParam1, recurrenceParam2, recurrenceParam3, reportSource, userId, isGloballyViewable, retainLast FROM report_schedule_logs WHERE ((`retainUntil` < 20140912114319) AND (`retainLast` != true))
|
Connection ID (thread ID): 4
|
Status: NOT_KILLED
|
CREATE TABLE `report_schedule_logs` (
|
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
`reportName` varchar(128) DEFAULT NULL,
|
`scheduleName` varchar(128) DEFAULT NULL,
|
`reportId` varchar(255) DEFAULT NULL,
|
`reportScheduleId` varchar(255) DEFAULT NULL,
|
`reportType` int(10) unsigned DEFAULT NULL,
|
`reportFormat` tinyint(3) unsigned DEFAULT NULL,
|
`generationStartTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
`executionTime` varchar(128) DEFAULT NULL,
|
`reportSource` tinyint(3) unsigned DEFAULT NULL,
|
`status` tinyint(3) unsigned DEFAULT NULL,
|
`fileUrl` varchar(1024) DEFAULT NULL,
|
`fileSize` bigint(20) DEFAULT NULL,
|
`retainUntil` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
|
`retainLast` bit(1) DEFAULT b'0',
|
`users` longblob,
|
`userGroups` longblob,
|
`recurrenceType` tinyint(3) unsigned DEFAULT NULL,
|
`recurrenceIntervalType` tinyint(3) unsigned DEFAULT NULL,
|
`recurrenceIntervalValue` int(11) DEFAULT NULL,
|
`recurrenceParam1` varchar(128) DEFAULT NULL,
|
`recurrenceParam2` varchar(128) DEFAULT NULL,
|
`recurrenceParam3` varchar(128) DEFAULT NULL,
|
`userId` varchar(128) DEFAULT NULL,
|
`isGloballyViewable` bit(1) DEFAULT NULL,
|
PRIMARY KEY (`id`),
|
KEY `report_schedule_logs_idx1` (`status`)
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8
|
explain SELECT id, reportName, scheduleName, reportId, reportScheduleId, reportType, status, reportFormat, generationStartTime, executionTime, fileUrl, fileSize, retainUntil, users, userGroups, recurrenceType, recurrenceIntervalType, recurrenceIntervalValue, recurrenceParam1, recurrenceParam2, recurrenceParam3, reportSource, userId, isGloballyViewable, retainLast FROM report_schedule_logs WHERE ((`retainUntil` < 20140912114319) AND (`retainLast` != true));
|
changing the configuration to default instanlty solve the issue .
show variables like 'optimizer_use_condition_selectivity';
|
+-------------------------------------+-------+
|
| Variable_name | Value |
|
+-------------------------------------+-------+
|
| optimizer_use_condition_selectivity | 4 |
|
+-------------------------------------+-------+
|
1 row in set (0.00 sec)
|
|
MariaDB [sa]> explain SELECT id, reportName, scheduleName, reportId, reportScheduleId, reportType, status, reportFormat, generationStartTime, executionTime, fileUrl, fileSize, retainUntil, users, userGroups, recurrenceType, recurrenceIntervalType, recurrenceIntervalValue, recurrenceParam1, recurrenceParam2, recurrenceParam3, reportSource, userId, isGloballyViewable, retainLast FROM report_schedule_logs WHERE ((`retainUntil` < 20140912114319) AND (`retainLast` != true));
|
ERROR 2013 (HY000): Lost connection to MySQL server during query
|
MariaDB [sa]> show variables like 'optimizer_use_condition_selectivity';ERROR 2006 (HY000): MySQL server has gone awayNo connection. Trying to reconnect...
|
Connection id: 6
|
Current database: sa
|
|
+-------------------------------------+-------+
|
| Variable_name | Value |
|
+-------------------------------------+-------+
|
| optimizer_use_condition_selectivity | 1 |
|
+-------------------------------------+-------+
|
1 row in set (0.46 sec)
|
|
MariaDB [sa]> explain SELECT id, reportName, scheduleName, reportId, reportScheduleId, reportType, status, reportFormat, generationStartTime, executionTime, fileUrl, fileSize, retainUntil, users, userGroups, recurrenceType, recurrenceIntervalType, recurrenceIntervalValue, recurrenceParam1, recurrenceParam2, recurrenceParam3, reportSource, userId, isGloballyViewable, retainLast FROM report_schedule_logs WHERE ((`retainUntil` < 20140912114319) AND (`retainLast` != true));
|
+------+-------------+----------------------+------+---------------+------+---------+------+------+-------------+
|
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |
|
+------+-------------+----------------------+------+---------------+------+---------+------+------+-------------+
|
| 1 | SIMPLE | report_schedule_logs | ALL | NULL | NULL | NULL | NULL | 1 | Using where |
|
+------+-------------+----------------------+------+---------------+------+---------+------+------+-------------+
|
The context is that our client under support benefit from histograms on some query plan. We activated it but after a process of reseting the data . it started to crash on this query run every 5 minutes. not that after the reset we did no run analyze table but the table was readable and and was empty.
the content of the stats tables because are empty ! due to restart
Transition |
Time In Source Status |
Execution Times |
Open |
|
Closed |
|
27d 19h 59m
|
1
|
{"report":{"fcp":882,"ttfb":340,"pageVisibility":"visible","entityId":44435,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"18e64301-5460-4ed2-9309-6de42e7950a2","navigationType":0,"readyForUser":1002.0999999940395,"redirectCount":0,"resourceLoadedEnd":1006.1999999880791,"resourceLoadedStart":349.89999997615814,"resourceTiming":[{"duration":34.70000001788139,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":349.89999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":349.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":384.59999999403954,"responseStart":0,"secureConnectionStart":0},{"duration":34.79999998211861,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":350.09999999403954,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":350.09999999403954,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":384.89999997615814,"responseStart":0,"secureConnectionStart":0},{"duration":90.80000001192093,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":350.2999999821186,"connectEnd":350.2999999821186,"connectStart":350.2999999821186,"domainLookupEnd":350.2999999821186,"domainLookupStart":350.2999999821186,"fetchStart":350.2999999821186,"redirectEnd":0,"redirectStart":0,"requestStart":350.2999999821186,"responseEnd":441.09999999403954,"responseStart":441,"secureConnectionStart":350.2999999821186},{"duration":184,"initiatorType":"script","name":"https://jira.mariadb.org/s/c32eb0da7ad9831253f8397e6cc26afd-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":350.5,"connectEnd":350.5,"connectStart":350.5,"domainLookupEnd":350.5,"domainLookupStart":350.5,"fetchStart":350.5,"redirectEnd":0,"redirectStart":0,"requestStart":350.5,"responseEnd":534.5,"responseStart":534.5,"secureConnectionStart":350.5},{"duration":187.40000000596046,"initiatorType":"script","name":"https://jira.mariadb.org/s/bc0bcb146314416123c992714ee00ff7-CDN/lu2bv2/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":350.69999998807907,"connectEnd":350.69999998807907,"connectStart":350.69999998807907,"domainLookupEnd":350.69999998807907,"domainLookupStart":350.69999998807907,"fetchStart":350.69999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":350.69999998807907,"responseEnd":538.0999999940395,"responseStart":538.0999999940395,"secureConnectionStart":350.69999998807907},{"duration":187.69999998807907,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":351,"connectEnd":351,"connectStart":351,"domainLookupEnd":351,"domainLookupStart":351,"fetchStart":351,"redirectEnd":0,"redirectStart":0,"requestStart":351,"responseEnd":538.6999999880791,"responseStart":538.6999999880791,"secureConnectionStart":351},{"duration":188.09999999403954,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":351.09999999403954,"connectEnd":351.09999999403954,"connectStart":351.09999999403954,"domainLookupEnd":351.09999999403954,"domainLookupStart":351.09999999403954,"fetchStart":351.09999999403954,"redirectEnd":0,"redirectStart":0,"requestStart":351.09999999403954,"responseEnd":539.1999999880791,"responseStart":539.1999999880791,"secureConnectionStart":351.09999999403954},{"duration":229.40000000596046,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bv2/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":351.2999999821186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":351.2999999821186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":580.6999999880791,"responseStart":0,"secureConnectionStart":0},{"duration":188.2000000178814,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":351.39999997615814,"connectEnd":351.39999997615814,"connectStart":351.39999997615814,"domainLookupEnd":351.39999997615814,"domainLookupStart":351.39999997615814,"fetchStart":351.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":351.39999997615814,"responseEnd":539.5999999940395,"responseStart":539.5999999940395,"secureConnectionStart":351.39999997615814},{"duration":229.19999998807907,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bv2/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":351.59999999403954,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":351.59999999403954,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":580.7999999821186,"responseStart":0,"secureConnectionStart":0},{"duration":188.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/719848dd97ebe0663199f49a3936487a-CDN/lu2bv2/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":351.69999998807907,"connectEnd":351.69999998807907,"connectStart":351.69999998807907,"domainLookupEnd":351.69999998807907,"domainLookupStart":351.69999998807907,"fetchStart":351.69999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":351.69999998807907,"responseEnd":540.1999999880791,"responseStart":540.1999999880791,"secureConnectionStart":351.69999998807907},{"duration":517.5999999940395,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":352.59999999403954,"connectEnd":352.59999999403954,"connectStart":352.59999999403954,"domainLookupEnd":352.59999999403954,"domainLookupStart":352.59999999403954,"fetchStart":352.59999999403954,"redirectEnd":0,"redirectStart":0,"requestStart":352.59999999403954,"responseEnd":870.1999999880791,"responseStart":870.1999999880791,"secureConnectionStart":352.59999999403954},{"duration":640.7999999821186,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":352.59999999403954,"connectEnd":352.59999999403954,"connectStart":352.59999999403954,"domainLookupEnd":352.59999999403954,"domainLookupStart":352.59999999403954,"fetchStart":352.59999999403954,"redirectEnd":0,"redirectStart":0,"requestStart":352.59999999403954,"responseEnd":993.3999999761581,"responseStart":993.3999999761581,"secureConnectionStart":352.59999999403954},{"duration":278.80000001192093,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":591.7999999821186,"connectEnd":591.7999999821186,"connectStart":591.7999999821186,"domainLookupEnd":591.7999999821186,"domainLookupStart":591.7999999821186,"fetchStart":591.7999999821186,"redirectEnd":0,"redirectStart":0,"requestStart":591.7999999821186,"responseEnd":870.5999999940395,"responseStart":870.5999999940395,"secureConnectionStart":591.7999999821186},{"duration":215.7999999821186,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":876,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":876,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1091.7999999821186,"responseStart":0,"secureConnectionStart":0},{"duration":109,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/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":897.1999999880791,"connectEnd":897.1999999880791,"connectStart":897.1999999880791,"domainLookupEnd":897.1999999880791,"domainLookupStart":897.1999999880791,"fetchStart":897.1999999880791,"redirectEnd":0,"redirectStart":0,"requestStart":897.1999999880791,"responseEnd":1006.1999999880791,"responseStart":1006.1999999880791,"secureConnectionStart":897.1999999880791}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":154,"responseStart":340,"responseEnd":347,"domLoading":347,"domInteractive":1119,"domContentLoadedEventStart":1119,"domContentLoadedEventEnd":1169,"domComplete":3619,"loadEventStart":3619,"loadEventEnd":3620,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1097.0999999940395},{"name":"bigPipe.sidebar-id.end","time":1098.5999999940395},{"name":"bigPipe.activity-panel-pipe-id.start","time":1098.699999988079},{"name":"bigPipe.activity-panel-pipe-id.end","time":1099.5999999940395},{"name":"activityTabFullyLoaded","time":1184.2999999821186}],"measures":[],"correlationId":"bebf43489cc968","effectiveType":"4g","downlink":9.6,"rtt":0,"serverDuration":106,"dbReadsTimeInMs":16,"dbConnsTimeInMs":25,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}