Uploaded image for project: 'MariaDB MaxScale'
  1. MariaDB MaxScale
  2. MXS-1191

Alter statement to a table with no create statement.

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 2.0.5
    • 2.0.6
    • avrorouter
    • None
    • 2017-32, 2017-33

    Description

      I was running MaxScale perfectly fine for about 3 days and then this error appeared. I used the provided go tool to create all avro schemas before maxscale was ever started.

      2017-03-18 00:38:08 error : Alter statement to a table with no create statement.
      2017-03-18 00:38:08 error : Fatal: MaxScale 2.0.5 received fatal signal 11. Attempting backtrace.
      2017-03-18 00:38:08 error : Commit ID: 60c69d0f7f461a1773a4e848e87fa3fcc7b0e421 System name: Linux Release string: Ubuntu 14.04.5 LTS
      2017-03-18 00:38:08 error : /usr/bin/maxscale() [0x403c80]
      2017-03-18 00:38:08 error : /lib/x86_64-linux-gnu/libpthread.so.0(+0x10330) [0x7f4072ba5330]
      2017-03-18 00:38:08 error : /lib/x86_64-linux-gnu/libc.so.6(strlen+0x2a) [0x7f407247c9da]
      2017-03-18 00:38:08 error : /usr/lib/x86_64-linux-gnu/maxscale/libavrorouter.so(+0x20381) [0x7f406c9ff381]
      2017-03-18 00:38:08 error : /usr/lib/x86_64-linux-gnu/maxscale/libavrorouter.so(+0x2094c) [0x7f406c9ff94c]
      2017-03-18 00:38:08 error : /usr/lib/x86_64-linux-gnu/maxscale/libavrorouter.so(+0x20a29) [0x7f406c9ffa29]
      2017-03-18 00:38:08 error : /usr/lib/x86_64-linux-gnu/maxscale/libavrorouter.so(+0x20739) [0x7f406c9ff739]
      2017-03-18 00:38:08 error : /usr/lib/x86_64-linux-gnu/maxscale/libavrorouter.so(+0x209f9) [0x7f406c9ff9f9]
      2017-03-18 00:38:08 error : /usr/lib/x86_64-linux-gnu/maxscale/libavrorouter.so(json_vpack_ex+0x104) [0x7f406ca00fe5]
      2017-03-18 00:38:08 error : /usr/lib/x86_64-linux-gnu/maxscale/libavrorouter.so(json_pack_ex+0xaa) [0x7f406ca010f9]
      2017-03-18 00:38:08 error : /usr/lib/x86_64-linux-gnu/maxscale/libavrorouter.so(json_new_schema_from_table+0x46b) [0x7f406c9f3784]
      2017-03-18 00:38:08 error : /usr/lib/x86_64-linux-gnu/maxscale/libavrorouter.so(handle_table_map_event+0x152) [0x7f406c9f6014]
      2017-03-18 00:38:08 error : /usr/lib/x86_64-linux-gnu/maxscale/libavrorouter.so(avro_read_all_events+0x880) [0x7f406c9f99a3]
      2017-03-18 00:38:08 error : /usr/lib/x86_64-linux-gnu/maxscale/libavrorouter.so(converter_func+0xbd) [0x7f406c9f0360]
      2017-03-18 00:38:08 error : /usr/lib/x86_64-linux-gnu/maxscale/libmaxscale-common.so.1.0.0(+0x4237e) [0x7f407305437e]
      2017-03-18 00:38:08 error : /lib/x86_64-linux-gnu/libpthread.so.0(+0x8184) [0x7f4072b9d184]
      2017-03-18 00:38:08 error : /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7f40724ee37d]
      2017-03-18 00:38:08 info : Starting log flushing to disk.

      Let me know what else would be helpful to provide to debug.

      Attachments

        Issue Links

          Activity

            markus makela markus makela added a comment -

            I've build packages from commit a418387d0a8fa2372f78eb2fe351122c6b3ab024: http://max-tst-01.mariadb.com/ci-repository/2.0-apr20/mariadb-maxscale/

            These packages contain the fixes for the handling of ALTER TABLE statements that can cause crashes.

            markus makela markus makela added a comment - I've build packages from commit a418387d0a8fa2372f78eb2fe351122c6b3ab024 : http://max-tst-01.mariadb.com/ci-repository/2.0-apr20/mariadb-maxscale/ These packages contain the fixes for the handling of ALTER TABLE statements that can cause crashes.
            geesu Josh Becker added a comment -

            Just installed that package and receive the following error on startup (I suspect it wasn't compiled with the avrorouter?):

            2017-04-24 13:23:19 error : Unable to find library for module: avrorouter. Module dir: /usr/lib/x86_64-linux-gnu/maxscale
            2017-04-24 13:23:19 error : Unable to load Router module "avrorouter".
            Ensure that libavrorouter.so exists in one of the following directories :

            • /usr/lib/x86_64-linux-gnu/maxscale
              2017-04-24 13:23:19 error : Service creation failed.
              2017-04-24 13:23:19 notice : Initialise binlog router module V2.0.0.
              2017-04-24 13:23:19 notice : Loaded module binlogrouter: V2.0.0 from /usr/lib/x86_64-linux-gnu/maxscale/libbinlogrouter.so
              2017-04-24 13:23:19 notice : Initialise CLI router module V1.0.0.
              2017-04-24 13:23:19 notice : Loaded module cli: V1.0.0 from /usr/lib/x86_64-linux-gnu/maxscale/libcli.so
              2017-04-24 13:23:19 error : 1 errors were encountered while processing the configuration file '/etc/maxscale.cnf'.
              2017-04-24 13:23:19 error : Failed to open, read or process the MaxScale configuration file /etc/maxscale.cnf. Exiting.
              2017-04-24 13:23:19 info : Starting log flushing to disk.
              2017-04-24 13:23:19 MaxScale is shut down.
            geesu Josh Becker added a comment - Just installed that package and receive the following error on startup (I suspect it wasn't compiled with the avrorouter?): 2017-04-24 13:23:19 error : Unable to find library for module: avrorouter. Module dir: /usr/lib/x86_64-linux-gnu/maxscale 2017-04-24 13:23:19 error : Unable to load Router module "avrorouter". Ensure that libavrorouter.so exists in one of the following directories : /usr/lib/x86_64-linux-gnu/maxscale 2017-04-24 13:23:19 error : Service creation failed. 2017-04-24 13:23:19 notice : Initialise binlog router module V2.0.0. 2017-04-24 13:23:19 notice : Loaded module binlogrouter: V2.0.0 from /usr/lib/x86_64-linux-gnu/maxscale/libbinlogrouter.so 2017-04-24 13:23:19 notice : Initialise CLI router module V1.0.0. 2017-04-24 13:23:19 notice : Loaded module cli: V1.0.0 from /usr/lib/x86_64-linux-gnu/maxscale/libcli.so 2017-04-24 13:23:19 error : 1 errors were encountered while processing the configuration file '/etc/maxscale.cnf'. 2017-04-24 13:23:19 error : Failed to open, read or process the MaxScale configuration file /etc/maxscale.cnf. Exiting. 2017-04-24 13:23:19 info : Starting log flushing to disk. 2017-04-24 13:23:19 MaxScale is shut down.
            markus makela markus makela added a comment -

            Yes, apologies for this mistake, we had some problems which we solved since then. I've build a new set of packages where the avrorouter is now properly built: http://max-tst-01.mariadb.com/ci-repository/2.0-may8/mariadb-maxscale/

            markus makela markus makela added a comment - Yes, apologies for this mistake, we had some problems which we solved since then. I've build a new set of packages where the avrorouter is now properly built: http://max-tst-01.mariadb.com/ci-repository/2.0-may8/mariadb-maxscale/
            markus makela markus makela added a comment -

            I've created packages from commit 5a0d2c54bd564688af44695067953ac16a09ee85 which fixes a few bugs. The packages can be found here: http://max-tst-01.mariadb.com/ci-repository/2.0-may15/mariadb-maxscale/

            Please test these packages and see if they fix your problems.

            markus makela markus makela added a comment - I've created packages from commit 5a0d2c54bd564688af44695067953ac16a09ee85 which fixes a few bugs. The packages can be found here: http://max-tst-01.mariadb.com/ci-repository/2.0-may15/mariadb-maxscale/ Please test these packages and see if they fix your problems.
            markus makela markus makela added a comment -

            Closing as fixed. Please try the packages and if the problem persists, reopen this issue.

            markus makela markus makela added a comment - Closing as fixed. Please try the packages and if the problem persists, reopen this issue.

            People

              markus makela markus makela
              geesu Josh Becker
              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.