Type:
Bug
Priority:
Major
Resolution:
Fixed
Affects Version/s:
None
Component/s:
None
This is most likely either the same problem as MDEV-476 , or a closely related one. The test case is exactly the same, except that in this bug we execute the flow in the second connection and get the assertion failure; while in MDEV-476 we execute the flow in the first connection, and get the crash. It happens both with MTR and if I start the server and execute the test manually.
With MTR, the flow, according to the general log, is such:
MDEV-476 :
server starts;
connection 1 connects;
connection 1 executes MTR service stuff;
connection 1 quits;
connection 2 connects;
connection 2 executes the test case statements;
server crashes
This bug:
server starts;
connection 1 connects;
connection 1 executes MTR service stuff;
connection 1 quits;
connection 2 connects;
connection 3 connects;
connection 3 executes the test case statements;
assertion fails.
When I execute it manually, I do it even simpler:
MDEV-476 :
start the server;
connection 1 connects;
connection 1 executes the test case statements;
server crashes.
This bug:
start the server;
connection 1 connects;
connection 1 quits;
connection 2 connects;
connection 2 executes the test case statements;
assertion fails.
I find the difference in behavior disturbing, so I'll file it separately just so it doesn't get lost. Please feel free to close it as a duplicate if that's what it is.
mysqld: sql/field.cc:3795: virtual longlong Field_longlong::val_int(): Assertion `!table || (!table->read_set || bitmap_is_set(table->read_set, field_index))' failed.
#8 0xb7498014 in __assert_fail () from /lib/libc.so.6
#9 0x083eb8fb in Field_longlong::val_int (this=0x97cf9e0)
at sql/field.cc:3795
#10 0x0859216e in BigintDataConverter::mariadb_to_cassandra(char**, int*) ()
#11 0x08590d12 in ha_cassandra::index_read_map (this=0x97cf580,
buf=0x97cf9a0 "\377", key=0x97d73e8 "\001", keypart_map=1,
find_flag=HA_READ_KEY_EXACT)
at storage/cassandra/ha_cassandra.cc:648
#12 0x085917ad in ha_cassandra::rnd_pos (this=0x97cf580,
buf=0x97cf9a0 "\377", pos=0x97d73e8 "\001")
at storage/cassandra/ha_cassandra.cc:882
#13 0x082651eb in handler::ha_rnd_pos (this=0x97cf580,
buf=0x97cf9a0 "\377", pos=0x97d73e8 "\001")
at sql/sql_class.h:4283
#14 0x0851989b in rr_from_pointers (info=0xacec6714)
at sql/records.cc:529
#15 0x0853b984 in mysql_delete (thd=0x97afe68, table_list=0x97b23e0,
conds=0x0, order_list=0x97b1a20, limit=1, options=0)
at sql/sql_delete.cc:327
#16 0x08278fe7 in mysql_execute_command (thd=0x97afe68)
at sql/sql_parse.cc:3050
#17 0x08280453 in mysql_parse (thd=0x97afe68,
rawbuf=0x97b2320 "DELETE FROM t1 ORDER BY a LIMIT 1", length=33,
parser_state=0xacec6da4)
at sql/sql_parse.cc:5736
#18 0x0827489c in dispatch_command (command=COM_QUERY, thd=0x97afe68,
packet=0x97c6da1 "DELETE FROM t1 ORDER BY a LIMIT 1",
packet_length=33)
at sql/sql_parse.cc:1055
#19 0x08273d61 in do_command (thd=0x97afe68)
at sql/sql_parse.cc:794
#20 0x0835fb11 in do_handle_one_connection (thd_arg=0x97afe68)
at sql/sql_connect.cc:1253
#21 0x0835f65c in handle_one_connection (arg=0x97afe68)
at sql/sql_connect.cc:1168
#22 0x0858bf70 in pfs_spawn_thread (arg=0x97e7d50)
at storage/perfschema/pfs.cc:1015
#23 0xb7811b25 in start_thread () from /lib/libpthread.so.0
revision-id: psergey@askmonty.org-20120821143827-1gfv6fmua0cu29sl
date: 2012-08-21 18:38:27 +0400
build-date: 2012-08-23 00:46:27 +0400
revno: 3492
Test case:
--connect (con1,localhost,root,,)
DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (rowkey BIGINT PRIMARY KEY, a BIGINT) ENGINE=CASSANDRA
thrift_host='localhost' keyspace='storage_engine' column_family = 'colfam_t1';
INSERT INTO t1 VALUES (1,1),(2,2);
DELETE FROM t1 ORDER BY a LIMIT 1;
{"report":{"fcp":1169.199999988079,"ttfb":592.5,"pageVisibility":"visible","entityId":13819,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"89e74d07-6ad8-4e34-8a09-feaa1f76c05c","navigationType":0,"readyForUser":1262,"redirectCount":0,"resourceLoadedEnd":1570.699999988079,"resourceLoadedStart":598.2999999970198,"resourceTiming":[{"duration":7.799999997019768,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":598.2999999970198,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":598.2999999970198,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":606.0999999940395,"responseStart":0,"secureConnectionStart":0},{"duration":7.899999991059303,"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":598.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":598.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":606.3999999910593,"responseStart":0,"secureConnectionStart":0},{"duration":70.20000000298023,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":598.6999999880791,"connectEnd":598.6999999880791,"connectStart":598.6999999880791,"domainLookupEnd":598.6999999880791,"domainLookupStart":598.6999999880791,"fetchStart":598.6999999880791,"redirectEnd":0,"redirectStart":0,"requestStart":598.6999999880791,"responseEnd":668.8999999910593,"responseStart":668.8999999910593,"secureConnectionStart":598.6999999880791},{"duration":147.40000000596046,"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":598.8999999910593,"connectEnd":598.8999999910593,"connectStart":598.8999999910593,"domainLookupEnd":598.8999999910593,"domainLookupStart":598.8999999910593,"fetchStart":598.8999999910593,"redirectEnd":0,"redirectStart":0,"requestStart":598.8999999910593,"responseEnd":746.2999999970198,"responseStart":746.2999999970198,"secureConnectionStart":598.8999999910593},{"duration":150.90000000596046,"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":599.0999999940395,"connectEnd":599.0999999940395,"connectStart":599.0999999940395,"domainLookupEnd":599.0999999940395,"domainLookupStart":599.0999999940395,"fetchStart":599.0999999940395,"redirectEnd":0,"redirectStart":0,"requestStart":599.0999999940395,"responseEnd":750,"responseStart":750,"secureConnectionStart":599.0999999940395},{"duration":151,"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":599.2999999970198,"connectEnd":599.2999999970198,"connectStart":599.2999999970198,"domainLookupEnd":599.2999999970198,"domainLookupStart":599.2999999970198,"fetchStart":599.2999999970198,"redirectEnd":0,"redirectStart":0,"requestStart":599.2999999970198,"responseEnd":750.2999999970198,"responseStart":750.2999999970198,"secureConnectionStart":599.2999999970198},{"duration":151.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":599.5999999940395,"connectEnd":599.5999999940395,"connectStart":599.5999999940395,"domainLookupEnd":599.5999999940395,"domainLookupStart":599.5999999940395,"fetchStart":599.5999999940395,"redirectEnd":0,"redirectStart":0,"requestStart":599.5999999940395,"responseEnd":750.6999999880791,"responseStart":750.5999999940395,"secureConnectionStart":599.5999999940395},{"duration":218.80000001192093,"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":599.6999999880791,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":599.6999999880791,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":818.5,"responseStart":0,"secureConnectionStart":0},{"duration":151.20000000298023,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":599.8999999910593,"connectEnd":599.8999999910593,"connectStart":599.8999999910593,"domainLookupEnd":599.8999999910593,"domainLookupStart":599.8999999910593,"fetchStart":599.8999999910593,"redirectEnd":0,"redirectStart":0,"requestStart":599.8999999910593,"responseEnd":751.0999999940395,"responseStart":751.0999999940395,"secureConnectionStart":599.8999999910593},{"duration":218.59999999403954,"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":600,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":600,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":818.5999999940395,"responseStart":0,"secureConnectionStart":0},{"duration":151.59999999403954,"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":600.0999999940395,"connectEnd":600.0999999940395,"connectStart":600.0999999940395,"domainLookupEnd":600.0999999940395,"domainLookupStart":600.0999999940395,"fetchStart":600.0999999940395,"redirectEnd":0,"redirectStart":0,"requestStart":600.0999999940395,"responseEnd":751.6999999880791,"responseStart":751.5999999940395,"secureConnectionStart":600.0999999940395},{"duration":853,"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":601.1999999880791,"connectEnd":601.1999999880791,"connectStart":601.1999999880791,"domainLookupEnd":601.1999999880791,"domainLookupStart":601.1999999880791,"fetchStart":601.1999999880791,"redirectEnd":0,"redirectStart":0,"requestStart":601.1999999880791,"responseEnd":1454.199999988079,"responseStart":1454.199999988079,"secureConnectionStart":601.1999999880791},{"duration":969.5,"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":601.1999999880791,"connectEnd":601.1999999880791,"connectStart":601.1999999880791,"domainLookupEnd":601.1999999880791,"domainLookupStart":601.1999999880791,"fetchStart":601.1999999880791,"redirectEnd":0,"redirectStart":0,"requestStart":601.1999999880791,"responseEnd":1570.699999988079,"responseStart":1570.699999988079,"secureConnectionStart":601.1999999880791},{"duration":624.1000000089407,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":831.6999999880791,"connectEnd":831.6999999880791,"connectStart":831.6999999880791,"domainLookupEnd":831.6999999880791,"domainLookupStart":831.6999999880791,"fetchStart":831.6999999880791,"redirectEnd":0,"redirectStart":0,"requestStart":831.6999999880791,"responseEnd":1455.7999999970198,"responseStart":1455.7999999970198,"secureConnectionStart":831.6999999880791}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":69,"responseStart":592,"responseEnd":595,"domLoading":595,"domInteractive":1598,"domContentLoadedEventStart":1598,"domContentLoadedEventEnd":1650,"domComplete":3062,"loadEventStart":3062,"loadEventEnd":3064,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1575.199999988079},{"name":"bigPipe.sidebar-id.end","time":1576.0999999940395},{"name":"bigPipe.activity-panel-pipe-id.start","time":1576.2999999970198},{"name":"bigPipe.activity-panel-pipe-id.end","time":1580.8999999910593},{"name":"activityTabFullyLoaded","time":1658.3999999910593}],"measures":[],"correlationId":"a424526648c564","effectiveType":"4g","downlink":9.2,"rtt":0,"serverDuration":103,"dbReadsTimeInMs":13,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}