Skip to content

Conversation

@cchenax
Copy link
Contributor

@cchenax cchenax commented Jun 29, 2021

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

…anode,but the target datanode container file missing,import error
cchenaxchen added 2 commits June 29, 2021 21:06
…anode,but the target datanode container file missing,import error
…anode,but the target datanode container file missing,import error
@swagle swagle requested a review from adoroszlai July 12, 2021 16:11
Copy link
Contributor

@adoroszlai adoroszlai left a 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.

Comment on lines +160 to +172
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;
}
Copy link
Contributor

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);
Copy link
Contributor

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.

@adoroszlai
Copy link
Contributor

/pending

Copy link

@github-actions github-actions bot left a 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

@github-actions
Copy link

github-actions bot commented Oct 8, 2021

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."

@github-actions github-actions bot closed this Oct 8, 2021
@errose28
Copy link
Contributor

errose28 commented Mar 11, 2022

This should be handled by #3052 now.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants