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

USE fails with an illogical error if wsrep_on = 1

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Cannot Reproduce
    • 10.1.9
    • 10.1.9
    • Galera
    • None

    Description

      On a fresh, not still connected node:

      MariaDB [db2]> SET GLOBAL wsrep_on := 1;
      Query OK, 0 rows affected (0.00 sec)
       
      MariaDB [db2]> CREATE DATABASE x;
      Query OK, 1 row affected (0.00 sec)
       
      MariaDB [db2]> USE x;
      ERROR 1047 (08S01): WSREP has not yet prepared node for application use
      MariaDB [db2]> CREATE TABLE x.t (a INT);
      Query OK, 0 rows affected (0.24 sec)
       
      MariaDB [db2]> INSERT INTO x.t VALUES (1);
      Query OK, 1 row affected (0.00 sec)
       
      MariaDB [db2]> SELECT * FROM x.t;
      +------+
      | a    |
      +------+
      |    1 |
      +------+
      1 row in set (0.00 sec)
       
      MariaDB [db2]> DROP TABLE x.t;
      Query OK, 0 rows affected (0.07 sec)
       
      MariaDB [db2]> DROP DATABASE x;
      Query OK, 0 rows affected (0.01 sec)

      It seems that I can run any command except for USE (which seems to me a harmless command...).

      Attachments

        Activity

          People

            nirbhay_c Nirbhay Choubey (Inactive)
            f_razzoli Federico Razzoli
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.