Open knz opened 2 years ago
cc @awoods187 you may want to track this for GDPR compliance
We have marked this issue as stale because it has been inactive for 18 months. If this issue is still relevant, removing the stale label or adding a comment will keep it active. Otherwise, we'll close it in 10 days to keep the issue queue tidy. Thank you for your contribution to CockroachDB!
Describe the problem
The table statistics stored in
system.table_statistics
contain a copy of table data in thehistogram
column.When the data from the table is constrained to certain regions (data domiciliation), the table
system.table_statistics
is not constrained and thus the data "escapes" the region it should remain at.This makes it impossible to do strict data sovereignty partitioning using multi-region CockroachDB when domicilied data is indexed. (The issue does not exist when domicilied data is not indexed.)
Note: we already document this limitation in https://www.cockroachlabs.com/docs/stable/data-domiciling.html#limitations
Epic: CRDB-10287
To Reproduce
system.table_statistics
and observe data from regions duplicated in the histogram columnExpected behavior
The table
system.table_statistics
should be split into different ranges so that the stats for each table are stored in the same region as the data that's constrained by zone configs.Environment:
crdb v21.2
Jira issue: CRDB-10286