Type:
Bug
Priority:
Major
Resolution:
Fixed
Affects Version/s:
None
Component/s:
None
Important: please check that the column family structure is a valid one, I made some guesses on top of what was discussed before, could have gone wrong. See the structure below in the test case.
Test case:
# Make sure your cassandra is running,
# and thrift is on LD_LIBRARY_PATH,
# and cqlsh and cassandra-cli are on the system PATH
--source include/have_cassandra.inc
--remove_files_wildcard $MYSQLTEST_VARDIR test.cql
--write_file $MYSQLTEST_VARDIR/test.cql
DROP KEYSPACE bug_ks;
EOF
--error 0,1,2
--system cqlsh -3 -f $MYSQLTEST_VARDIR/test.cql
--remove_file $MYSQLTEST_VARDIR/test.cql
--write_file $MYSQLTEST_VARDIR/test.cql
CREATE KEYSPACE bug_ks
WITH strategy_class = 'org.apache.cassandra.locator.SimpleStrategy'
AND strategy_options:replication_factor='1';
EOF
--error 0,1,2
--system cqlsh -3 -f $MYSQLTEST_VARDIR/test.cql
--remove_file $MYSQLTEST_VARDIR/test.cql
--write_file $MYSQLTEST_VARDIR/test.cql
USE bug_ks;
CREATE COLUMN FAMILY cf1
WITH comparator = UTF8Type
AND key_validation_class=Int32Type
AND default_validation_class = UTF8Type;
EOF
--system cassandra-cli -f $MYSQLTEST_VARDIR/test.cql
DROP TABLE IF EXISTS t2;
CREATE TABLE t2 (rowkey int PRIMARY KEY, dyn blob DYNAMIC_COLUMN_STORAGE=yes)
ENGINE=CASSANDRA thrift_host='localhost' keyspace='bug_ks' column_family = 'cf1';
DELETE FROM t2;
insert into t2 values (1, column_create("dyn", 1));
select rowkey, column_list(dyn) from t2;
# Cleanup
DROP TABLE t2;
#4 <signal handler called>
#5 0x085670e8 in ha_cassandra::read_cassandra_columns (this=0xa26e0e0, unpack_pk=true) at 5.5-cassandra-dyncol-read/storage/cassandra/ha_cassandra.cc:1698
#6 0x085681d1 in ha_cassandra::rnd_next (this=0xa26e0e0, buf=0xa26e540 "\376") at 5.5-cassandra-dyncol-read/storage/cassandra/ha_cassandra.cc:1990
#7 0x081ec893 in handler::ha_rnd_next (this=0xa26e0e0, buf=0xa26e540 "\376") at 5.5-cassandra-dyncol-read/sql/sql_class.h:4263
#8 0x084ee078 in rr_sequential (info=0xa21ec80) at 5.5-cassandra-dyncol-read/sql/records.cc:452
#9 0x0829efe2 in join_init_read_record (tab=0xa21ec28) at 5.5-cassandra-dyncol-read/sql/sql_select.cc:16949
#10 0x0829d201 in sub_select (join=0xa21e238, join_tab=0xa21ec28, end_of_records=false) at 5.5-cassandra-dyncol-read/sql/sql_select.cc:16095
#11 0x0829cb29 in do_select (join=0xa21e238, fields=0xa16f988, table=0x0, procedure=0x0) at 5.5-cassandra-dyncol-read/sql/sql_select.cc:15768
#12 0x0827f320 in JOIN::exec (this=0xa21e238) at 5.5-cassandra-dyncol-read/sql/sql_select.cc:2824
#13 0x0827faf4 in mysql_select (thd=0xa16de60, rref_pointer_array=0xa16fa30, tables=0xa21dd98, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0xa21e228, unit=0xa16f440, select_lex=0xa16f8f0) at 5.5-cassandra-dyncol-read/sql/sql_select.cc:3044
#14 0x08277622 in handle_select (thd=0xa16de60, lex=0xa16f3dc, result=0xa21e228, setup_tables_done_option=0) at 5.5-cassandra-dyncol-read/sql/sql_select.cc:313
#15 0x082531b6 in execute_sqlcom_select (thd=0xa16de60, all_tables=0xa21dd98) at 5.5-cassandra-dyncol-read/sql/sql_parse.cc:4621
#16 0x0824c201 in mysql_execute_command (thd=0xa16de60) at 5.5-cassandra-dyncol-read/sql/sql_parse.cc:2189
#17 0x0825578c in mysql_parse (thd=0xa16de60, rawbuf=0xa21dab0 "select rowkey, column_list(dyn) from t2", length=39, parser_state=0xacd72d44) at 5.5-cassandra-dyncol-read/sql/sql_parse.cc:5736
#18 0x08249ccb in dispatch_command (command=COM_QUERY, thd=0xa16de60, packet=0xa217e19 "", packet_length=39) at 5.5-cassandra-dyncol-read/sql/sql_parse.cc:1055
#19 0x08249197 in do_command (thd=0xa16de60) at 5.5-cassandra-dyncol-read/sql/sql_parse.cc:794
#20 0x08334eba in do_handle_one_connection (thd_arg=0xa16de60) at 5.5-cassandra-dyncol-read/sql/sql_connect.cc:1253
#21 0x08334a05 in handle_one_connection (arg=0xa16de60) at 5.5-cassandra-dyncol-read/sql/sql_connect.cc:1168
#22 0x0856063a in pfs_spawn_thread (arg=0xa2588e8) at 5.5-cassandra-dyncol-read/storage/perfschema/pfs.cc:1015
#23 0xb76d4e32 in start_thread () from /lib/libpthread.so.0
#24 0xb73e38ee in clone () from /lib/libc.so.6
Query (0xa21dab0): select rowkey, column_list(dyn) from t2
Connection ID (thread ID): 2
Status: NOT_KILLED
bzr version-info
revision-id: sanja@montyprogram.com-20120926190923-oxdeydkyu12bmx1m
date: 2012-09-26 22:09:23 +0300
build-date: 2012-09-28 01:16:25 +0400
revno: 3522
{"report":{"fcp":778.2999999523163,"ttfb":156.19999980926514,"pageVisibility":"visible","entityId":19636,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"89ae5618-58ad-4c63-b712-8e802ae98e01","navigationType":0,"readyForUser":850.7999999523163,"redirectCount":0,"resourceLoadedEnd":716,"resourceLoadedStart":161.89999985694885,"resourceTiming":[{"duration":138.20000004768372,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":161.89999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":161.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":300.09999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":138.09999990463257,"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":162.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":162.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":300.19999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":148.79999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":162.29999995231628,"connectEnd":162.29999995231628,"connectStart":162.29999995231628,"domainLookupEnd":162.29999995231628,"domainLookupStart":162.29999995231628,"fetchStart":162.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":162.29999995231628,"responseEnd":311.09999990463257,"responseStart":311.09999990463257,"secureConnectionStart":162.29999995231628},{"duration":219.79999995231628,"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":162.29999995231628,"connectEnd":162.29999995231628,"connectStart":162.29999995231628,"domainLookupEnd":162.29999995231628,"domainLookupStart":162.29999995231628,"fetchStart":162.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":162.29999995231628,"responseEnd":382.09999990463257,"responseStart":382.09999990463257,"secureConnectionStart":162.29999995231628},{"duration":223.59999990463257,"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":162.5,"connectEnd":162.5,"connectStart":162.5,"domainLookupEnd":162.5,"domainLookupStart":162.5,"fetchStart":162.5,"redirectEnd":0,"redirectStart":0,"requestStart":162.5,"responseEnd":386.09999990463257,"responseStart":386.09999990463257,"secureConnectionStart":162.5},{"duration":224,"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":162.69999980926514,"connectEnd":162.69999980926514,"connectStart":162.69999980926514,"domainLookupEnd":162.69999980926514,"domainLookupStart":162.69999980926514,"fetchStart":162.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":162.69999980926514,"responseEnd":386.69999980926514,"responseStart":386.69999980926514,"secureConnectionStart":162.69999980926514},{"duration":224.20000004768372,"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":162.79999995231628,"connectEnd":162.79999995231628,"connectStart":162.79999995231628,"domainLookupEnd":162.79999995231628,"domainLookupStart":162.79999995231628,"fetchStart":162.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":162.79999995231628,"responseEnd":387,"responseStart":387,"secureConnectionStart":162.79999995231628},{"duration":224.40000009536743,"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":162.89999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":162.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":387.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":224.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":162.89999985694885,"connectEnd":162.89999985694885,"connectStart":162.89999985694885,"domainLookupEnd":162.89999985694885,"domainLookupStart":162.89999985694885,"fetchStart":162.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":162.89999985694885,"responseEnd":387.2999999523163,"responseStart":387.2999999523163,"secureConnectionStart":162.89999985694885},{"duration":224.60000014305115,"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":163.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":163.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":387.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":224.59999990463257,"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":163.29999995231628,"connectEnd":163.29999995231628,"connectStart":163.29999995231628,"domainLookupEnd":163.29999995231628,"domainLookupStart":163.29999995231628,"fetchStart":163.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":163.29999995231628,"responseEnd":387.89999985694885,"responseStart":387.89999985694885,"secureConnectionStart":163.29999995231628},{"duration":432.59999990463257,"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":164,"connectEnd":164,"connectStart":164,"domainLookupEnd":164,"domainLookupStart":164,"fetchStart":164,"redirectEnd":0,"redirectStart":0,"requestStart":164,"responseEnd":596.5999999046326,"responseStart":596.5999999046326,"secureConnectionStart":164},{"duration":551.8000001907349,"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":164.19999980926514,"connectEnd":164.19999980926514,"connectStart":164.19999980926514,"domainLookupEnd":164.19999980926514,"domainLookupStart":164.19999980926514,"fetchStart":164.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":164.19999980926514,"responseEnd":716,"responseStart":715.8999998569489,"secureConnectionStart":164.19999980926514},{"duration":135.90000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":528.6999998092651,"connectEnd":528.6999998092651,"connectStart":528.6999998092651,"domainLookupEnd":528.6999998092651,"domainLookupStart":528.6999998092651,"fetchStart":528.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":528.6999998092651,"responseEnd":664.5999999046326,"responseStart":664.5999999046326,"secureConnectionStart":528.6999998092651},{"duration":180.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/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":728.5,"connectEnd":728.5,"connectStart":728.5,"domainLookupEnd":728.5,"domainLookupStart":728.5,"fetchStart":728.5,"redirectEnd":0,"redirectStart":0,"requestStart":728.5,"responseEnd":909,"responseStart":909,"secureConnectionStart":728.5},{"duration":162.5,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":758.8999998569489,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":758.8999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":921.3999998569489,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":24,"responseStart":156,"responseEnd":158,"domLoading":159,"domInteractive":909,"domContentLoadedEventStart":909,"domContentLoadedEventEnd":944,"domComplete":2620,"loadEventStart":2620,"loadEventEnd":2622,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":892.7999999523163},{"name":"bigPipe.sidebar-id.end","time":893.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":893.6999998092651},{"name":"bigPipe.activity-panel-pipe-id.end","time":896.0999999046326},{"name":"activityTabFullyLoaded","time":953.0999999046326}],"measures":[],"correlationId":"793736d939eed2","effectiveType":"4g","downlink":9.4,"rtt":0,"serverDuration":71,"dbReadsTimeInMs":12,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}