Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

sql: DROP of a large table causes server to become unresponsive. #3103

Closed
mrtracy opened this issue Nov 11, 2015 · 5 comments
Closed

sql: DROP of a large table causes server to become unresponsive. #3103

mrtracy opened this issue Nov 11, 2015 · 5 comments
Labels
C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
Milestone

Comments

@mrtracy
Copy link
Contributor

mrtracy commented Nov 11, 2015

When calling DROP TABLE on a table with a large number of rows, the cockroach server tends to become completely unresponsive: its memory usage skyrockets, and incoming requests are no longer serviced.

This was discovered when using the block writer example. The block writer program writes a large number of rows to a single table "blocks"; when the program starts, it calls DROP TABLE IF EXISTS blocks during initialization; thus, if the block writer is allowed to run for some time, and then is restarted, it results in a DROP TABLE over a large dataset, exposing this bug.

@tamird
Copy link
Contributor

tamird commented Nov 11, 2015

This should go away when async stuff is in. cc @vivekmenezes

@tamird tamird added the SQL label Nov 11, 2015
@mberhault
Copy link
Contributor

#2003 (perform drop in background) would also help.

@tbg
Copy link
Member

tbg commented Nov 11, 2015 via email

@petermattis petermattis added C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) and removed SQL labels Feb 13, 2016
@petermattis petermattis modified the milestone: 1.0 Feb 14, 2016
@tamird
Copy link
Contributor

tamird commented Jun 30, 2016

@andreimatei @tschottdorf @vivekmenezes we have a plethora of issues tracking this - can one of you coalesce?

@andreimatei
Copy link
Contributor

same as #7499

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
Projects
None yet
Development

No branches or pull requests

6 participants