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

Some old tables that never get garbage collected #61188

Closed
HeavyHorst opened this issue Feb 26, 2021 · 9 comments
Closed

Some old tables that never get garbage collected #61188

HeavyHorst opened this issue Feb 26, 2021 · 9 comments
Labels
C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. O-community Originated from the community T-sql-foundations SQL Foundations Team (formerly SQL Schema + SQL Sessions) X-blathers-triaged blathers was able to find an owner

Comments

@HeavyHorst
Copy link

HeavyHorst commented Feb 26, 2021

Describe the problem

I have some old tables that never gets garbage collected.

This doesn’t seem to be a real problem as everything works wonderfully and I have never experienced such a problem since then. Nevertheless, I would like to remove them if it is possible.

Also see: https://forum.cockroachlabs.com/t/some-old-tables-that-never-get-garbage-collected/4302

To Reproduce

I don't know because it only happened once.
I already had some consinstency problems at that time:
#51983, #52422

possibly it is related to one of these problems.
Expected behavior

The tables should be garbage collected and dissapear.

Additional data / screenshots

Bildschirmfoto von 2021-02-26 14-13-13

I've already created the debug.zip.
What is the preferred way to transfer it privately?

Jira issue: CRDB-3053

@HeavyHorst HeavyHorst added the C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. label Feb 26, 2021
@blathers-crl
Copy link

blathers-crl bot commented Feb 26, 2021

Hello, I am Blathers. I am here to help you get the issue triaged.

Hoot - a bug! Though bugs are the bane of my existence, rest assured the wretched thing will get the best of care here.

I have CC'd a few people who may be able to assist you:

If we have not gotten back to your issue within a few business days, you can try the following:

  • Join our community slack channel and ask on #cockroachdb.
  • Try find someone from here if you know they worked closely on the area and CC them.

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is otan.

@blathers-crl blathers-crl bot added O-community Originated from the community X-blathers-triaged blathers was able to find an owner labels Feb 26, 2021
@ajwerner
Copy link
Contributor

I don't know because it only happened once.
I already had some consinstency problems at that time:
#51983, #52422

If this is the same cluster as those, I'm not totally surprised to hear that we've got some cleanup to do. Please share the debug zip with ajwerner@cockroachlabs.com via either email or google drive if that's convenient. If it is not convenient, I'm sure I can work out a private upload link to give you out of band. Email me either way.

@ajwerner ajwerner self-assigned this Feb 26, 2021
@HeavyHorst
Copy link
Author

I shared the file with gdrive.

@ajwerner
Copy link
Contributor

One question: how willing are you to upgrade to 20.2? We have added tools in 20.2 to make repair much more robust and much simpler - it can be done in sql without the need for some low level hacks. It's possible in 20.1, but certainly less pleasant.

@HeavyHorst
Copy link
Author

That sounds great.
I am running 20.2.5 already.

@ajwerner
Copy link
Contributor

Cool, I'll cook something up. Out of curiosity, does SHOW TABLES work or does it currently give you an error?

@HeavyHorst
Copy link
Author

SHOW TABLES works on all databases SHOW DATABASES shows.

@jlinder jlinder added the T-sql-schema-deprecated Use T-sql-foundations instead label Jun 16, 2021
@ajwerner ajwerner removed their assignment Mar 17, 2022
@ajwerner
Copy link
Contributor

We added functions to remove these tables and their data with crdb_internal.unsafe_delete_descriptor and crdb_internal. force_delete_table_data. Sorry I didn't deal with this in a more timely manner.

@HeavyHorst
Copy link
Author

Great news, thank you very much!
Is there any documentation on how to run these commands?

@exalate-issue-sync exalate-issue-sync bot added T-sql-foundations SQL Foundations Team (formerly SQL Schema + SQL Sessions) and removed T-sql-schema-deprecated Use T-sql-foundations instead labels May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. O-community Originated from the community T-sql-foundations SQL Foundations Team (formerly SQL Schema + SQL Sessions) X-blathers-triaged blathers was able to find an owner
Projects
None yet
Development

No branches or pull requests

3 participants