Introduced with the latest XtraDB merge. Reproducible on the current percona-server-5.5.
Version: '5.5.32-MariaDB-debug-log'
|
130717 19:09:03 InnoDB: Assertion failure in thread 139704798648064 in file log0online.c line 1284
|
InnoDB: Failing assertion: range_end >= range_start
|
Test case:
# If using MTR, run with --mysqld=--innodb --mysqld=--innodb_changed_pages
|
|
SELECT * FROM INFORMATION_SCHEMA.INNODB_CHANGED_PAGES WHERE start_lsn < 10 AND end_lsn > 20 ;
|
#3 <signal handler called>
|
#4 0x00007f0f94b39425 in __GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
|
#5 0x00007f0f94b3cb8b in __GI_abort () at abort.c:91
|
#6 0x0000000000af149f in log_online_setup_bitmap_file_range (bitmap_files=0x7f0f8ee56f68, range_start=20, range_end=10) at storage/xtradb/log/log0online.c:1284
|
#7 0x0000000000af1ec3 in log_online_bitmap_iterator_init (i=0x7f0f8ee56f60, min_lsn=20, max_lsn=10) at storage/xtradb/log/log0online.c:1566
|
#8 0x0000000000995499 in i_s_innodb_changed_pages_fill (thd=0x402ced0, tables=0x7f0f64007778, cond=0x7f0f64019650) at storage/xtradb/handler/i_s.cc:7354
|
#9 0x000000000069c631 in do_fill_table (thd=0x402ced0, table_list=0x7f0f64007778, join_table=0x7f0f64019030) at sql/sql_show.cc:7712
|
#10 0x000000000069ca43 in get_schema_tables_result (join=0x7f0f64008ac0, executed_place=PROCESSED_BY_JOIN_EXEC) at sql/sql_show.cc:7819
|
#11 0x00000000006464af in JOIN::exec (this=0x7f0f64008ac0) at sql/sql_select.cc:2321
|
#12 0x0000000000648e87 in mysql_select (thd=0x402ced0, rref_pointer_array=0x4030b28, tables=0x7f0f64007778, wild_num=1, fields=..., conds=0x7f0f64008388, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2684619520, result=0x7f0f64008aa0, unit=0x40301e8, select_lex=0x40308c0) at sql/sql_select.cc:3054
|
#13 0x000000000063fa3e in handle_select (thd=0x402ced0, lex=0x4030138, result=0x7f0f64008aa0, setup_tables_done_option=0) at sql/sql_select.cc:318
|
#14 0x0000000000618750 in execute_sqlcom_select (thd=0x402ced0, all_tables=0x7f0f64007778) at sql/sql_parse.cc:4651
|
#15 0x000000000061119f in mysql_execute_command (thd=0x402ced0) at sql/sql_parse.cc:2205
|
#16 0x000000000061aff0 in mysql_parse (thd=0x402ced0, rawbuf=0x7f0f640074c8 "SELECT * FROM INFORMATION_SCHEMA.INNODB_CHANGED_PAGES WHERE start_lsn < 10 AND end_lsn > 20", length=91, parser_state=0x7f0f8ee58500) at sql/sql_parse.cc:5769
|
#17 0x000000000060e669 in dispatch_command (command=COM_QUERY, thd=0x402ced0, packet=0x409e361 "SELECT * FROM INFORMATION_SCHEMA.INNODB_CHANGED_PAGES WHERE start_lsn < 10 AND end_lsn > 20 ", packet_length=92) at sql/sql_parse.cc:1071
|
#18 0x000000000060d879 in do_command (thd=0x402ced0) at sql/sql_parse.cc:794
|
#19 0x00000000007146b5 in do_handle_one_connection (thd_arg=0x402ced0) at sql/sql_connect.cc:1266
|
#20 0x000000000071409c in handle_one_connection (arg=0x402ced0) at sql/sql_connect.cc:1181
|
#21 0x000000000095fe44 in pfs_spawn_thread (arg=0x40365f0) at storage/perfschema/pfs.cc:1015
|
#22 0x00007f0f95902e9a in start_thread (arg=0x7f0f8ee59700) at pthread_create.c:308
|
#23 0x00007f0f94bf6cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
|
bzr version-info
revision-id: sergii@pisem.net-20130716173039-j2k1nrkd0gmdmsd9
|
revno: 3836
|
branch-nick: 5.5
|
{"report":{"fcp":902.1000000238419,"ttfb":280.30000001192093,"pageVisibility":"visible","entityId":24711,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"f0d65666-63ac-4c6a-bd4c-be765b735e01","navigationType":0,"readyForUser":990.6999999880791,"redirectCount":0,"resourceLoadedEnd":650.5,"resourceLoadedStart":288.30000001192093,"resourceTiming":[{"duration":56.80000001192093,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":288.30000001192093,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":288.30000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":345.10000002384186,"responseStart":0,"secureConnectionStart":0},{"duration":56.700000047683716,"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":288.69999998807907,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":288.69999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":345.4000000357628,"responseStart":0,"secureConnectionStart":0},{"duration":221.10000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":288.80000001192093,"connectEnd":345.5,"connectStart":345.5,"domainLookupEnd":345.5,"domainLookupStart":345.5,"fetchStart":288.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":347.5,"responseEnd":509.9000000357628,"responseStart":370.80000001192093,"secureConnectionStart":345.5},{"duration":334.5,"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":289.4000000357628,"connectEnd":289.4000000357628,"connectStart":289.4000000357628,"domainLookupEnd":289.4000000357628,"domainLookupStart":289.4000000357628,"fetchStart":289.4000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":347.9000000357628,"responseEnd":623.9000000357628,"responseStart":362.69999998807907,"secureConnectionStart":289.4000000357628},{"duration":71.70000004768372,"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":289.69999998807907,"connectEnd":289.69999998807907,"connectStart":289.69999998807907,"domainLookupEnd":289.69999998807907,"domainLookupStart":289.69999998807907,"fetchStart":289.69999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":348.10000002384186,"responseEnd":361.4000000357628,"responseStart":360.80000001192093,"secureConnectionStart":289.69999998807907},{"duration":80.19999998807907,"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":289.80000001192093,"connectEnd":289.80000001192093,"connectStart":289.80000001192093,"domainLookupEnd":289.80000001192093,"domainLookupStart":289.80000001192093,"fetchStart":289.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":348.19999998807907,"responseEnd":370,"responseStart":365.60000002384186,"secureConnectionStart":289.80000001192093},{"duration":81.60000002384186,"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":290,"connectEnd":290,"connectStart":290,"domainLookupEnd":290,"domainLookupStart":290,"fetchStart":290,"redirectEnd":0,"redirectStart":0,"requestStart":348.4000000357628,"responseEnd":371.60000002384186,"responseStart":370.30000001192093,"secureConnectionStart":290},{"duration":56.60000002384186,"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":290.19999998807907,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":290.19999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":346.80000001192093,"responseStart":0,"secureConnectionStart":0},{"duration":86.30000001192093,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":290.30000001192093,"connectEnd":290.30000001192093,"connectStart":290.30000001192093,"domainLookupEnd":290.30000001192093,"domainLookupStart":290.30000001192093,"fetchStart":290.30000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":348.80000001192093,"responseEnd":376.60000002384186,"responseStart":376.10000002384186,"secureConnectionStart":290.30000001192093},{"duration":56.5,"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":290.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":290.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":347,"responseStart":0,"secureConnectionStart":0},{"duration":85.19999998807907,"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":290.60000002384186,"connectEnd":290.60000002384186,"connectStart":290.60000002384186,"domainLookupEnd":290.60000002384186,"domainLookupStart":290.60000002384186,"fetchStart":290.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":349,"responseEnd":375.80000001192093,"responseStart":373,"secureConnectionStart":290.60000002384186},{"duration":347.80000001192093,"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":302.19999998807907,"connectEnd":302.19999998807907,"connectStart":302.19999998807907,"domainLookupEnd":302.19999998807907,"domainLookupStart":302.19999998807907,"fetchStart":302.19999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":447.69999998807907,"responseEnd":650,"responseStart":645.4000000357628,"secureConnectionStart":302.19999998807907},{"duration":348.19999998807907,"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":302.30000001192093,"connectEnd":302.30000001192093,"connectStart":302.30000001192093,"domainLookupEnd":302.30000001192093,"domainLookupStart":302.30000001192093,"fetchStart":302.30000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":573.4000000357628,"responseEnd":650.5,"responseStart":647.1999999880791,"secureConnectionStart":302.30000001192093},{"duration":69.69999998807907,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":639.9000000357628,"connectEnd":639.9000000357628,"connectStart":639.9000000357628,"domainLookupEnd":639.9000000357628,"domainLookupStart":639.9000000357628,"fetchStart":639.9000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":675.1999999880791,"responseEnd":709.6000000238419,"responseStart":708.9000000357628,"secureConnectionStart":639.9000000357628},{"duration":161,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":856.9000000357628,"connectEnd":856.9000000357628,"connectStart":856.9000000357628,"domainLookupEnd":856.9000000357628,"domainLookupStart":856.9000000357628,"fetchStart":856.9000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":979.3000000119209,"responseEnd":1017.9000000357628,"responseStart":1017.3000000119209,"secureConnectionStart":856.9000000357628},{"duration":192.4000000357628,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":896,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":896,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1088.4000000357628,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":93,"responseStart":280,"responseEnd":302,"domLoading":284,"domInteractive":1097,"domContentLoadedEventStart":1097,"domContentLoadedEventEnd":1151,"domComplete":1525,"loadEventStart":1525,"loadEventEnd":1526,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1071},{"name":"bigPipe.sidebar-id.end","time":1071.800000011921},{"name":"bigPipe.activity-panel-pipe-id.start","time":1071.9000000357628},{"name":"bigPipe.activity-panel-pipe-id.end","time":1073.5},{"name":"activityTabFullyLoaded","time":1167.800000011921}],"measures":[],"correlationId":"32d1e3fbca847f","effectiveType":"4g","downlink":9.4,"rtt":0,"serverDuration":107,"dbReadsTimeInMs":15,"dbConnsTimeInMs":23,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Hi Laurynas,
Apparently, not. When I was coding my fix, I didn't make any assumptions about the order the records will come in (or even that end_lsn > start_lsn for any given record).
Having studied http://www.slideshare.net/kastauyra/bitmap-33283809 and also how i_s_innodb_changed_pages_fill() uses the upper/lower bound, I will agree that it turns out it's acceptable in this case to use "start_lsn < X" to get upper bound and use "end_lsn>Y" to generate lower bound.
Agree. This is the best solution, then I guess, you will use this above patch? We should switch to it also, then.