#7 0x00007ffa43a83ee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
#8 0x000055d037dee244 in handler::ha_write_row (this=0x7ffa2c0779a8, buf=0x7ffa2c006878 "\377\351\003") at /data/src/bb-10.2-compatibility/sql/handler.cc:6134
#9 0x000055d037d0a729 in sequence_definition::write (this=0x7ffa2c08fd58, table=0x7ffa2c076d70, all_fields=false) at /data/src/bb-10.2-compatibility/sql/sql_sequence.cc:603
#10 0x000055d037d0aa8f in SEQUENCE::next_value (this=0x7ffa2c08fd58, table=0x7ffa2c076d70, second_round=false, error=0x7ffa3dc28250) at /data/src/bb-10.2-compatibility/sql/sql_sequence.cc:710
#11 0x000055d037e6c9ac in Item_func_nextval::val_int (this=0x7ffa2c012f10) at /data/src/bb-10.2-compatibility/sql/item_func.cc:6939
#12 0x000055d037cf4605 in Type_handler::Item_send_longlong (this=0x55d0391f4930 <type_handler_longlong>, item=0x7ffa2c012f10, protocol=0x7ffa2c0010c0, buf=0x7ffa3dc28440) at /data/src/bb-10.2-compatibility/sql/sql_type.cc:5289
#13 0x000055d037cf85de in Type_handler_longlong::Item_send (this=0x55d0391f4930 <type_handler_longlong>, item=0x7ffa2c012f10, protocol=0x7ffa2c0010c0, buf=0x7ffa3dc28440) at /data/src/bb-10.2-compatibility/sql/sql_type.h:2232
#14 0x000055d037a38d40 in Item::send (this=0x7ffa2c012f10, protocol=0x7ffa2c0010c0, buffer=0x7ffa3dc28440) at /data/src/bb-10.2-compatibility/sql/item.h:807
#15 0x000055d037a347ba in Protocol::send_result_set_row (this=0x7ffa2c0010c0, row_items=0x7ffa2c005088) at /data/src/bb-10.2-compatibility/sql/protocol.cc:985
#16 0x000055d037ad3d86 in select_send::send_data (this=0x7ffa2c013098, items=...) at /data/src/bb-10.2-compatibility/sql/sql_class.cc:2921
#17 0x000055d037b6f90f in JOIN::exec_inner (this=0x7ffa2c0130b8) at /data/src/bb-10.2-compatibility/sql/sql_select.cc:3505
#18 0x000055d037b6f382 in JOIN::exec (this=0x7ffa2c0130b8) at /data/src/bb-10.2-compatibility/sql/sql_select.cc:3424
#19 0x000055d037b7054d in mysql_select (thd=0x7ffa2c000b00, tables=0x0, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2149845760, result=0x7ffa2c013098, unit=0x7ffa2c004820, select_lex=0x7ffa2c004f60) at /data/src/bb-10.2-compatibility/sql/sql_select.cc:3824
#20 0x000055d037b64950 in handle_select (thd=0x7ffa2c000b00, lex=0x7ffa2c004758, result=0x7ffa2c013098, setup_tables_done_option=0) at /data/src/bb-10.2-compatibility/sql/sql_select.cc:379
#21 0x000055d037b30f93 in execute_sqlcom_select (thd=0x7ffa2c000b00, all_tables=0x7ffa2c0128f8) at /data/src/bb-10.2-compatibility/sql/sql_parse.cc:6511
#22 0x000055d037b2792e in mysql_execute_command (thd=0x7ffa2c000b00) at /data/src/bb-10.2-compatibility/sql/sql_parse.cc:3736
#23 0x000055d037b34a64 in mysql_parse (thd=0x7ffa2c000b00, rawbuf=0x7ffa2c012828 "SELECT NEXTVAL(s)", length=17, parser_state=0x7ffa3dc2a200, is_com_multi=false, is_next_command=false) at /data/src/bb-10.2-compatibility/sql/sql_parse.cc:7978
#24 0x000055d037b226d5 in dispatch_command (command=COM_QUERY, thd=0x7ffa2c000b00, packet=0x7ffa2c08bca1 "", packet_length=17, is_com_multi=false, is_next_command=false) at /data/src/bb-10.2-compatibility/sql/sql_parse.cc:1835
#25 0x000055d037b21019 in do_command (thd=0x7ffa2c000b00) at /data/src/bb-10.2-compatibility/sql/sql_parse.cc:1383
#26 0x000055d037c736a6 in do_handle_one_connection (connect=0x55d03b5c9b90) at /data/src/bb-10.2-compatibility/sql/sql_connect.cc:1335
#27 0x000055d037c73433 in handle_one_connection (arg=0x55d03b5c9b90) at /data/src/bb-10.2-compatibility/sql/sql_connect.cc:1241
#28 0x000055d0380ca66c in pfs_spawn_thread (arg=0x55d03b513560) at /data/src/bb-10.2-compatibility/storage/perfschema/pfs.cc:1862
#29 0x00007ffa4575a494 in start_thread (arg=0x7ffa3dc2b700) at pthread_create.c:333
#30 0x00007ffa43b4093f in clone () from /lib/x86_64-linux-gnu/libc.so.6
A non-debug build produces an odd error
mysqltest: At line 3: query 'SELECT NEXTVAL(s)' failed: 1036: Table './test/s.MYI' is read only
Neither is reproducible on 10.3 (no assertion, and non-debug build produces the more reasonable ER_TABLE_NOT_LOCKED_FOR_WRITE).
Cherry-picked 7 patches from 10.3 to get this fixed.
Other things fixed are: MDEV-14762 Server crashes in MDL_ticket::has_stronger_or_equal_type MDEV-14831 CREATE OR REPLACE SEQUENCE under LOCK TABLE corrupts the sequence, causes ER_KEY_NOT_FOUND MDEV-15149 Assert upon concurrent creating / querying sequences
MDEV 13679 Enabled sequences to be used in DEFAULT
Michael Widenius
added a comment - Cherry-picked 7 patches from 10.3 to get this fixed.
Other things fixed are:
MDEV-14762 Server crashes in MDL_ticket::has_stronger_or_equal_type
MDEV-14831 CREATE OR REPLACE SEQUENCE under LOCK TABLE corrupts the sequence, causes ER_KEY_NOT_FOUND
MDEV-15149 Assert upon concurrent creating / querying sequences
MDEV 13679 Enabled sequences to be used in DEFAULT
People
Michael Widenius
Elena Stepanova
Votes:
0Vote for this issue
Watchers:
2Start 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":869,"ttfb":266.09999990463257,"pageVisibility":"visible","entityId":66615,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"0c1179e5-dbac-4ae3-80fa-aef66cbc4a52","navigationType":0,"readyForUser":988.5,"redirectCount":0,"resourceLoadedEnd":607.8999998569489,"resourceLoadedStart":273.5,"resourceTiming":[{"duration":31.899999856948853,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":273.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":273.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":305.39999985694885,"responseStart":0,"secureConnectionStart":0},{"duration":32.59999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":273.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":273.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":306.39999985694885,"responseStart":0,"secureConnectionStart":0},{"duration":192.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":274,"connectEnd":274,"connectStart":274,"domainLookupEnd":274,"domainLookupStart":274,"fetchStart":274,"redirectEnd":0,"redirectStart":0,"requestStart":310.59999990463257,"responseEnd":466.59999990463257,"responseStart":333,"secureConnectionStart":274},{"duration":316.10000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":274.09999990463257,"connectEnd":309.2000000476837,"connectStart":309.2000000476837,"domainLookupEnd":309.2000000476837,"domainLookupStart":309.2000000476837,"fetchStart":274.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":310.5,"responseEnd":590.2000000476837,"responseStart":324.2000000476837,"secureConnectionStart":309.2000000476837},{"duration":49.5,"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":274.2999999523163,"connectEnd":274.2999999523163,"connectStart":274.2999999523163,"domainLookupEnd":274.2999999523163,"domainLookupStart":274.2999999523163,"fetchStart":274.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":310.7999999523163,"responseEnd":323.7999999523163,"responseStart":321.89999985694885,"secureConnectionStart":274.2999999523163},{"duration":61.89999985694885,"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":274.5,"connectEnd":274.5,"connectStart":274.5,"domainLookupEnd":274.5,"domainLookupStart":274.5,"fetchStart":274.5,"redirectEnd":0,"redirectStart":0,"requestStart":311.7000000476837,"responseEnd":336.39999985694885,"responseStart":332.39999985694885,"secureConnectionStart":274.5},{"duration":61.5,"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":274.7000000476837,"connectEnd":274.7000000476837,"connectStart":274.7000000476837,"domainLookupEnd":274.7000000476837,"domainLookupStart":274.7000000476837,"fetchStart":274.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":312.39999985694885,"responseEnd":336.2000000476837,"responseStart":331.7000000476837,"secureConnectionStart":274.7000000476837},{"duration":36.10000014305115,"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":274.89999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":274.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":311,"responseStart":0,"secureConnectionStart":0},{"duration":62.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":275,"connectEnd":275,"connectStart":275,"domainLookupEnd":275,"domainLookupStart":275,"fetchStart":275,"redirectEnd":0,"redirectStart":0,"requestStart":313.7999999523163,"responseEnd":337.5,"responseStart":335,"secureConnectionStart":275},{"duration":37.60000014305115,"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":275.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":275.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":312.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":65.70000004768372,"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":275.2999999523163,"connectEnd":275.2999999523163,"connectStart":275.2999999523163,"domainLookupEnd":275.2999999523163,"domainLookupStart":275.2999999523163,"fetchStart":275.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":315.7000000476837,"responseEnd":341,"responseStart":337,"secureConnectionStart":275.2999999523163},{"duration":321.60000014305115,"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":285.09999990463257,"connectEnd":285.09999990463257,"connectStart":285.09999990463257,"domainLookupEnd":285.09999990463257,"domainLookupStart":285.09999990463257,"fetchStart":285.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":339.09999990463257,"responseEnd":606.7000000476837,"responseStart":599.7999999523163,"secureConnectionStart":285.09999990463257},{"duration":322.59999990463257,"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":285.2999999523163,"connectEnd":285.2999999523163,"connectStart":285.2999999523163,"domainLookupEnd":285.2999999523163,"domainLookupStart":285.2999999523163,"fetchStart":285.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":348.7999999523163,"responseEnd":607.8999998569489,"responseStart":602.2999999523163,"secureConnectionStart":285.2999999523163},{"duration":131.70000004768372,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":614.5999999046326,"connectEnd":614.5999999046326,"connectStart":614.5999999046326,"domainLookupEnd":614.5999999046326,"domainLookupStart":614.5999999046326,"fetchStart":614.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":713.8999998569489,"responseEnd":746.2999999523163,"responseStart":745.5999999046326,"secureConnectionStart":614.5999999046326},{"duration":254.29999995231628,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":824.0999999046326,"connectEnd":824.0999999046326,"connectStart":824.0999999046326,"domainLookupEnd":824.0999999046326,"domainLookupStart":824.0999999046326,"fetchStart":824.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":1046.8999998569489,"responseEnd":1078.3999998569489,"responseStart":1077.5999999046326,"secureConnectionStart":824.0999999046326}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":89,"responseStart":266,"responseEnd":285,"domLoading":270,"domInteractive":1043,"domContentLoadedEventStart":1043,"domContentLoadedEventEnd":1090,"domComplete":1448,"loadEventStart":1448,"loadEventEnd":1448,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1024.0999999046326},{"name":"bigPipe.sidebar-id.end","time":1024.7999999523163},{"name":"bigPipe.activity-panel-pipe-id.start","time":1025},{"name":"bigPipe.activity-panel-pipe-id.end","time":1026},{"name":"activityTabFullyLoaded","time":1107.5}],"measures":[],"correlationId":"1211874880a10e","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":105,"dbReadsTimeInMs":16,"dbConnsTimeInMs":28,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
The issue is that the compatibility tree is missing some patches that are in 10.3.