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

Transfer files - Fix repo snapshot manager error #880

Closed
wants to merge 4 commits into from
Closed

Transfer files - Fix repo snapshot manager error #880

wants to merge 4 commits into from

Conversation

eyalbe4
Copy link
Contributor

@eyalbe4 eyalbe4 commented Jul 28, 2023

This fix resolves an issue with the jf rt transfer-files command.
The symptom of this issue is the following error message that occasionally could be seen in the log:

repo snapshot manager - could not reach the representing node for path...

The key for fixing the issue, is the change made to the findMatchingNode function. The issue was that the findMatchingNode function could not always return the node. This is because the node may not be in the snapshot cache. It may yet to be discovered, or maybe it was discovered, but the snapshot cache didn't get a chance to get persisted yet, because of a shutdown of the command.

With this fix, the findMatchingNode function always fetches the node, It returns it if it's cached, and creates it and adds it to the cache if it isn't cached. As a result, the AddChildNode function became redundant and was left only to be used by one of tests,

@eyalbe4 eyalbe4 added the bug Something isn't working label Jul 28, 2023
@eyalbe4 eyalbe4 requested a review from talarian1 July 28, 2023 22:33
@eyalbe4 eyalbe4 changed the title Transfer files - fix repo snapshot manager error Transfer files - Fix repo snapshot manager error Jul 29, 2023
@talarian1
Copy link
Contributor

Duplicate #881

@talarian1 talarian1 closed this Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants