mehakmeet commented on a change in pull request #3927:
URL: https://github.com/apache/hadoop/pull/3927#discussion_r827623635



##########
File path: 
hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/scale/ITestS3AInputStreamPerformance.java
##########
@@ -467,6 +467,35 @@ public void testRandomIORandomPolicy() throws Throwable {
         0, streamStatistics.getAborted());
   }
 
+  @Test
+  public void testSkip() throws Throwable {

Review comment:
       Make a file using `ContractTestUtils.dataset()`, with the contents as 
alphabet characters like `ContractTestUtils.dataset(256, 'a', 'z');`. This 
would give you a file with 256 characters in a loop of alphabet from 'a' to 
'z'. Now Open this file, seek some position for eg 100. Then skip 200 bytes. 
Assert what the number of bytes skipped was, and read the file after skipping. 
similarly, you can skip after some bytes then read the file and assert that the 
file read after skipping is what we expect the content to be.




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