You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by st...@apache.org on 2022/08/05 14:54:17 UTC
[hadoop] branch branch-3.3 updated: HADOOP-18366. ITestS3Select.testSelectSeekFullLandsat is timing out. (#4702)
This is an automated email from the ASF dual-hosted git repository.
stevel pushed a commit to branch branch-3.3
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/branch-3.3 by this push:
new 351a9f732bc HADOOP-18366. ITestS3Select.testSelectSeekFullLandsat is timing out. (#4702)
351a9f732bc is described below
commit 351a9f732bc1a138efaa533607b87261e2e996b2
Author: ahmarsuhail <ah...@gmail.com>
AuthorDate: Fri Aug 5 14:13:04 2022 +0100
HADOOP-18366. ITestS3Select.testSelectSeekFullLandsat is timing out. (#4702)
Reduces size of data read to 1 MB
Contributed by Ahmar Suhail
---
.../java/org/apache/hadoop/fs/s3a/select/ITestS3SelectLandsat.java | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/select/ITestS3SelectLandsat.java b/hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/select/ITestS3SelectLandsat.java
index 8b0578df11c..51da971fb70 100644
--- a/hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/select/ITestS3SelectLandsat.java
+++ b/hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/select/ITestS3SelectLandsat.java
@@ -415,7 +415,7 @@ public class ITestS3SelectLandsat extends AbstractS3SelectTest {
long increment = 64 * _1KB;
// seek forward, comparing bytes
- for(offset = 32 * _1KB; offset < actualLen; offset += increment) {
+ for(offset = 32 * _1KB; offset < _1MB; offset += increment) {
seek(seekStream, offset);
assertEquals("Seek position in " + seekStream,
offset, seekStream.getPos());
@@ -423,11 +423,6 @@ public class ITestS3SelectLandsat extends AbstractS3SelectTest {
assertEquals("byte at seek position",
dataset[(int) seekStream.getPos()], seekStream.read());
}
- for(; offset < len; offset += _1MB) {
- seek(seekStream, offset);
- assertEquals("Seek position in " + seekStream,
- offset, seekStream.getPos());
- }
// there's no knowledge of how much data is left, but with Gzip
// involved there can be a lot. To keep the test duration down,
// this test, unlike the simpler one, doesn't try to read past the
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org