cchenax commented on a change in pull request #2196:
URL: https://github.com/apache/ozone/pull/2196#discussion_r629218108
##########
File path:
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/keyvalue/TarContainerPacker.java
##########
@@ -152,6 +156,20 @@ public void pack(Container<KeyValueContainerData>
container,
try (OutputStream compressed = compress(output);
ArchiveOutputStream archiveOutput = tar(compressed)) {
+ 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;
+ }
+
Review comment:
Ok,I will change it.thank you very much!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]