sql: DROP of a large table causes server to become unresponsive. #3103
Labels
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
Milestone
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.The text was updated successfully, but these errors were encountered: