Skip to content

Conversation

@vycius
Copy link
Contributor

@vycius vycius commented Jan 18, 2026

Replace the external 'split' subprocess and secondary hashing pass with a custom HashingFileWriter.

  • Resolves a race condition where files moved/deleted between the write and hash phases caused export failures.
  • Eliminates redundant I/O by calculating checksums while streaming data to disk.
  • Removes OS dependency on the 'split' binary.
  • Ensures the Table of Contents (TOC) is generated from in-memory metadata for 100% consistency.

closes #7218

@vycius vycius force-pushed the atomic-chunked-export branch from 83fc336 to 6226daa Compare January 18, 2026 08:21
@vycius vycius force-pushed the atomic-chunked-export branch 5 times, most recently from 6e91cce to 0579e8b Compare January 18, 2026 09:45
Replace the external 'split' subprocess and secondary hashing pass
with a custom HashingFileWriter.

- Resolves a race condition where files moved/deleted between the
  write and hash phases caused export failures.
- Eliminates redundant I/O by calculating checksums while streaming
  data to disk.
- Removes OS dependency on the 'split' binary.
- Ensures the Table of Contents (TOC) is generated from in-memory
  metadata for 100% consistency.

closes pulp#7218
@vycius vycius force-pushed the atomic-chunked-export branch from 0579e8b to aa02e28 Compare January 18, 2026 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Race condition in chunked exports leads to missing file hashes in TOC

1 participant