Skip to content
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

Remove active column #10335

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

arpad-m
Copy link
Member

@arpad-m arpad-m commented Jan 9, 2025

We don't need or want the active column. Remove it. Vlad pointed out that this is safe.

Thanks to the separation of the schemata in earlier PRs, this is easy.

follow-up of #10205

Part of #9981

@arpad-m arpad-m requested a review from a team as a code owner January 9, 2025 23:45
@arpad-m arpad-m requested review from arssher and VladLazar January 9, 2025 23:45
Copy link

7293 tests run: 6928 passed, 0 failed, 365 skipped (full report)


Flaky tests (3)

Postgres 17

Postgres 15

Postgres 14

  • test_physical_replication_config_mismatch_max_locks_per_transaction: release-x86-64

Code coverage* (full report)

  • functions: 32.5% (8037 of 24737 functions)
  • lines: 47.8% (66772 of 139809 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
78b4727 at 2025-01-10T00:44:32.251Z :recycle:

Copy link
Contributor

@VladLazar VladLazar left a comment

Choose a reason for hiding this comment

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

LGTM - can you please check that the following scenario is okay as long as we don't query the safekeepers or add a new one:

  1. new storage controller is released
  2. We roll-back the storage release
  3. old storage controller starts-up

@arssher
Copy link
Contributor

arssher commented Jan 10, 2025

It should be safe, no active code is reading safekeepers from the db yet.

@arpad-m
Copy link
Member Author

arpad-m commented Jan 10, 2025

Yeah we don't use the column for anything, nor do we read from the db as part of routine operation, so I think it should be safe. Going to merge this PR once #10338 merges.

We don't have the roll-back of migrations as part of the release workflow yet, right? Aka, "rollback" of a release is just rolling out the old one. I think this is not sufficient here as the "down" migration is not present in the older release.

If we want to do a rollback, we'd need to manually apply the right sql commands during the release process.

@VladLazar
Copy link
Contributor

VladLazar commented Jan 10, 2025

We don't have the roll-back of migrations as part of the release workflow yet, right? Aka, "rollback" of a release is just rolling out the old one. I think this is not sufficient here as the "down" migration is not present in the older release.

If we want to do a rollback, we'd need to manually apply the right sql commands during the release process.

Right. I was thinking about: "do we have to do the manual db rollback as long as we dont't query the safekeepers table?". I think we don't have to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants