Skip to content

Conversation

coyotte508
Copy link
Member

@coyotte508 coyotte508 commented Oct 1, 2025

Update the chunk indexes in the chunkCache after deduplication to match the new xorb chunks.

The problem happens if a previous chunk in the xorb is removed during backtrack deduplication. Then the chunk indexes for the following chunks in teh xorb were updated in the passed chunkMetadata array, but not in the chunkCache.

Which meant that if the chunks were requested again eg (due to uploading another file with shared content in the same uploadShards call) the chunk indexes provided would be incorrect.

cc @assafvayner @mishig25 for viz

Follow up #1771 and #1779


Also improved the debug/replay script to support multiple files upload, and added a test

Update the chunk indexes in the chunkCache after deduplication to match the new xorb chunks.
They were already updated in the passed `chunkMetadata` array, but not in the chunkCache. Which meant
that if the chunks were requested again eg (due to uploading another file with shared content in the same `uploadShards`)
the chunk indexes provided would be incorrect.
@coyotte508 coyotte508 merged commit 1ca3182 into main Oct 1, 2025
5 checks passed
@coyotte508 coyotte508 deleted the debug-v2 branch October 1, 2025 23:17
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.

1 participant