Uh oh!
There was an error while loading. Please reload this page.
Fix foreign key constraints and the mysql procedure that is used - #7381
Conversation
e61520b to
22948a3Compare22948a3 to
9292d3fCompareharikrishna-patnala
commented
Mar 30, 2023
@blueorangutan package |
blueorangutan
commented
Mar 30, 2023
@harikrishna-patnala a Jenkins job has been kicked to build packages. It will be bundled with SystemVM template(s). I'll keep you posted as I make progress. |
Uh oh!
There was an error while loading. Please reload this page.
9292d3f to
601a360Compare601a360 to
43b7eb1Compareblueorangutan
commented
Mar 30, 2023
Packaging result: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 5809 |
weizhouapache
left a comment
There was a problem hiding this comment.
@harikrishna-patnala
we also need to remove the codes in 41720to41800.sql
otherwise, the users who use mysql 5.6/5.7 will still fail to upgrade to 4.18.1.0 due to same error in #7358
Uh oh!
There was an error while loading. Please reload this page.
Codecov Report
@@ Coverage Diff @@## 4.18 #7381 +/- ##
=========================================
Coverage 12.98% 12.99% - Complexity 8984 8996 +12
=========================================
Files 2716 2716 Lines 256329 256390 +61 Branches 39974 39984 +10 =========================================
+ Hits 33275 33307 +32 - Misses 218892 218915 +23 - Partials 4162 4168 +6
... and 5 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
You have successfully added a new SonarCloud configuration ``. As part of the setup process, we have scanned this repository and found no existing alerts. In the future, you will see all code scanning alerts on the repository Security tab. |
harikrishna-patnala
commented
Mar 30, 2023
Yes, I'll remove it 41720to41800.sql file |
harikrishna-patnala
commented
Mar 31, 2023
@blueorangutan package |
blueorangutan
commented
Mar 31, 2023
@harikrishna-patnala a Jenkins job has been kicked to build packages. It will be bundled with SystemVM template(s). I'll keep you posted as I make progress. |
harikrishna-patnala
commented
Mar 31, 2023
@blueorangutan package |
blueorangutan
commented
Mar 31, 2023
@harikrishna-patnala a 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. |
weizhouapache
commented
Mar 31, 2023
@harikrishna-patnala Refer to the following code block |
blueorangutan
commented
Jun 10, 2023
[SF] Trillian test result (tid-6717)
|
DaanHoogland
left a comment
There was a problem hiding this comment.
clgtm, some malicious upgrade tests required, ... @vladimirpetrov ;)
vladimirpetrov
commented
Jun 12, 2023
@blueorangutan package |
blueorangutan
commented
Jun 12, 2023
@vladimirpetrov a [LL] 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
commented
Jun 12, 2023
Packaging result [LL]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 6134 |
weizhouapache
left a comment
There was a problem hiding this comment.
code lgtm
need manual testing
Uh oh!
There was an error while loading. Please reload this page.
DaanHoogland
commented
Jun 20, 2023
@weizhouapache , with manual testing you mean upgrade tests, right? |
weizhouapache
commented
Jun 20, 2023
@DaanHoogland yes, probably better with mysql 5.6/5.7 which did not work when upgrade to 4.18.0.0 |
DaanHoogland
commented
Jun 20, 2023
|
harikrishna-patnala
commented
Jun 22, 2023
@blueorangutan package |
blueorangutan
commented
Jun 22, 2023
@harikrishna-patnala a [SF] 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
commented
Jun 22, 2023
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 6308 |
yadvr
commented
Jun 23, 2023
@blueorangutan test |
blueorangutan
commented
Jun 23, 2023
@rohityadavcloud a [SF] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
harikrishna-patnala
commented
Jun 27, 2023
@blueorangutan test |
blueorangutan
commented
Jun 27, 2023
@harikrishna-patnala a [SF] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
harikrishna-patnala
commented
Jun 28, 2023
@blueorangutan package |
blueorangutan
commented
Jun 28, 2023
@harikrishna-patnala a [SF] 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
commented
Jun 28, 2023
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 6359 |
harikrishna-patnala
commented
Jun 30, 2023
@blueorangutan test |
blueorangutan
commented
Jun 30, 2023
@harikrishna-patnala a [SF] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
blueorangutan
commented
Jun 30, 2023
[SF] Trillian test result (tid-6909)
|
vladimirpetrov
left a comment
There was a problem hiding this comment.
LGTM based on manual testing. I tested some upgrades from 4.14, 4.15, 4.16 and 4.17 using KVM and VMware and found no issues.
Description
This PR fixes#7370 where same foreign key names are used for multiple tables which causes issues with different MySQL versions.
I've updated the procedure to be more precise and altered the problematic foreign keys in upgrade files. This way we can log the errors and resume the upgrade.
Also removed the mysql statements related to foreign key procedure creation and usage from 4.18.0 schema files (those are moved to 4.18.1 java upgrade files) to avoid errors caused in #7370 for certain MySQL versions.
Types of changes
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?