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

fix: unexpected EOF when parsing segments for PODSI deals #1874

Merged
merged 2 commits into from
Jan 25, 2024
Merged

Conversation

LexLuthr
Copy link
Collaborator

@LexLuthr LexLuthr commented Jan 16, 2024

CC: @cryptowhizzard

DO NOT MERGE

cryptowhizzard and others added 2 commits January 16, 2024 19:46
POSDI index error fix for spade deals
@@ -432,15 +442,18 @@ func parsePieceWithDataSegmentIndex(pieceCid cid.Cid, unpaddedSize int64, r type
panicked := false
indexData, err := parseDataSegmentIndex(pieceCid, bufio.NewReaderSize(cr, PodsiBuffesrSize), &panicked)
if err != nil {
log.Debugw("Failed to parse data segment index", "error", err)
Copy link
Collaborator

Choose a reason for hiding this comment

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

This additional logging isn't required because the error will be logged here already: https://github.com/filecoin-project/boost/blob/main/piecedirectory/piecedirectory.go#L321

@ischasny
Copy link
Collaborator

Great work, thanks Mayank - let's verify that it works as expected before merging it to the main.

@cryptowhizzard
Copy link
Contributor

Confirmed & working.

@LexLuthr LexLuthr merged commit 8f6f6ff into main Jan 25, 2024
22 checks passed
@LexLuthr LexLuthr deleted the fix/podsi-eof branch January 25, 2024 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants