-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Move towards sync deletion (away from PeriodicDeleter) - step II/II #18866
Conversation
66cbbe5
to
ea39188
Compare
ea39188
to
e846327
Compare
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.
When we deploy, there might be a few entries in the DB that are marked but not deleted. We would need to make sure the periodic deleter runs once more before removing the logic around the deletionColumn
That's why I deployed the first part of this PR, which changed how we delete stuff (the writes), on Friday. By now Cloud + all Dedicated instances received that version (commits), and should also executed the deleter often enough to cleanup the old stuff. This PR only deletes columns/tables we are not using anymore (except the Go changes which an oversight, but they are not used anywhere except tests...), and adjusts the reads/selects. |
Just found an oversight, though: |
Done. |
Thanks for the ✔️ ! I will hold this until tomorrow, so I can attend the rollout. 👍 |
/unhold |
Description
Depends on - and follow-up to: #18833
Deletes all the columns that we are not using anymore.
Summary generated by Copilot
🤖 Generated by Copilot at 66cbbe5
This pull request removes the
deleted
column from various tables and entities in thecomponents/gitpod-db
module and replaces it with themarkedDeleted
column where applicable. It also drops some unused tables from the database schema. It adds migration scripts to apply these changes to the database. The purpose of this pull request is to simplify and update the database schema and the code that interacts with it.Related Issue(s)
Fixes EXP-719
How to test
database-gc
does execute without errorsDocumentation
Preview status
Gitpod was successfully deployed to your preview environment.
Build Options
Build
Run the build with werft instead of GHA
Run Leeway with
--dont-test
Publish
Installer
Add desired feature flags to the end of the line above, space separated
Preview Environment / Integration Tests
If enabled this will build
install/preview
If enabled this will create the environment on GCE infra
Valid options are
all
,workspace
,webapp
,ide
,jetbrains
,vscode
,ssh
. If enabled,with-preview
andwith-large-vm
will be enabled./hold