Uploaded image for project: 'MariaDB ColumnStore'
  1. MariaDB ColumnStore
  2. MCOL-1959

mxs_adapter assertion crash on multi table stream

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.2.1
    • 1.2.2
    • ?
    • None
    • RHEL 7

    Description

      Getting crash when trying to ingest two tables using multi-streaming option of mxs_adapter

      [ec2-user@ip-172-31-38-194 ~]$ mxs_adapter -c /etc/Columnstore.xml -u cdcuser -p cdc -h 127.0.0.1 -P 4001 -r 2 -d -n -z -f stream-table-list
      2018-11-23 17:41:17 [main] Started thread 0x10ea2c0
      2018-11-23 17:41:17 [main] Started thread 0x10ea710
      2018-11-23 17:41:17 [main] Started 2 threads
      2018-11-23 17:41:17 [test.t3] Requesting data for table: test.t3
      2018-11-23 17:41:17 [test.t2] Requesting data for table: test.t2
      2018-11-23 17:41:17 [test.t2] Continuing from GTID: 0-1-16:4
      2018-11-23 17:41:17 [test.t2] Skipped 7 rows
      mxs_adapter: /src/maxscale-cdc-adapter/src/mxs_adapter.cpp:430: void transformRow(UContext&, CDC::SRow&): Assertion `ctx->update_before' failed.
      2018-11-23 17:41:17 [test.t2] Received fatal signal 6
      mxs_adapter[0x42c5f5]
      /lib64/libpthread.so.0(+0xf680)[0x7fc08fb14680]
      /lib64/libc.so.6(gsignal+0x37)[0x7fc08e463207]
      /lib64/libc.so.6(abort+0x148)[0x7fc08e4648f8]
      /lib64/libc.so.6(+0x2f026)[0x7fc08e45c026]
      /lib64/libc.so.6(+0x2f0d2)[0x7fc08e45c0d2]
      mxs_adapter(_Z12transformRowRSt10unique_ptrI7ContextSt14default_deleteIS0_EERNSt3tr110shared_ptrIN3CDC3RowEEE+0x3a9)[0x41cbb9]
      mxs_adapter(_Z12processTableRSt10unique_ptrI7ContextSt14default_deleteIS0_EE+0xfd)[0x41d37d]
      mxs_adapter(_Z11streamTableSsSs+0x20c)[0x41d9ec]
      mxs_adapter(_ZNSt6thread5_ImplISt12_Bind_simpleIFPFvSsSsESsSsEEE6_M_runEv+0x37)[0x41f0b7]
      /lib64/libstdc++.so.6(+0xb5070)[0x7fc08edc7070]
      /lib64/libpthread.so.0(+0x7dd5)[0x7fc08fb0cdd5]
      /lib64/libc.so.6(clone+0x6d)[0x7fc08e52bb3d]
      Aborted
      

      Table definition on MariaDB Server

      MariaDB [test]> show create table t2
          -> ;
      +-------+-------------------------------------------------------------------------------------------------------------------+
      | Table | Create Table                                                                                                      |
      +-------+-------------------------------------------------------------------------------------------------------------------+
      | t2    | CREATE TABLE `t2` (
        `a` int(11) DEFAULT NULL,
        `b` int(11) DEFAULT NULL
      ) ENGINE=InnoDB DEFAULT CHARSET=latin1 |
      +-------+-------------------------------------------------------------------------------------------------------------------+
      1 row in set (0.000 sec)
      MariaDB [test]> select * from t2;
      +------+------+
      | a    | b    |
      +------+------+
      |    1 |    1 |
      |    1 |    2 |
      |    1 |    3 |
      |    1 |    4 |
      |    1 |    5 |
      |    1 |    6 |
      |    1 |    7 |
      |    1 |    8 |
      |    1 |    9 |
      |    1 |   10 |
      |    2 |   11 |
      |    2 |   12 |
      |    2 |   13 |
      |    2 |   14 |
      +------+------+
      14 rows in set (0.000 sec)
       
      MariaDB [test]> show create table t3;
      +-------+-------------------------------------------------------------------------------------------------------------------+
      | Table | Create Table                                                                                                      |
      +-------+-------------------------------------------------------------------------------------------------------------------+
      | t3    | CREATE TABLE `t3` (
        `b` int(11) DEFAULT NULL,
        `c` int(11) DEFAULT NULL
      ) ENGINE=InnoDB DEFAULT CHARSET=latin1 |
      +-------+-------------------------------------------------------------------------------------------------------------------+
      1 row in set (0.000 sec)
      MariaDB [test]> select * from t3;
      Empty set (0.000 sec)
      
      

      Table definition on MariaDB ColumnStore

      MariaDB [test]> show create table t2;
      +-------+------------------------------------------------------------------------------------------------------------------------+
      | Table | Create Table                                                                                                           |
      +-------+------------------------------------------------------------------------------------------------------------------------+
      | t2    | CREATE TABLE `t2` (
        `a` int(11) DEFAULT NULL,
        `b` int(11) DEFAULT NULL
      ) ENGINE=Columnstore DEFAULT CHARSET=latin1 |
      +-------+------------------------------------------------------------------------------------------------------------------------+
      1 row in set (0.000 sec)
       
      MariaDB [test]> show create table t3;
      +-------+------------------------------------------------------------------------------------------------------------------------+
      | Table | Create Table                                                                                                           |
      +-------+------------------------------------------------------------------------------------------------------------------------+
      | t3    | CREATE TABLE `t3` (
        `b` int(11) DEFAULT NULL,
        `c` int(11) DEFAULT NULL
      ) ENGINE=Columnstore DEFAULT CHARSET=latin1 |
      +-------+------------------------------------------------------------------------------------------------------------------------+
      1 row in set (0.000 sec)
      

      Attachments

        Issue Links

          Activity

            People

              winstone Zdravelina Sokolovska (Inactive)
              dshjoshi Dipti Joshi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.