Skip to content

Conversation

@mwiebe
Copy link
Contributor

@mwiebe mwiebe commented Dec 23, 2025

What was the problem/requirement? (What/Why)

The hash cache only supports caching the hashes of whole files. We'd like to make a manifest format update that chunks large files, and it will need a hash cache for the chunks.

What was the solution? (How)

By extending the hash cache to support arbitrary byte ranges, it is ready for any chunking scheme. The update follows the table versioning precedent, creating a new V4 table for the hash cache.

What is the impact of this change?

The existing interface for whole file hash caching is unchanged, and new range start/end parameters are available for byte-range hash caching.

How was this change tested?

Implemented unit tests for the change, confirmed all the existing unit tests pass unchanged.

Was this change documented?

Updated the docstrings.

Does this PR introduce new dependencies?

No

Is this a breaking change?

Yes, it updates the hash cache DB schema from V3 to V4.

Does this change impact security?

No


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@mwiebe mwiebe requested a review from a team as a code owner December 23, 2025 20:06
@mwiebe mwiebe force-pushed the hash-cache-byterange branch from aecb0fb to 72587c0 Compare December 23, 2025 20:07
@github-actions github-actions bot added the waiting-on-maintainers Waiting on the maintainers to review. label Dec 23, 2025
@mwiebe mwiebe force-pushed the hash-cache-byterange branch 2 times, most recently from 0333fe9 to 4361230 Compare December 23, 2025 20:12
@mwiebe mwiebe changed the title feat: Update hash cache to support byte ranges for file chunking support feat!: Update hash cache to support byte ranges for file chunking support Dec 23, 2025
baxeaz
baxeaz previously approved these changes Dec 23, 2025
…port

BREAKING CHANGES:
- Hash cache database schema updated from V3 to V4.

Signed-off-by: Mark Wiebe <[email protected]>
@sonarqubecloud
Copy link

@mwiebe mwiebe merged commit 35a1802 into aws-deadline:mainline Dec 28, 2025
26 of 27 checks passed
@mwiebe mwiebe deleted the hash-cache-byterange branch December 28, 2025 19:44
folouiseAWS pushed a commit to folouiseAWS/deadline-cloud that referenced this pull request Jan 9, 2026
…port (aws-deadline#953)

BREAKING CHANGES:
- Hash cache database schema updated from V3 to V4.

Signed-off-by: Mark Wiebe <[email protected]>
Signed-off-by: Louise Fox <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

waiting-on-maintainers Waiting on the maintainers to review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants