Skip to content

Conversation

@assafvayner
Copy link
Contributor

related to #547

When xet-core uploads the shard the header field where the footer length is specified is set to 200 where it should be 0 according to the specification.

Note: this value is ignored by the server today, but ideally we would set this right since it can be useful to know if there is a footer on the shard when reading the shard as a whole in a non-streaming fashion.

@assafvayner assafvayner requested review from hoytak and seanses November 3, 2025 19:04
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, minor comment.

Maybe add a test?

@assafvayner
Copy link
Contributor Author

P.S. Also tested with this version that uploads work and CAS does accept this


use super::*;

fn test_read_shard_to_bytes_remove_footer() -> Result<()> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Missing the #[test] attribute

Copy link
Collaborator

@seanses seanses left a comment

Choose a reason for hiding this comment

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

LGTM!

@assafvayner assafvayner merged commit 499d9a1 into main Nov 4, 2025
6 checks passed
@assafvayner assafvayner deleted the assaf/set_0_footer_length branch November 4, 2025 21:33
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