Skip to content

Update mysql java connector version to 8.4.0 (matching version for MySQL 8.4)#12640

Open
sureshanaparti wants to merge 5 commits intoapache:4.20from
shapeblue:mysql-8.4-support
Open

Update mysql java connector version to 8.4.0 (matching version for MySQL 8.4)#12640
sureshanaparti wants to merge 5 commits intoapache:4.20from
shapeblue:mysql-8.4-support

Conversation

@sureshanaparti
Copy link
Contributor

@sureshanaparti sureshanaparti commented Feb 13, 2026

Description

This PR updates mysql java connector version to 8.4.0 (matching version for MySQL 8.4). It's better to use connector version matching with the server family for full support and stability.

Doc PR: apache/cloudstack-documentation#629

MySQL 8.0 is EOL April 2026.

References:
MySQL 8.4 Release Notes - https://dev.mysql.com/doc/relnotes/mysql/8.4/en/
MySQL 8.4 Deprecation/Removal - https://dev.mysql.com/doc/relnotes/mysql/8.4/en/news-8-4-0.html#mysqld-8-4-0-deprecation-removal

Authentication Plugins:
caching_sha2_password is the default authentication plugin from MySQL 8.4. mysql_native_password authentication plugin is deprecated as of MySQL 8.0.34, disabled by default in MySQL 8.4, and removed as of MySQL 9.0.0.

caching_sha2_password - https://dev.mysql.com/doc/refman/8.4/en/caching-sha2-pluggable-authentication.html
mysql_native_password - https://dev.mysql.com/doc/refman/8.4/en/native-pluggable-authentication.html

MySQL EOL - https://endoflife.date/mysql

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • Build/CI
  • Test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

How did you try to break this feature and the system with this change?

@sureshanaparti
Copy link
Contributor Author

@blueorangutan package

@sureshanaparti sureshanaparti linked an issue Feb 13, 2026 that may be closed by this pull request
@blueorangutan
Copy link

@sureshanaparti a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@codecov
Copy link

codecov bot commented Feb 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 16.25%. Comparing base (e22f842) to head (097cd1e).
⚠️ Report is 13 commits behind head on 4.20.

Additional details and impacted files
@@            Coverage Diff            @@
##               4.20   #12640   +/-   ##
=========================================
  Coverage     16.25%   16.25%           
- Complexity    13420    13425    +5     
=========================================
  Files          5662     5662           
  Lines        500144   500167   +23     
  Branches      60729    60740   +11     
=========================================
+ Hits          81300    81325   +25     
+ Misses       409760   409755    -5     
- Partials       9084     9087    +3     
Flag Coverage Δ
uitests 4.15% <ø> (-0.01%) ⬇️
unittests 17.11% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@blueorangutan
Copy link

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 16828

@sureshanaparti
Copy link
Contributor Author

@blueorangutan test

@blueorangutan
Copy link

@sureshanaparti a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests

@blueorangutan
Copy link

[SF] Trillian Build Failed (tid-15451)

@blueorangutan
Copy link

[SF] Trillian Build Failed (tid-15452)

@blueorangutan
Copy link

[SF] Trillian Build Failed (tid-15456)

@sureshanaparti
Copy link
Contributor Author

@blueorangutan package

@blueorangutan
Copy link

@sureshanaparti a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan
Copy link

[SF] Trillian test result (tid-15491)
Environment: kvm-ol8 (x2), zone: Advanced Networking with Mgmt server ol8
Total time taken: 52344 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr12640-t15491-kvm-ol8.zip
Smoke tests completed. 141 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File

@DaanHoogland
Copy link
Contributor

@sureshanaparti so without these changes ACS won’t work with mysql 8.4 and 8.0 is to be end of life in two months. Should we merge? cc @abh1sar @harikrishna-patnala @nvazquez ?

@abh1sar
Copy link
Contributor

abh1sar commented Feb 18, 2026

@sureshanaparti so without these changes ACS won’t work with mysql 8.4 and 8.0 is to be end of life in two months. Should we merge? cc @abh1sar @harikrishna-patnala @nvazquez ?

@sureshanaparti can clarify, but I think this PR is just for testing and verification. All the tests passed with mysql8.4 on kvm.

@sureshanaparti
Copy link
Contributor Author

@sureshanaparti so without these changes ACS won’t work with mysql 8.4 and 8.0 is to be end of life in two months. Should we merge? cc @abh1sar @harikrishna-patnala @nvazquez ?

