Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-565

Cassandra: DynCols: Server crashes in ha_cassandra::write_row on inserting NULL into a dynamic column

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 10.0.1
    • None
    • None

    Description

      #3  0x083deca8 in handle_fatal_signal (sig=11) at 5.5-cassandra/sql/signal_handler.cc:262
      #4  <signal handler called>
      #5  0x08567fc4 in ha_cassandra::write_row (this=0xa84f450, buf=0xa84f8b0 "\377\002") at 5.5-cassandra/storage/cassandra/ha_cassandra.cc:2015
      #6  0x083e8b79 in handler::ha_write_row (this=0xa84f450, buf=0xa84f8b0 "\377\002") at 5.5-cassandra/sql/handler.cc:5067
      #7  0x082337d7 in write_record (thd=0xa6717a0, table=0xa71a738, info=0xacd84654) at 5.5-cassandra/sql/sql_insert.cc:1800
      #8  0x08231845 in mysql_insert (thd=0xa6717a0, table_list=0xa7217d0, fields=..., values_list=..., update_fields=..., update_values=..., duplic=DUP_ERROR, ignore=false) at 5.5-cassandra/sql/sql_insert.cc:965
      #9  0x0824dd8a in mysql_execute_command (thd=0xa6717a0) at 5.5-cassandra/sql/sql_parse.cc:2922
      #10 0x082557bc in mysql_parse (thd=0xa6717a0, rawbuf=0xa721720 "INSERT INTO t2 VALUES(2,NULL)", length=29, parser_state=0xacd84d44) at 5.5-cassandra/sql/sql_parse.cc:5736
      #11 0x08249cfb in dispatch_command (command=COM_QUERY, thd=0xa6717a0, packet=0xa71ba99 "INSERT INTO t2 VALUES(2,NULL)", packet_length=29) at 5.5-cassandra/sql/sql_parse.cc:1055
      #12 0x082491c7 in do_command (thd=0xa6717a0) at 5.5-cassandra/sql/sql_parse.cc:794
      #13 0x08334eea in do_handle_one_connection (thd_arg=0xa6717a0) at 5.5-cassandra/sql/sql_connect.cc:1253
      #14 0x08334a35 in handle_one_connection (arg=0xa6717a0) at 5.5-cassandra/sql/sql_connect.cc:1168
      #15 0x0856065e in pfs_spawn_thread (arg=0xa74f710) at 5.5-cassandra/storage/perfschema/pfs.cc:1015
      #16 0xb76e6e32 in start_thread () from /lib/libpthread.so.0

      Query (0x8f8f8f8f): Can't read from address 0x8f8f8f8f
      Connection ID (thread ID): 2408550287
      Status: UNKNOWN

      bzr version-info

      revision-id: psergey@askmonty.org-20120928112959-jdbhsquwl15dmlab
      date: 2012-09-28 15:29:59 +0400
      build-date: 2012-09-29 00:55:02 +0400
      revno: 3530

      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';
      INSERT INTO t2 VALUES(2,NULL);
       
      # Cleanup
      DROP TABLE t2;
       

      Attachments

        Issue Links

          Activity

            People

              sanja Oleksandr Byelkin
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start 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.