hemantk-12 commented on code in PR #5844:
URL: https://github.com/apache/ozone/pull/5844#discussion_r1434001936


##########
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/fs/ozone/TestRootedOzoneFileSystem.java:
##########
@@ -421,10 +422,11 @@ public void testDeleteCreatesFakeParentDir() throws 
Exception {
     // Creating a child should not add parent keys to the bucket
     try {
       getKey(parent, true);
-    } catch (IOException ex) {
-      assertKeyNotFoundException(ex);
+    } catch (OMException ome) {
+      Assertions.assertEquals(KEY_NOT_FOUND, ome.getResult());

Review Comment:
   Changed it to static import.



##########
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/fs/ozone/TestRootedOzoneFileSystem.java:
##########
@@ -350,8 +351,8 @@ public void testCreateDoesNotAddParentDirKeys() throws 
Exception {
     // Creating a child should not add parent keys to the bucket
     try {
       getKey(parent, true);
-    } catch (IOException ex) {
-      assertKeyNotFoundException(ex);
+    } catch (OMException ome) {
+      Assertions.assertEquals(KEY_NOT_FOUND, ome.getResult());

Review Comment:
   Changed it to static import.



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