ayushtkn commented on PR #6133:
URL: https://github.com/apache/hadoop/pull/6133#issuecomment-1749614219

   @pjfanning We have a test failure. 
(https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6133/1/testReport/org.apache.hadoop.fs.azurebfs.services/TestTextFileBasedIdentityHandler/)
   Can you shoot an addendum with the fix. I tried locally
   ```
   diff --git 
a/hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/services/TestTextFileBasedIdentityHandler.java
 
b/hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/services/TestTextFileBasedIdentityHandler.java
   index f9950faf944..66614ddb3fd 100644
   --- 
a/hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/services/TestTextFileBasedIdentityHandler.java
   +++ 
b/hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/services/TestTextFileBasedIdentityHandler.java
   @@ -22,6 +22,7 @@
    import java.io.FileNotFoundException;
    import java.io.IOException;
    import java.nio.charset.Charset;
   +import java.nio.file.NoSuchFileException;
    
    import org.junit.Assert;
    import org.junit.BeforeClass;
   @@ -114,7 +115,7 @@ public void testLookupForUser() throws IOException {
      public void testLookupForUserFileNotFound() throws Exception {
        TextFileBasedIdentityHandler handler =
            new TextFileBasedIdentityHandler(userMappingFile.getPath() + 
".test", groupMappingFile.getPath());
   -    intercept(FileNotFoundException.class, "FileNotFoundException",
   +    intercept(NoSuchFileException.class, "NoSuchFile",
            () -> 
handler.lookupForLocalUserIdentity(testUserDataLine3.split(":")[0]));
      }
    
   @@ -143,7 +144,7 @@ public void testLookupForGroup() throws IOException {
      public void testLookupForGroupFileNotFound() throws Exception {
        TextFileBasedIdentityHandler handler =
            new TextFileBasedIdentityHandler(userMappingFile.getPath(), 
groupMappingFile.getPath() + ".test");
   -    intercept(FileNotFoundException.class, "FileNotFoundException",
   +    intercept(NoSuchFileException.class, "NoSuchFile",
            () -> 
handler.lookupForLocalGroupIdentity(testGroupDataLine2.split(":")[0]));
      }
    }
   
   ```


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