ChenSammi commented on code in PR #8693:
URL: https://github.com/apache/ozone/pull/8693#discussion_r2199773503


##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/impl/ContainerSet.java:
##########
@@ -217,6 +221,19 @@ private boolean addContainer(Container<?> container, 
boolean overwrite) throws
    */
   public Container updateContainer(Container<?> container) throws
       StorageContainerException {
+    // Check for an injected fault before proceeding.
+    if (faultInjector != null) {
+      Throwable e = faultInjector.getException();
+      if (e != null) {
+        if (e instanceof IOException) {
+          throw new StorageContainerException("Fault Injection",

Review Comment:
   Why need to distinguish different exception type here? 



-- 
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]

Reply via email to