Type:
Bug
Priority:
Critical
Resolution:
Fixed
Affects Version/s:
None
The function row_search_get_max_rec() needs to be adjusted to take descending indexes into account:
preview-10.8-MDEV-13756-desc-indexes 43444ff5d2a8d06460adea027993cfb6df45c7b9
innodb.autoinc_persist 'desc,innodb' [ fail ]
Test ended at 2022-01-07 15:09:42
CURRENT_TEST: innodb.autoinc_persist
mysqltest: In included file "./suite/innodb/include/autoinc_persist_alter.inc":
included from /mariadb/10.8m/mysql-test/suite/innodb/t/autoinc_persist.test at line 449:
At line 27: query 'ALTER TABLE $table AUTO_INCREMENT = 180, ALGORITHM = $algorithm' failed: <Unknown> (2013): Lost connection to server during query
…
mariadbd: /mariadb/10.8m/storage/innobase/row/row0sel.cc:6144: const rec_t* row_search_get_max_rec(dict_index_t*, mtr_t*): Assertion `!rec || !(rec_get_info_bits(rec, (index->table)->not_redundant()) & (0x10UL | 0x20UL))' failed.
…
#8 0x000055d705783009 in row_search_get_max_rec (index=index@entry=0x7f7e9895e0c8, mtr=mtr@entry=0x7f7f38855430) at /mariadb/10.8m/storage/innobase/row/row0sel.cc:6144
#9 0x000055d7057846ac in row_search_max_autoinc (index=index@entry=0x7f7e9895e0c8) at /mariadb/10.8m/storage/innobase/row/row0sel.cc:6164
#10 0x000055d7055f4548 in commit_set_autoinc (ha_alter_info=ha_alter_info@entry=0x7f7f38856390, ctx=ctx@entry=0x7f7e98018260, altered_table=altered_table@entry=0x7f7f38856450, old_table=<optimized out>) at /mariadb/10.8m/storage/innobase/handler/handler0alter.cc:9546
This can be repeated by applying the attached patch to the test case.
Note: The correctness of the desc combination of that test case has not been checked.
is caused by
MDEV-13756
Implement descending index: KEY (a DESC, b ASC)
Closed
There are no comments yet on this issue.
{"report":{"fcp":1121.8000001907349,"ttfb":244,"pageVisibility":"visible","entityId":106467,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"a33dc33a-091b-4050-94c1-036b8595db70","navigationType":0,"readyForUser":1222.4000000953674,"redirectCount":0,"resourceLoadedEnd":790.1000003814697,"resourceLoadedStart":253.60000038146973,"resourceTiming":[{"duration":33.59999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":253.60000038146973,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":253.60000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":287.2000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":33.700000286102295,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":253.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":253.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":287.6000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":312.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":254.2000002861023,"connectEnd":254.2000002861023,"connectStart":254.2000002861023,"domainLookupEnd":254.2000002861023,"domainLookupStart":254.2000002861023,"fetchStart":254.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":290.40000009536743,"responseEnd":566.4000000953674,"responseStart":315.1000003814697,"secureConnectionStart":254.2000002861023},{"duration":515.3000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":254.80000019073486,"connectEnd":254.80000019073486,"connectStart":254.80000019073486,"domainLookupEnd":254.80000019073486,"domainLookupStart":254.80000019073486,"fetchStart":254.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":290.90000009536743,"responseEnd":770.1000003814697,"responseStart":308.90000009536743,"secureConnectionStart":254.80000019073486},{"duration":81.40000009536743,"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":255,"connectEnd":255,"connectStart":255,"domainLookupEnd":255,"domainLookupStart":255,"fetchStart":255,"redirectEnd":0,"redirectStart":0,"requestStart":312.80000019073486,"responseEnd":336.40000009536743,"responseStart":334.5,"secureConnectionStart":255},{"duration":87.59999990463257,"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":255.2000002861023,"connectEnd":255.2000002861023,"connectStart":255.2000002861023,"domainLookupEnd":255.2000002861023,"domainLookupStart":255.2000002861023,"fetchStart":255.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":313.40000009536743,"responseEnd":342.80000019073486,"responseStart":337.80000019073486,"secureConnectionStart":255.2000002861023},{"duration":87.59999990463257,"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":255.40000009536743,"connectEnd":255.40000009536743,"connectStart":255.40000009536743,"domainLookupEnd":255.40000009536743,"domainLookupStart":255.40000009536743,"fetchStart":255.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":313.6000003814697,"responseEnd":343,"responseStart":339.2000002861023,"secureConnectionStart":255.40000009536743},{"duration":49.90000009536743,"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":255.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":255.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":305.40000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":82.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":255.7000002861023,"connectEnd":255.7000002861023,"connectStart":255.7000002861023,"domainLookupEnd":255.7000002861023,"domainLookupStart":255.7000002861023,"fetchStart":255.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":313.7000002861023,"responseEnd":338.40000009536743,"responseStart":336.90000009536743,"secureConnectionStart":255.7000002861023},{"duration":49.700000286102295,"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":255.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":255.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":305.6000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":91.09999990463257,"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":256.1000003814697,"connectEnd":256.1000003814697,"connectStart":256.1000003814697,"domainLookupEnd":256.1000003814697,"domainLookupStart":256.1000003814697,"fetchStart":256.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":314,"responseEnd":347.2000002861023,"responseStart":340.40000009536743,"secureConnectionStart":256.1000003814697},{"duration":527.5,"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":259.2000002861023,"connectEnd":259.2000002861023,"connectStart":259.2000002861023,"domainLookupEnd":259.2000002861023,"domainLookupStart":259.2000002861023,"fetchStart":259.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":507.1000003814697,"responseEnd":786.7000002861023,"responseStart":774.5,"secureConnectionStart":259.2000002861023},{"duration":530.9000000953674,"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":259.2000002861023,"connectEnd":259.2000002861023,"connectStart":259.2000002861023,"domainLookupEnd":259.2000002861023,"domainLookupStart":259.2000002861023,"fetchStart":259.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":508.2000002861023,"responseEnd":790.1000003814697,"responseStart":779.1000003814697,"secureConnectionStart":259.2000002861023},{"duration":308.69999980926514,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":713.3000001907349,"connectEnd":713.3000001907349,"connectStart":713.3000001907349,"domainLookupEnd":713.3000001907349,"domainLookupStart":713.3000001907349,"fetchStart":713.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":987.3000001907349,"responseEnd":1022,"responseStart":1020.3000001907349,"secureConnectionStart":713.3000001907349},{"duration":194,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1038,"connectEnd":1038,"connectStart":1038,"domainLookupEnd":1038,"domainLookupStart":1038,"fetchStart":1038,"redirectEnd":0,"redirectStart":0,"requestStart":1196.1000003814697,"responseEnd":1232,"responseStart":1231.1000003814697,"secureConnectionStart":1038},{"duration":298,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1082.7000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1082.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1380.7000002861023,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":89,"responseStart":244,"responseEnd":259,"domLoading":249,"domInteractive":1396,"domContentLoadedEventStart":1396,"domContentLoadedEventEnd":1447,"domComplete":2014,"loadEventStart":2015,"loadEventEnd":2015,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1382.4000000953674},{"name":"bigPipe.sidebar-id.end","time":1383.2000002861023},{"name":"bigPipe.activity-panel-pipe-id.start","time":1383.3000001907349},{"name":"bigPipe.activity-panel-pipe-id.end","time":1383.8000001907349},{"name":"activityTabFullyLoaded","time":1452.4000000953674}],"measures":[],"correlationId":"590d95ece0cf16","effectiveType":"4g","downlink":9.1,"rtt":0,"serverDuration":90,"dbReadsTimeInMs":12,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}