-
Notifications
You must be signed in to change notification settings - Fork 11k
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: Retention Policy cached settings not updated during upgrade procedure #33237
Conversation
Looks like this PR is ready to merge! 🎉 |
🦋 Changeset detectedLatest commit: 5de9bff The changes in this PR will be included in the next version bump. This PR includes changesets to release 28 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #33237 +/- ##
===========================================
+ Coverage 59.33% 59.74% +0.40%
===========================================
Files 2548 2548
Lines 63363 63074 -289
Branches 14252 14092 -160
===========================================
+ Hits 37598 37681 +83
+ Misses 23062 22976 -86
+ Partials 2703 2417 -286
Flags with carried forward coverage won't be shown. Click here to find out more. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changeset
|
/patch |
Pull request #33265 added to Project: "Patch 6.12.1" |
/backport 6.11.3 |
Pull request #33266 added to Project: "Patch 6.11.3" |
/backport 6.10.6 |
Pull request #33267 added to Project: "Patch 6.10.6" |
Proposed changes (including videos or screenshots)
During the server version upgrade procedure, internal DB events are not run before the migration procedures run. This means that other services initialized before that, that depend on updates from the DB are unaware of changes during this time.
In this specific case, the settings cached collection, which was being used to configure the retention policy cron, would have outdated data at the time of running the cron job. This caused issues in workspaces that had the Retention Policy enabled before upgrading to 6.10.
This issue was introduced here #32425
And this PR #33025 was aimed at fixing it, without success (the issue didn't trigger during testing with the fix, despite being tested by multiple people in different environments. Later a better process for reproducing it was found).
The fix for it was to force the cached settings to be updated manually during the migration procedure. An appropriate documentation will be written regarding directives when handling updates that affect sensitive services/features.
Issue(s)
CORE-681
Steps to test or reproduce
Further comments