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

Oracle Compatibility: A specific stored procedure caused mysqld to crash

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Won't Do
    • 1.2.0
    • Icebox
    • MariaDB Server
    • None

    Description

      Build tested: Github source
      /root/columnstore/mariadb-columnstore-server
      commit 7db44a78066cb55b7e2ffded80e2673d16940cee
      Author: Andrew Hutchings <andrew@linuxjedi.co.uk>
      Date: Mon Sep 10 13:39:42 2018 +0100
      Revert "MDEV-11036 Add link wsrep_sst_rsync_wan -> wsrep_sst_rsync"
      This reverts commit e8a2a751212a04e835b2b03408132ecbbab52410.
      /root/columnstore/mariadb-columnstore-server/mariadb-columnstore-engine
      commit 3326be00de5f53ec365910f07a7fd882ba193d4d
      Merge: ebbeb30 5cab6c4
      Author: Andrew Hutchings <andrew@linuxjedi.co.uk>
      Date: Tue Sep 18 13:57:17 2018 +0100
      Merge pull request #565 from drrtuy/MCOL-1601
      MCOL-1601 GROUP BY now supports subqueries in HAVING.

      Testing Oracle compatibility feature, using MariaDB 10.3.9 as the reference. SQLMODE has to set as the following:

      SET SQL_MODE=ORACLE;

      The following stored procedures created fine, but mysqld crash when executing the CALL command. The same test works fine for the reference server.

      1. -----------------------------------------------------------------------
      2. Create procedure test with IN and OUT parameters
      3. -----------------------------------------------------------------------
        SET @stateName = 'Hawaii';
        SELECT @capitalName;
        SET SQL_MODE=ORACLE;
        #
        DELIMITER //
        CREATE OR REPLACE PROCEDURE getCapitalName (sp_stateName IN varchar(30), sp_capitalName OUT varchar(30))
        AS
        BEGIN
        SELECT capital INTO sp_capitalName FROM states where state=sp_stateName;
        END;
        //
        #
        DELIMITER ;
        CALL getCapitalName(@stateName, @capitalName);
        SELECT @capitalName;
        SELECT 'Procedure.2.testResult: Procedure with IN and OUT parameters' AS test, IF (@capitalName='Honolulu', 'Passed', 'Failed') AS result;

      Attachments

        Activity

          mysqld err log contains the following entries:

          2018-09-27 19:15:22 0 [Warning] /usr/local/mariadb/columnstore/mysql//bin/mysqld: unknown variable 'loose-server_audit_syslog_info=cols1umnstore-1'
          2018-09-27 19:15:22 0 [Note] Recovering after a crash using /usr/local/mariadb/columnstore/mysql/db/mysql-bin
          2018-09-27 19:15:22 0 [Note] Starting crash recovery...
          2018-09-27 19:15:22 0 [Note] Crash recovery finished.
          2018-09-27 19:15:22 0 [Note] Server socket created on IP: '::'.
          2018-09-27 19:15:22 0 [Note] Reading of all Master_info entries succeded
          2018-09-27 19:15:22 0 [Note] Added new Master_info '' to hash table
          2018-09-27 19:15:22 0 [Note] /usr/local/mariadb/columnstore/mysql//bin/mysqld: ready for connections.
          Version: '10.3.9-MariaDB-log' socket: '/usr/local/mariadb/columnstore/mysql/lib/mysql/mysql.sock' port: 3306 Columnstore 1.2.0-1

          dleeyh Daniel Lee (Inactive) added a comment - mysqld err log contains the following entries: 2018-09-27 19:15:22 0 [Warning] /usr/local/mariadb/columnstore/mysql//bin/mysqld: unknown variable 'loose-server_audit_syslog_info=cols1umnstore-1' 2018-09-27 19:15:22 0 [Note] Recovering after a crash using /usr/local/mariadb/columnstore/mysql/db/mysql-bin 2018-09-27 19:15:22 0 [Note] Starting crash recovery... 2018-09-27 19:15:22 0 [Note] Crash recovery finished. 2018-09-27 19:15:22 0 [Note] Server socket created on IP: '::'. 2018-09-27 19:15:22 0 [Note] Reading of all Master_info entries succeded 2018-09-27 19:15:22 0 [Note] Added new Master_info '' to hash table 2018-09-27 19:15:22 0 [Note] /usr/local/mariadb/columnstore/mysql//bin/mysqld: ready for connections. Version: '10.3.9-MariaDB-log' socket: '/usr/local/mariadb/columnstore/mysql/lib/mysql/mysql.sock' port: 3306 Columnstore 1.2.0-1

          This item is being closed because it was well passed the expiration date with no activity. If you suspect this was done in error please create a new ticket.

          toddstoffel Todd Stoffel (Inactive) added a comment - This item is being closed because it was well passed the expiration date with no activity. If you suspect this was done in error please create a new ticket.

          People

            Unassigned Unassigned
            dleeyh Daniel Lee (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.