Skip to content

Conversation

@syphar
Copy link
Member

@syphar syphar commented Nov 12, 2025

when looking into the test failures in #2987 I stumbled onto an issue:

Nullus157/async-compression#420

When I switched how I compress the archive index to async-compression, I didn't poperly shut down the encoder, which then lead to the zstd archive being corrupt. Currently it seems like only the EOF was missing, but the async-decompressor was still able to handle it and the decompressed database was 100% correct.

I added the async compression in #2920, so it's not too long.

As a first step, this PR fixes the compression, and adds a test.

Then I'm trying to decide if I fix / recreate these indexes, rebuild, or just attach the EOF marker if it's missing. It's about 90k releases in that time, so 180k archives.

@syphar syphar requested a review from a team as a code owner November 12, 2025 19:49
@syphar syphar self-assigned this Nov 12, 2025
@github-actions github-actions bot added the S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed label Nov 12, 2025
@GuillaumeGomez
Copy link
Member

Feel free to merge with or without the enc.shutdown called all the time.

@syphar syphar merged commit 3b3d9a0 into rust-lang:master Nov 13, 2025
21 checks passed
@github-actions github-actions bot added S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it and removed S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed labels Nov 13, 2025
@syphar syphar deleted the finis-compression branch November 13, 2025 16:49
@syphar syphar removed the S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it label Nov 13, 2025
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.

2 participants