[MDEV-17812] Use MariaDB in error messages instead of MySQL Created: 2018-11-23 Updated: 2020-04-08 Resolved: 2020-04-08 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Tests |
| Fix Version/s: | 10.5.3 |
| Type: | Task | Priority: | Major |
| Reporter: | Rasmus Johansson (Inactive) | Assignee: | Rasmus Johansson (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||||||||||
| Description |
|
Error messages should be changed to mention MariaDB instead of MySQL The error messages are found in sql-common/errmsg.c |
| Comments |
| Comment by Ralf Gebhardt [ 2019-12-12 ] | ||||||||||||||||||||||||
|
ratzpo can you work on this for 10.5 now? | ||||||||||||||||||||||||
| Comment by Rasmus Johansson (Inactive) [ 2020-03-29 ] | ||||||||||||||||||||||||
|
elenst Do you want to review this? It includes changes to error files and [test].result files because of the changed error text. The latest commit is 46ab6b1. I pushed it also to bb-10.5-release to get it tested a little broader. | ||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2020-03-31 ] | ||||||||||||||||||||||||
|
Hi ratzpo, Here are my notes. More error message files There is at least one more error message file, the one in the connector: libmariadb/libmariadb/ma_errmsg.c
Maybe you changed it and the new submodule version is supposed to get pulled with the server, but it didn't for me when I cloned your branch. Suppressions There are still suppressions in MTR files which reference MySQL. Possibly many of those suppressions aren't needed at all, but removing them should a separate task. Meanwhile they need to be synchronized with the error messages, as some of them can be there to prevent irrelevant sporadic failures (and thus might not show up in test results right away).
Disabled tests Some disabled tests still have the old messages. It's not critical, as whoever re-enables them is supposed to check the result file, but probably it makes sense to update them when possible and easy. Of course it's doesn't concern tests which are disabled because they are MySQL-specific, but remain in MariaDB code on whatever reason.
Error messages inside the code There are error messages which are composed in the code directly, particularly (but probably not only) in replication. At the very least they can appear in error logs or stderr, but possibly they can also be added to SQL errors with generic patterns, like errors passed through from an engine. Examples:
and then the corresponding test results will have to be updated, e.g.
Generic vs specific As I understand, this change
comes from the discussion that the client cannot know which server it connects to. It is true, but then it should be the same for all hardcoded client errors referencing the server – "Unknown MariaDB server host", "Lost connection to MariaDB server during query", etc. wlad, what do you think? (since you raised this inaccuracy first, if I remember correctly) TokuDB (side note) There are probably many tests under TokuDB which will start failing; since we don't build TokuDB anymore, it isn't important. However, it raises the question whether it's okay to have in the code tests which will inevitably fail. | ||||||||||||||||||||||||
| Comment by Vladislav Vaintroub [ 2020-03-31 ] | ||||||||||||||||||||||||
|
Yes, I think it is better not to use "MySQL" or "MariaDB" server in the error message, unless it is absolutely known it is MySQL or MariaDB or Percona, or something emulating one of those in AWS or Azure. Also stuff like "execute mysqladmin flush-hosts" does not have to remain in this form. FLUSH HOSTS is a normal command, which can be send via normal client´, or not? | ||||||||||||||||||||||||
| Comment by Rasmus Johansson (Inactive) [ 2020-04-08 ] | ||||||||||||||||||||||||
|
There has been pushes relating to this issue: | ||||||||||||||||||||||||
| Comment by Rasmus Johansson (Inactive) [ 2020-04-08 ] | ||||||||||||||||||||||||
|
From elenst comment the following parts have been turned into their own issues:
|