ChenSammi commented on code in PR #3648:
URL: https://github.com/apache/ozone/pull/3648#discussion_r1066572256
##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/keyvalue/TarContainerPacker.java:
##########
@@ -110,8 +112,8 @@ public byte[]
unpackContainerData(Container<KeyValueContainerData> container,
StandardCopyOption.ATOMIC_MOVE,
StandardCopyOption.REPLACE_EXISTING);
} else {
- throw new IOException("Unpack destination directory " + destContainerDir
- + " is not empty.");
+ throw new StorageContainerException("Container unpack failed because " +
+ "ContainerFile already exists", CONTAINER_ALREADY_EXISTS);
Review Comment:
Please add container ID or destContainerDir in the error message for a
easier diagnose.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]