jojochuang commented on a change in pull request #2503:
URL: https://github.com/apache/ozone/pull/2503#discussion_r683900515
##########
File path:
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/replication/OnDemandContainerReplicationSource.java
##########
@@ -53,8 +55,10 @@ public void copyData(long containerId, OutputStream
destination)
Container container = controller.getContainer(containerId);
- Preconditions.checkNotNull(
- container, "Container is not found " + containerId);
+ if (container == null) {
+ throw new StorageContainerException("Container not found",
Review comment:
better to add container id too
--
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]