anoopsjohn commented on a change in pull request #2646:
URL: https://github.com/apache/hadoop/pull/2646#discussion_r572594171
##########
File path:
hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/ITestAbfsInputStreamStatistics.java
##########
@@ -399,6 +406,89 @@ public void testActionHttpGetRequest() throws IOException {
}
}
+ @Test
+ public void testPread() throws IOException {
+ describe("Testing preads in AbfsInputStream");
+
+ AzureBlobFileSystem fs = getFileSystem();
+ AzureBlobFileSystemStore abfss = fs.getAbfsStore();
+ Path readStatPath = path(getMethodName());
+
+ AbfsOutputStream out = null;
+ AbfsInputStream in = null;
+ try {
+ out = createAbfsOutputStreamWithFlushEnabled(fs, readStatPath);
+ /*
+ * Writing 1MB buffer to the file.
+ */
+ out.write(defBuffer);
+ out.hflush();
+
+ in = abfss.openFileForRead(readStatPath, Optional.empty(),
Review comment:
Moved stat asserts to new test file as per another comment.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]