Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CAS client API refactor; Shard and CAS object format changes to use chunk indices #29

Merged
merged 21 commits into from
Oct 4, 2024

Conversation

seanses
Copy link
Collaborator

@seanses seanses commented Sep 27, 2024

  • Delete grpc cas and shard code.
  • Rewrite CAS client api as there will be no API to get cas block by hash.
  • Delete CachingClient and StagingClient (need to rewrite them in the future).
  • Use chunk indices in FileDataSequenceEntry and cas object format.
  • Misc code clean up and reorganization.

Related server-side PR:

@seanses seanses changed the title [WIP] Shard and CAS object format change to use chunk indices [WIP] Shard and CAS object format change to use chunk indices; Rewrites CAS client API Sep 27, 2024
seanses and others added 10 commits September 27, 2024 16:21
- Removed CasChunkInfo
- Now tracking chunk boundary offsets & chunk hashes
- Moved static functions before methods.
- Moved pub functions & methods before non-public functions.
- Added CasObjectInfo basic validation on object methods.
- includes basic unit-test
- created validate_cas_object_info method
- todos for additional tests to write
@seanses seanses marked this pull request as ready for review October 2, 2024 21:24
@seanses seanses changed the title [WIP] Shard and CAS object format change to use chunk indices; Rewrites CAS client API CAS client API; Shard and CAS object format changes to use chunk indices Oct 2, 2024
@seanses seanses changed the title CAS client API; Shard and CAS object format changes to use chunk indices CAS client API refactor; Shard and CAS object format changes to use chunk indices Oct 2, 2024
@seanses seanses requested review from hoytak and rajatarya October 2, 2024 21:33
@seanses seanses requested a review from assafvayner October 2, 2024 22:34
Copy link
Collaborator

@rajatarya rajatarya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really only one comment, this code looks good and I appreciate the comments and restructuring of files.

cas_client/src/remote_client.rs Show resolved Hide resolved
shard_client/src/http_shard_client.rs Show resolved Hide resolved
utils/src/singleflight.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@hoytak hoytak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@seanses seanses merged commit 55973a1 into main Oct 4, 2024
1 check passed
@seanses seanses deleted the di/use-chunk-index branch October 4, 2024 21:26
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.

4 participants