You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
153294: IMPORT: trigger async INSPECT job for validation r=ZhouXing19 a=ZhouXing19
Fixes#146327
We found a bug that async flush can cause silent data corruption for IMPORT, and this commit is to trigger a validation step to alert if similar data corruption happens again. To avoid increasing the latency for IMPORT we trigger an INSPECT job that runs the validation asynchronously right after the table is set to public at the end of an import. We use the commit timestamp of the internal txn which update the table state to public, so that we can ensure the INSPECT focus on the snapshot at the end of the IMPORT job.
This behavior is gated by cluster settings `bulkio.import.row_count_validation.unsafe.enabled`, which is default to false.
See more internal discussion [here](https://cockroachlabs.slack.com/archives/C02DSDS9TM1/p1757439225277989?thread_ts=1756991224.633879&cid=C02DSDS9TM1).
Release note: Added `bulkio.import.row_count_validation.unsafe.enabled` (default false) that will trigger asynchronous INSPECT job at the end of an IMPORT execution.
Co-authored-by: ZhouXing19 <[email protected]>
0 commit comments