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 CN mkdir called on grandparent instead of parent #4418

Merged
merged 1 commit into from
Dec 2, 2022

Conversation

theoilie
Copy link
Contributor

@theoilie theoilie commented Dec 2, 2022

Description

Fixes mkdir being called on the grandparent of a CID instead of the parent when it's nested. This is something I noticed for some legacy CIDs after turning debug logs on for prod CN5. It didn't corrupt any data and only caused some legacy CIDs to fail to be migrated until this is merged.

Tests

Relying on CI instead of manual tests and will use debug logs to confirm the path is still correct. It still uses the same path logic that I already double-checked, so the risk for data loss is minimal.

Monitoring - How will this change be monitored? Are there sufficient logs / alerts?

Look for errors with "Failed to copy some legacy files" and "ENOENT"

@theoilie theoilie added the content-node Content Node (previously known as Creator Node) label Dec 2, 2022
Copy link
Contributor

@SidSethi SidSethi left a comment

Choose a reason for hiding this comment

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

will look more closely tmrw but approving for now

@theoilie theoilie merged commit 7d432fa into main Dec 2, 2022
@theoilie theoilie deleted the theo-storagePath-mkdir-parent branch December 2, 2022 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content-node Content Node (previously known as Creator Node) size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants