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

[3/N] Chunk encoding optimization: Add support of new encoding format… #628

Merged
merged 8 commits into from
Jul 11, 2024

Conversation

jianoaix
Copy link
Contributor

@jianoaix jianoaix commented Jul 8, 2024

… in API

Why are these changes needed?

To handle a different format of chunk encoding.

Checks

  • I've made sure the lint is passing in this PR.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, in that case, please comment that they are not relevant.
  • Testing Strategy
    • Unit tests
    • Integration tests
    • This PR is not tested :(

@jianoaix jianoaix requested review from bxue-l2 and ian-shim July 8, 2024 18:41
@@ -54,6 +54,14 @@ message RetrieveChunksRequest {
message RetrieveChunksReply {
// All chunks the Node is storing for the requested blob per RetrieveChunksRequest.
repeated bytes chunks = 1;
// Describes how the chunks above are encoded.
// If not specified, it’s treated as GOB.
Copy link
Contributor

Choose a reason for hiding this comment

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

if unspecified, wouldn't it be the first definition in enum, which is unknown

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We need to default to GOB in order to be backward compatible

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually it's fine to default o UNKNOWN -- we just need to make sure the GOB is set when we return GOB encoded chunks

@jianoaix jianoaix merged commit 660f0f1 into Layr-Labs:master Jul 11, 2024
6 checks passed
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