TECHNOLOGY

Skipping corrupt shards: report the population removed by a successful recovery

In this article
THE QUICK TAKE

Preserve the expected manifest, failed member list and cohort impact assessment.

A reader skips unreadable shards and completes the training export. The failed files belong mainly to one source or time period, so the apparently successful recovery changes the learning population.

The mechanism that changes the example

Availability-oriented recovery can conflict with dataset coverage. A skipped-file count has limited meaning without the expected population, row estimates and cohort contribution of those files.

Define the comparison boundary

Freeze the expected member list before recovery. If the reader builds its manifest only from successfully opened shards, every failure disappears from the denominator and the resulting success rate becomes circular.

Distinguish a missing object, a transport error, a checksum mismatch and a parse failure. They need different recovery actions, and retrying cannot repair every class. Preserve the failed object’s release identity without copying sensitive contents into a general error log.

Use known cohort membership to assess exclusion impact. A single large shard can matter more than many tiny files, and a rare-class shard can matter despite a small row share. If the release proceeds partially, give it a distinct population identity and state which comparisons remain valid. Recovered shards should enter a new checked release rather than silently changing a previously evaluated artifact.

A constructed test case

Corrupt a shard whose known source cohort is otherwise absent. A skip-on-error reader may finish, but the coverage report must still expose the lost cohort and withhold an unqualified complete-release claim.

A reproducible validation procedure

Inject a corrupt shard with a known cohort contribution. Verify that the pipeline reports incomplete coverage rather than a clean release. Compare class and source distributions before deciding whether a partial release is acceptable.

Include an unchanged control and a deliberately invalid case. Verify that the checker distinguishes them before testing the complete release.

Exercise the actual preparation path, including later serialization and reload. Limit retained diagnostic content to the evidence required for this comparison.

Evidence needed for acceptance

Preserve the expected manifest, failed member list and cohort impact assessment.

Containment and recovery

Estimating missing rows from metadata is useful but cannot replace recovery when exact membership is required.

Quarantine an invalid release candidate or use an explicit partial-release rule. Preserve the last approved artifact and record corrections without silently rewriting historical inputs.

Interpretation and references

Implementation references: Arrow dataset reading and writing; S3 object integrity verification.

This is a proposed engineering validation, not an executed Retrivium benchmark. Documentation specifies interfaces; dataset acceptance needs its own evidence and must be repeated after relevant dependency changes.

Continue with Parquet row groups: faster reads without accidental dataset sampling; DataTrove FastTextClassifierFilter: keep labels, remove labels and unit scores. These guides supply adjacent context; the decision in this article remains the specific example-preservation check above.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles