sumangala-patki commented on a change in pull request #2975:
URL: https://github.com/apache/hadoop/pull/2975#discussion_r669171150
##########
File path:
hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/services/TestAbfsInputStream.java
##########
@@ -192,6 +198,95 @@ public TestAbfsInputStream() throws Exception {
ReadBufferManager.getBufferManager().setThresholdAgeMilliseconds(REDUCED_READ_BUFFER_AGE_THRESHOLD);
}
+ private void writeBufferToNewFile(Path testFile, byte[] buffer) throws
IOException {
+ AzureBlobFileSystem fs = getFileSystem();
+ fs.create(testFile);
+ FSDataOutputStream out = fs.append(testFile);
+ out.write(buffer);
+ out.close();
+ }
+
+ private void verifyOpenWithProvidedStatus(Path path, FileStatus fileStatus,
+ byte[] buf, AbfsRestOperationType source)
+ throws IOException, ExecutionException, InterruptedException {
+ byte[] readBuf = new byte[buf.length];
+ FSDataInputStream in = getFileSystem().openFileWithOptions(path,
Review comment:
done
--
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]