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

fix(db): failed start should not remove backup volume #1810

Merged
merged 3 commits into from
Jan 10, 2024
Merged

Conversation

sweatybridge
Copy link
Contributor

@sweatybridge sweatybridge commented Jan 4, 2024

What kind of change does this PR introduce?

Bug fix supabase/supabase#17791

What is the current behavior?

If there's a local backup volume and db start encounters an error, the backup volume is deleted.

What is the new behavior?

If backup volume exists, failed start should not remove them. Otherwise if it's a fresh start, delete any backup volume.

Also in this PR:

  • adds project label to named volumes by creating them explicitly via docker api
  • reuses remove all method in stop command
  • cleans up dead code for docker add file

Additional context

Add any other context or screenshots.

@sweatybridge sweatybridge requested a review from a team as a code owner January 4, 2024 12:00
@sweatybridge sweatybridge force-pushed the keep-vol branch 4 times, most recently from 35cb8f6 to e04a274 Compare January 10, 2024 06:07
@coveralls
Copy link

coveralls commented Jan 10, 2024

Pull Request Test Coverage Report for Build 7471101573

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.2%) to 58.591%

Totals Coverage Status
Change from base Build 7470946471: 0.2%
Covered Lines: 6029
Relevant Lines: 10290

💛 - Coveralls

@sweatybridge sweatybridge merged commit f5fc744 into main Jan 10, 2024
9 checks passed
@sweatybridge sweatybridge deleted the keep-vol branch January 10, 2024 06:31
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.

2 participants