Parcourir la source

HADOOP-14500. Azure: TestFileSystemOperationExceptionHandling{,MultiThreaded} fails. Contributed by Rajesh Balamohan

Mingliang Liu il y a 8 ans
Parent
commit
df35e4cc3b

+ 1 - 0
hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azure/TestFileSystemOperationExceptionHandling.java

@@ -94,6 +94,7 @@ public class TestFileSystemOperationExceptionHandling
     AzureBlobStorageTestAccount testAccount = createTestAccount();
     setupInputStreamToTest(testAccount);
     inputStream.seek(5);
+    inputStream.read();
   }
 
   /*

+ 1 - 0
hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azure/TestFileSystemOperationsExceptionHandlingMultiThreaded.java

@@ -91,6 +91,7 @@ public class TestFileSystemOperationsExceptionHandlingMultiThreaded
     renameThread.join();
 
     inputStream.seek(5);
+    inputStream.read();
   }
 
   @Test(expected=FileNotFoundException.class)