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
sql/importer: make INSPECT-after-IMPORT validation a metamorphic setting
Previously, the setting
`bulkio.import.row_count_validation.unsafe.enabled` was a boolean that
controlled whether an INSPECT job would be triggered after an IMPORT
operation. This commit replaces that boolean with a metamorphic enum
setting to improve test coverage and provide finer control.
The new enum has three values:
- `off`: No validation (default; preserves current behavior)
- `async`: Run INSPECT asynchronously in the background (future
production default)
- `sync`: Run INSPECT synchronously and wait for completion (testing
only)
The prior `true` value now maps to `async`. The new `sync` option is
added specifically for testing. If the INSPECT job fails, it causes the
IMPORT to fail as well, enabling roachtests to detect issues more easily
without manual validation.
The setting has been renamed to
`bulkio.import.row_count_validation.unsafe.mode` to reflect the new
values.
As part of validation testing, we observed limitations with:
- hash-sharded indexes
- expression indexes
Both cases are now blocked by this change.
Informs: #154049
Epic: CRDB-30356
Release note: none
0 commit comments