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

USE fails with an illogical error if wsrep_on = 1

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 10.1.9
    • Fix Version/s: 10.1.9
    • Component/s: Galera
    • Labels:
      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

            Assignee:
            nirbhay_c Nirbhay Choubey (Inactive)
            Reporter:
            f_razzoli Federico Razzoli
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration