Skip to content

Commit

Permalink
Merge pull request #6947 from fstagni/81_removeMySQL57
Browse files Browse the repository at this point in the history
[8.1] removed compatibility test for MySQL 5.7
  • Loading branch information
fstagni committed Mar 29, 2023
2 parents c6a5c33 + 337621c commit 31cec63
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ jobs:
matrix:
# TEST_NAME is a dummy variable used to make it easier to read the web interface
include:
- TEST_NAME: "MySQL 5.7"
ARGS: MYSQL_VER=mysql:5.7
- TEST_NAME: "MariaDB 10.6, opensearch:2.1.0"
ARGS: MYSQL_VER=mariadb:10.6.3 ES_VER=opensearchproject/opensearch:2.1.0
- TEST_NAME: "HTTPS"
Expand Down
1 change: 0 additions & 1 deletion docs/source/AdministratorGuide/ExternalsSupport/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ MySQL versions

MySQL is a hard dependency for all DIRAC servers installations. Supported versions:

- MySQL 5.7
- MySQL 8.0
- MariaDB versions "compatible" with the above MySQL versions.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ make ``runsvdir-start`` executable and (re)start ``runsvdir``:
Install MySQL
-------------

First of all, remove the existing (outdated) installation, and install all the necessary RPMs for MySQL 5.7:
First of all, remove the existing (outdated) installation, and install all the necessary RPMs for MySQL 8.0:

.. literalinclude:: basicTutoSetup.sh
:language: bash
Expand Down
10 changes: 5 additions & 5 deletions docs/source/AdministratorGuide/Tutorials/basicTutoSetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ systemctl start runsvdir-start
yum remove -y $(rpm -qa | grep -i -e mysql -e mariadb | paste -sd ' ') || echo "MySQL is not yet installed"
rm -rf /var/lib/mysql/*
yum install -y \
https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-community-devel-5.7.25-1.el7.x86_64.rpm \
https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-community-server-5.7.25-1.el7.x86_64.rpm \
https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-community-client-5.7.25-1.el7.x86_64.rpm \
https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-community-libs-5.7.25-1.el7.x86_64.rpm \
https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-community-common-5.7.25-1.el7.x86_64.rpm
https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-community-devel-8.0.32-1.el7.x86_64.rpm \
https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-community-server-8.0.32-1.el7.x86_64.rpm \
https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-community-client-8.0.32-1.el7.x86_64.rpm \
https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-community-libs-8.0.32-1.el7.x86_64.rpm \
https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-community-common-8.0.32-1.el7.x86_64.rpm
# END mysqlInstall

# START mysqlStart
Expand Down
2 changes: 1 addition & 1 deletion src/DIRAC/DataManagementSystem/DB/FTS3DB.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ def updateFileStatus(self, fileStatusDict, ftsGUID=None):
# This here is inneficient as we update every files, even if it did not change, and we commit every time.
# It would probably be best to update only the files that changed.
# However, commiting every time is the recommendation of MySQL
# (https://dev.mysql.com/doc/refman/5.7/en/innodb-deadlocks-handling.html)
# (https://dev.mysql.com/doc/refman/8.0/en/innodb-deadlocks-handling.html)

for fileID, valueDict in fileStatusDict.items():
session = self.dbSession()
Expand Down

0 comments on commit 31cec63

Please sign in to comment.