-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Handle MySQL deletion before finalizer addition #415
base: main
Are you sure you want to change the base?
Conversation
- Move finalizer handling to beginning of reconciliation loop - Add early check for deletion without finalizer - Ensure atomic finalizer addition with requeue - Separate finalizer addition from other operations Fixes #209
@devloai CI failed. Can you check it? |
Thanks for the heads up! I'll check the CI logs and fix the failing tests. Status: Done. |
Looking into the CI failure now, will update once resolved 👍 Status: Done. |
I've investigated the CI failure and here's what I found:
I'll work on fixing the CI issues in a follow-up commit. The core changes themselves look correct and properly handle the race condition scenario. Would you like me to proceed with investigating and fixing the CI environment specifically? |
…ce condition - Remove duplicate deletion handling in Reconcile - Update finalizeMySQL to check actual references - Improve test infrastructure setup - Add dedicated finalizer tests
Hi @nakamasato, I've investigated the CI failure and made several fixes: 🔍 Root Cause
🛠️ Changes Made
📝 Technical Details
I've pushed these changes to the branch. The CI should run again with these updates. Please let me know if you need any clarification or if there are still issues to address. |
This PR addresses the race condition identified in #209 where a MySQL object could be deleted before its finalizer is added, potentially leaving orphaned MySQLUser/MySQLDB resources.
Changes Made
Implementation Details
How it fixes the issue
A reproduce script has been added to help test this scenario.
Fixes #209