@DaanHoogland @abh1sar I think, mysql 8.4 should work with the earlier java connector as well, but it's better to keep at least the major version in sync for the connector to avoid any issues later (else we can update it when any issues are found). I've triggered smoke tests with mysql 8.4 with 4.20 health check PR to confirm if it works with earlier connector or not, let's wait for the results.

@sureshanaparti
Copy link
Contributor Author

@sureshanaparti so without these changes ACS won’t work with mysql 8.4 and 8.0 is to be end of life in two months. Should we merge? cc @abh1sar @harikrishna-patnala @nvazquez ?

@DaanHoogland @abh1sar I think, mysql 8.4 should work with the earlier java connector as well, but it's better to keep at least the major version in sync for the connector to avoid any issues later (else we can update it when any issues are found). I've triggered smoke tests with mysql 8.4 with 4.20 health check PR to confirm if it works with earlier connector or not, let's wait for the results.

@DaanHoogland @abh1sar smoke tests passed with mysql 8.4 with the existing mysql java connector, check the test results here: #10668 (comment).

[root@pr10668-t15497-kvm-ol8-mgmt1 ~]# mysql --version
mysql  Ver 8.4.7 for Linux on x86_64 (Source distribution)
[root@pr10668-t15497-kvm-ol8-mgmt1 ~]# 
[root@pr10668-t15497-kvm-ol8-mgmt1 ~]# ls -lrt /usr/share/cloudstack-management/lib/mysql-connector-j*
-rw-r--r--. 1 root root 2481560 Feb 13 15:51 /usr/share/cloudstack-management/lib/mysql-connector-j-8.0.33.jar
[root@pr10668-t15497-kvm-ol8-mgmt1 ~]# 
[root@pr10668-t15497-kvm-ol8-mgmt1 ~]# ls -lrt /usr/share/cloudstack-usage/lib/mysql-connector-j*
-rw-r--r--. 1 root root 2481560 Feb 13 15:51 /usr/share/cloudstack-usage/lib/mysql-connector-j-8.0.33.jar
[root@pr10668-t15497-kvm-ol8-mgmt1 ~]#
[root@pr10668-t15497-kvm-ol8-mgmt1 ~]# pip3 show mysql-connector-python
Name: mysql-connector-python
Version: 8.0.31
Summary: MySQL driver written in Python
Home-page: http://dev.mysql.com/doc/connector-python/en/index.html
Author: Oracle and/or its affiliates
Author-email: 
License: GNU GPLv2 (with FOSS License Exception)
Location: /usr/local/lib/python3.6/site-packages
Requires: protobuf
[root@pr10668-t15497-kvm-ol8-mgmt1 ~]#
mysql> SELECT * FROM cloud.version ORDER BY id DESC LIMIT 3;
+----+----------+---------------------+----------+
| id | version  | updated             | step     |
+----+----------+---------------------+----------+
| 47 | 4.20.3.0 | 2026-02-18 12:47:31 | Complete |
| 46 | 4.20.1.0 | 2026-02-18 12:47:31 | Complete |
| 45 | 4.20.0.0 | 2026-02-18 12:47:29 | Complete |
+----+----------+---------------------+----------+
3 rows in set (0.00 sec)

@blueorangutan
Copy link

[SF] Trillian test result (tid-15518)
Environment: kvm-ol9 (x2), zone: Advanced Networking with Mgmt server ol9
Total time taken: 53272 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr12640-t15518-kvm-ol9.zip
Smoke tests completed. 141 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File

Copy link
Contributor

@vladimirpetrov vladimirpetrov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM based on manual testing. Tested upgrades from mysql 8.0 with Oracle Linux 8, 9, Rocky Linux 8, 9, Alma Linux 8, 9 and Ubuntu 24 and fresh install with Oracle Linux 8 and 9.

@sureshanaparti sureshanaparti changed the title MySQL 8.4 support Update mysql java connector version to 8.4.0 (matching version for MySQL 8.4) Feb 26, 2026
@sureshanaparti sureshanaparti marked this pull request as ready for review February 26, 2026 09:46
@sureshanaparti
Copy link
Contributor Author

@blueorangutan package

@blueorangutan
Copy link

@sureshanaparti a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan
Copy link

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 17009

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MySQL 8.4 support

6 participants