Skip to content

sql: log event for TRUNCATE #25867

@tbg

Description

@tbg

@a-robinson, @jseldess and I just spend a merry 30 minutes trying to figure out what was going on on cobalt, one of our production clusters.

The outcome was that someone must have TRUNCATEd a large table which left lots of empty ranges, which led to an imbalance of live bytes. We needed to look at raw range boundaries to figure this out.

There should be an event log for TRUNCATE similar to the one you get when a table gets created:

image

cc @jordanlewis for triage (and apologies for what is probably the wrong A-sql-* category)

Metadata

Metadata

Assignees

Labels

A-sql-mutationsMutation statements: UPDATE/INSERT/UPSERT/DELETE.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions