Description
A bug was introduced in CockroachDB v22.2.6 that can cause a restore job to skip some data files upon resumption of an in-progressRESTORE. This could potentially lead to some missing rows after the restore job succeeds.
A resumption could occur due to manual user action, such as pausing and resuming the job, or, if a job is automatically retried internally, such as after a node restart. Therefore, this failure might not be noticed by an operator.
Statement
This is resolved in CockroachDB by a fix that removes the incorrect optimization, and reverts back to the behavior of v22.2.5. The fix has been applied to maintenance releases of CockroachDB and later. This problem can also be mitigated immediately by updating thebulkio.restore.use_simple_import_spans cluster setting. See the following Mitigation section for details.

