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

[no-release-notes] go: nbs,chunks: Have AddTableFilesToManifest check all dependencies are present. #8824

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

reltuk
Copy link
Contributor

@reltuk reltuk commented Feb 5, 2025

No description provided.

@@ -196,7 +195,7 @@ func trueUpBackingManifest(ctx context.Context, root hash.Hash, backing *journal
if err != nil {
return manifestContents{}, err
} else if !ok {
return manifestContents{}, fmt.Errorf("manifest not found when opening chunk journal")
return manifestContents{}, nil
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 changed the semantics here so that we can open a journal file without a manifest already existing.

We do this as part of Clone in some cases, where we copy the journal from a remote into our local store, and then we AddTableFilesToManifest to add it to our manifest. The new sanity checking logic wants to open the journal and read its chunks before we agree to add it to the store. This change allows us to do that.

The change below to ParseIfExists stitches it together, by continuing to go to the backing manifest as long as we have never loaded an actual manifest here.

@coffeegoddd
Copy link
Contributor

@reltuk DOLT

comparing_percentages
100.000000 to 100.000000
version result total
c07900c ok 5937457
version total_tests
c07900c 5937457
correctness_percentage
100.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants