Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
It happens on an attempt to insert a plain value into a dynamic column in a Cassandra table.
5.5-cassandra-dyncol-read/sql/mysqld: debugger aborting because missing DBUG_RETURN or DBUG_VOID_RETURN macro in function "ha_cassandra::write_row"
|
|
[ERROR] mysqld got signal 6 ;
|
#7 0xb7396c03 in abort () from /lib/libc.so.6
|
#8 0x088c1878 in DbugExit (why=0xaccb52f4 "missing DBUG_RETURN or DBUG_VOID_RETURN macro in function \"ha_cassandra::write_row\"\n") at 5.5-cassandra-dyncol-read/dbug/dbug.c:1987
|
#9 0x088c0610 in _db_return_ (_line_=5070, _stack_frame_=0xaccb5528) at 5.5-cassandra-dyncol-read/dbug/dbug.c:1178
|
#10 0x083e8b6d in handler::ha_write_row (this=0x9cb70e0, buf=0x9cb7540 "\376\002") at 5.5-cassandra-dyncol-read/sql/handler.cc:5070
|
#11 0x082337a7 in write_record (thd=0x9bb6e60, table=0x9c5f9f0, info=0xaccb5654) at 5.5-cassandra-dyncol-read/sql/sql_insert.cc:1800
|
#12 0x08231815 in mysql_insert (thd=0x9bb6e60, table_list=0x9c66ba8, fields=..., values_list=..., update_fields=..., update_values=..., duplic=DUP_ERROR, ignore=false) at 5.5-cassandra-dyncol-read/sql/sql_insert.cc:965
|
#13 0x0824dd5a in mysql_execute_command (thd=0x9bb6e60) at 5.5-cassandra-dyncol-read/sql/sql_parse.cc:2922
|
#14 0x0825578c in mysql_parse (thd=0x9bb6e60, rawbuf=0x9c66ab0 "insert into t2 values(2,'9b5658dc-f32f-11e1-94cd-f46d046e9f0a')", length=63, parser_state=0xaccb5d44) at 5.5-cassandra-dyncol-read/sql/sql_parse.cc:5736
|
#15 0x08249ccb in dispatch_command (command=COM_QUERY, thd=0x9bb6e60, packet=0x9c60e19 "insert into t2 values(2,'9b5658dc-f32f-11e1-94cd-f46d046e9f0a')", packet_length=63) at 5.5-cassandra-dyncol-read/sql/sql_parse.cc:1055
|
#16 0x08249197 in do_command (thd=0x9bb6e60) at 5.5-cassandra-dyncol-read/sql/sql_parse.cc:794
|
#17 0x08334eba in do_handle_one_connection (thd_arg=0x9bb6e60) at 5.5-cassandra-dyncol-read/sql/sql_connect.cc:1253
|
#18 0x08334a05 in handle_one_connection (arg=0x9bb6e60) at 5.5-cassandra-dyncol-read/sql/sql_connect.cc:1168
|
#19 0x0856063a in pfs_spawn_thread (arg=0x9ca18e8) at 5.5-cassandra-dyncol-read/storage/perfschema/pfs.cc:1015
|
#20 0xb7742e32 in start_thread () from /lib/libpthread.so.0
|
Query (0x9c66ab0): insert into t2 values(2,'9b5658dc-f32f-11e1-94cd-f46d046e9f0a')
|
Connection ID (thread ID): 2
|
Status: NOT_KILLED
|
5.5-cassandra-dyncol-read
bzr version-info
revision-id: sanja@montyprogram.com-20120926190923-oxdeydkyu12bmx1m
|
date: 2012-09-26 22:09:23 +0300
|
build-date: 2012-09-28 03:16:54 +0400
|
revno: 3522
|
Test case:
# Make sure your cassandra is running,
|
# and thrift is on LD_LIBRARY_PATH,
|
# and cqlsh is 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';
|
USE bug_ks;
|
create columnfamily cf5 (rowkey bigint primary key, uuidcol uuid);
|
EOF
|
|
--system cqlsh -3 -f $MYSQLTEST_VARDIR/test.cql
|
|
DROP TABLE IF EXISTS t2;
|
CREATE TABLE t2 (rowkey bigint PRIMARY KEY, dyn blob DYNAMIC_COLUMN_STORAGE=yes)
|
ENGINE=CASSANDRA thrift_host='localhost' keyspace='bug_ks' column_family = 'cf5';
|
DELETE FROM t2;
|
insert into t2 values(2,'9b5658dc-f32f-11e1-94cd-f46d046e9f0a');
|
|
# Cleanup
|
DROP TABLE t2;
|