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: identify failed vacuum db by id #16553

Merged
merged 2 commits into from
Sep 30, 2024

Conversation

drmingdrmer
Copy link
Member

@drmingdrmer drmingdrmer commented Sep 30, 2024

I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/

Summary

fix: identify failed vacuum db by id

Database-name in string can not be used to identify a database.
A database can be renamed and leads to a undefined behaviors.

In this commit, when a table is failed to vacuum, mark the belonging
database as failed by database-id, instead of by database-name.

Tests

  • Unit Test
  • Logic Test
  • Benchmark Test
  • No Test - Explain why

Type of change

  • Bug Fix (non-breaking change which fixes an issue)

Related Issues


This change is Reviewable

@github-actions github-actions bot added the pr-bugfix this PR patches a bug in codebase label Sep 30, 2024
@drmingdrmer drmingdrmer marked this pull request as ready for review September 30, 2024 08:29
Database-name in string can not be used to identify a database.
A database can be renamed and leads to a undefined behaviors.

In this commit, when a table is failed to vacuum, mark the belonging
database as failed by database-id, instead of by database-name.
@drmingdrmer drmingdrmer merged commit e8895e6 into databendlabs:main Sep 30, 2024
71 checks passed
@drmingdrmer drmingdrmer deleted the 155-improve-failed-db branch October 1, 2024 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-bugfix this PR patches a bug in codebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants