Bug #108005 | MySQL Shell does not prevent about orphaned routines | ||
---|---|---|---|
Submitted: | 27 Jul 2022 23:26 | Modified: | 28 Nov 2022 11:04 |
Reporter: | Juan Arruti | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Shell Upgrade Checker | Severity: | S3 (Non-critical) |
Version: | 8.0.30 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[27 Jul 2022 23:26]
Juan Arruti
[28 Jul 2022 12:08]
MySQL Verification Team
Hello Juan Arruti, Thank you for the report and test case. Verified as described. regards, Umesh
[28 Oct 2022 10:16]
Anton Matvienko
I suppose this is pretty same issue and should be in this topic: Bug is reproduced with orphaned views (but in case of view table should be dropped, because view belongs to a database): CREATE TABLE t2 (a INT); CREATE VIEW v2 AS SELECT * FROM t2; DROP TABLE t2; Checker doesn't show any related errors, and in-place upgrade log we see: [Warning] [MY-010200] [Server] Resolving dependency for the view 'test.v1' failed. View is no more valid to use
[28 Oct 2022 10:28]
Anton Matvienko
Versions are almost the same as in original post, but for clarity: mysqlsh Ver 8.0.29 for Linux on x86_64 - for MySQL 8.0.29-21 mysqld Ver 5.7.38-41 for Linux on x86_64 mysqld Ver 8.0.28-20-debug for Linux on x86_64
[28 Nov 2022 11:04]
Edward Gilmore
Posted by developer: Added the following note to the MySQL Shell 8.0.32 release notes: MySQL Shell Upgrade Checker utility did not check for orphaned stored routines. That is, stored routines which reference non-existent schemas. As a result, the upgrade procedure could fail. As of this release, the Upgrade Checker utility checks for such orphaned routines and returns an error if they are found.