MYSQL - Fix issue where 'alter ignore' isn't supported in MySQL
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
slurm-llnl (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Please include this patch in https:/
Attached below for convenience only, DO NOT attribute the patch to me.
Quote from the patch required.
/* In MySQL 5.7.4 we lost the ability to run 'alter ignore'. This was
* needed when converting old tables to new schemas. If people convert
* in the future from an older version of Slurm that needed the ignore
* to work they will have to downgrade mysql to <= 5.7.3 to make things
* work correctly or manually edit the database to get things to work.
*/
Details: https:/
[Impact]
* Anyone using SLURM in combination with MySQL on Xenial.
* slurmdbd uses mysql commands that are no longer valid and will fail to start.
[Test Case]
* Build yourself a SLURM cluster on Trusty. You can probably get away with only installing slurm-llnl-
* Use MySQL 5.5 and set 'StorageType = accounting_
You may use the following files to help test if required:
- http://
- http://
* I did the following as a superficial test:
git clone https:/
cd slurm
git show cca1616b1a1aef9
cd ../
apt-get source slurm-llnl
cd slurm-llnl*
quilt new fix_alter_
quilt add auxdir/
patch -p1 < ~/slurm_mysql.patch
quilt header -e
quilt refresh
debchange -i
debuild -us -uc -i -I
* add to my own repositories and since I incremented the version number my version gets installed automatically.
* upgrade the slurmdbd server from Trusty to Xenial
* On reboot you should see that the 'slurmdbd.service' is running. If you do not apply this patch it will not start. Error message can be seen by running 'slurmdbd -D -v' if the patch is not applied.
[Regression Potential]
* I have no idea, I am not a SLURM dev. I'm just a guy that runs a SLURM cluster.
* Though, I think the risk is very low since this fixes a bug that was fixed by the SLURM devs.
The attachment "Commit: cca1616b1a1aef9 fe049e326a8936d 006963b21b | Fix issue where 'alter ignore' isn't supported in MySQL anymore." seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]