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

Inconsistent warning, only with CONNECT

    Details

      Description

      MariaDB [xxx]> LOCK TABLE m WRITE;
      Query OK, 0 rows affected (0.00 sec)
      
      MariaDB [xxx]> START TRANSACTION;
      Query OK, 0 rows affected (0.00 sec)
      
      MariaDB [xxx]> LOCK TABLE t WRITE;
      Query OK, 0 rows affected (0.00 sec)
      
      MariaDB [xxx]> START TRANSACTION;
      Query OK, 0 rows affected, 1 warning (0.00 sec)
      
      Warning (Code 1105): external_lock: unexpected command 59
      

      The table `m` is MyISAM but, as far as I can tell, no warning occurs with other storage engines. The table `t` is CONNECT, which seems to be the only engine that issues a warning.

      I report this behavior because you probably want to be aware about inconsistencies between engines. But, to be honest, I prefer CONNECT's behavior: when a trx starts, table locks are lost, and this is something I want to know. I hope that a more informative warning will be issued, no matter which engine I am using.

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            elenst Elena Stepanova added a comment -

            Hi Federico,

            Thanks. Inconsistency is always suspicious, e.g. as soon as I started verifying it, I got this: MDEV-6994.

            And of course if the warning happens to be intentional, it should come with a better message.

            Show
            elenst Elena Stepanova added a comment - Hi Federico, Thanks. Inconsistency is always suspicious, e.g. as soon as I started verifying it, I got this: MDEV-6994 . And of course if the warning happens to be intentional, it should come with a better message.
            Hide
            bertrandop Olivier Bertrand added a comment -

            I can easily suppress this warning. Changing it for a more informative warning should done only according to what other engines do.

            Show
            bertrandop Olivier Bertrand added a comment - I can easily suppress this warning. Changing it for a more informative warning should done only according to what other engines do.
            Hide
            bertrandop Olivier Bertrand added a comment -

            Warning suppressed

            Show
            bertrandop Olivier Bertrand added a comment - Warning suppressed

              People

              • Assignee:
                bertrandop Olivier Bertrand
                Reporter:
                f_razzoli Federico Razzoli
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour
                  1h