-
Notifications
You must be signed in to change notification settings - Fork 593
HDDS-5149 when source datanode download container tar from target datanode,but the target datanode container file missing,import error #2376
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
Conversation
…anode,but the target datanode container file missing,import error
…anode,but the target datanode container file missing,import error
…anode,but the target datanode container file missing,import error
adoroszlai
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @cchenax for continuing work on this. In addition to inline comments, I also see that unit test from previous PR is removed.
| if (!containerData.getDbFile().exists()) { | ||
| LOG.warn("DBfile {} not exist", | ||
| containerData.getDbFile().toPath().toString()); | ||
| return; | ||
| } else if (!new File(containerData.getChunksPath()).exists()) { | ||
| LOG.warn("Chunkfile {} not exist", | ||
| containerData.getDbFile().toPath().toString()); | ||
| return; | ||
| } else if (!container.getContainerFile().exists()) { | ||
| LOG.warn("Containerfile {} not exist", | ||
| containerData.getDbFile().toPath().toString()); | ||
| return; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make sense to utilize
Container.scanMetadata()instead? More complete checks without introducing duplication.Ok,I will change it.thank you very much!
This comment from the previous PR still applies.
| task.setStatus(Status.DONE); | ||
| } | ||
| LOG.info("Container {} is replicated successfully", containerID); | ||
| task.setStatus(Status.DONE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would overwrite previous FAILED status.
|
/pending |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Marking this issue as un-mergeable as requested.
Please use /ready comment when it's resolved.
Please note that the PR will be closed after 21 days of inactivity from now. (But can be re-opened anytime later...)
/pending
|
Thank you very much for the patch. I am closing this PR temporarily as there was no activity recently and it is waiting for response from its author. It doesn't mean that this PR is not important or ignored: feel free to reopen the PR at any time. It only means that attention of committers is not required. We prefer to keep the review queue clean. This ensures PRs in need of review are more visible, which results in faster feedback for all PRs. If you need ANY help to finish this PR, please contact the community on the mailing list or the slack channel." |
|
This should be handled by #3052 now. |
What changes were proposed in this pull request?
fix if the metadatafile or chunksfile missing import export container error
What is the link to the Apache JIRA
https://issues.apache.org/jira/projects/HDDS/issues/HDDS-5149?filter=addedrecently
How was this patch tested?
ci