[MDEV-8437] plugin variables conflict with bootstrap (debian mariadb-server-10.0.postinst) Created: 2015-07-09 Updated: 2017-09-22 Resolved: 2015-11-06 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Packaging, Platform Debian |
| Affects Version/s: | 5.5, 10.0, 10.1 |
| Fix Version/s: | 10.1.9 |
| Type: | Bug | Priority: | Major |
| Reporter: | Daniel Black | Assignee: | Sergey Vojtovich |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | packaging, plugins | ||
| Environment: |
debian wheezy x86_64 with QUERY_RESPONSE_TIME plugin installed |
||
| Issue Links: |
|
||||||||||||||||||||
| Sprint: | 10.1.9-1, 10.1.9-2 | ||||||||||||||||||||
| Description |
|
Having a plugin variable in my.cnf, like query_response_time_stats=ON from the query response time plugin, prevents a mysql upgrade.
using:
so failure is where it tried to bootstrap the server. The error log shows the complaint about an unidentified server variable, understandable when no plugins are loaded.
Removing the query_response_time_stats=ON from the config file was able to package configure and complete the server upgrade. I also hit this on 10.0.19 on a RHEL server too. Possible solutions: -plugins section (probably too ugly) |
| Comments |
| Comment by Elena Stepanova [ 2015-07-11 ] | ||
|
The (a) solution raises the question why server is not allowed to ignore unknown variables at the first place. If it's considered too dangerous, probably for bootstrap it is too. That said, both (a) and (b) are still viable. Assigning to serg for a decision. | ||
| Comment by Daniel Black [ 2015-07-13 ] | ||
|
as a limited version of a), could ignore variables beginning with the select name from mysql.plugin name while in --bootstrap mode. | ||
| Comment by Daniel Black [ 2015-08-07 ] | ||
|
note - this actually prevents upgrades and its very hard from the description of the package failure to trace it back to the original cause. | ||
| Comment by Sergey Vojtovich [ 2015-11-03 ] | ||
|
serg, please review 2 patches for this bug. | ||
| Comment by Sergei Golubchik [ 2015-11-05 ] | ||
|
svoj, these patches are ok, but as far as I can see they don't fix the reported issue. | ||
| Comment by Sergey Vojtovich [ 2015-11-06 ] | ||
|
Fixed by removing failing command from postinst script. | ||
| Comment by Pavel Katiushyn [ 2017-09-22 ] | ||
|
It does not seem that the bug is fixed.
| ||
| Comment by Sergey Vojtovich [ 2017-09-22 ] | ||
|
Katiushyn, did you get the above from Debian postinst script? | ||
| Comment by Pavel Katiushyn [ 2017-09-22 ] | ||
|
No. I had postinst script error with MariaDB 10.1.22 or 10.1.21. And just tried to start "mysqld --bootstrap" with 10.1.26. |