Skip to content

Conversation

@steveloughran
Copy link
Contributor

@steveloughran steveloughran commented Jan 5, 2021

Fixing tests which fail intermittently based on configs and
in the case of the HugeFile tests, only in bulk runs when existing
FS instances meant statistic probes sometimes ended up probing those
of a previous FS.

Fixes:


Testing: s3 london with -Dparallel-tests -DtestsThreadCount=6 -Dscale -Dmarkers=keep -Ds3guard -Ddynamo

no test failures!

@steveloughran steveloughran marked this pull request as draft January 5, 2021 20:55
@steveloughran steveloughran added bug fs/s3 changes related to hadoop-aws; submitter must declare test endpoint test test code changes work in progress PRs still Work in Progress; reviews not expected but still welcome labels Jan 5, 2021
@hadoop-yetus

This comment has been minimized.

@steveloughran
Copy link
Contributor Author

yetus failure from OOM/thread issues.

@hadoop-yetus

This comment has been minimized.

@steveloughran
Copy link
Contributor Author

style

./hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/impl/ITestPartialRenamesDeletes.java:702:      bulkDeleteVerbCount.assertDiffEquals("Wrong count of delete operations in ": Line is longer than 80 characters (found 81). [LineLength]
./hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/scale/S3AScaleTestBase.java:29:import org.apache.hadoop.fs.statistics.IOStatistics;:8: Unused import - org.apache.hadoop.fs.statistics.IOStatistics. [UnusedImports]
./hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/scale/S3AScaleTestBase.java:30:import org.apache.hadoop.metrics2.lib.MutableGaugeLong;:8: Unused import - org.apache.hadoop.metrics2.lib.MutableGaugeLong. [UnusedImports]
./hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/scale/S3AScaleTestBase.java:32:import org.assertj.core.api.Assertions;:8: Unused import - org.assertj.core.api.Assertions. [UnusedImports]
./hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/scale/S3AScaleTestBase.java:40:import static org.apache.hadoop.fs.statistics.IOStatisticsLogging.ioStatisticsToString;:15: Unused import - org.apache.hadoop.fs.statistics.IOStatisticsLogging.ioStatisticsToString. [UnusedImports]

@hadoop-yetus

This comment has been minimized.

@steveloughran steveloughran removed the work in progress PRs still Work in Progress; reviews not expected but still welcome label Jan 8, 2021
@steveloughran steveloughran marked this pull request as ready for review January 8, 2021 18:17
@steveloughran
Copy link
Contributor Author

-checkstyle of unused import; fixing.

Ready for review: @bgaborg @mukund-thakur @mehakmeet @sunchao

@hadoop-yetus

This comment has been minimized.

Fixing tests which fail intermittently based on configs and
in the case of the HugeFile tests, only in bulk runs when existing
FS instances meant statistic probes sometimes ended up probing those
of a previous FS.

Fixes:

* HADOOP-17451. HugeFile upload tests
* HADOOP-17456. ITestPartialRenamesDeletes.testPartialDirDelete failure

Does not fix:

* HADOOP-17455. ITestS3ADeleteCost failure

Change-Id: Ie6c392179a137e693ed078b4bf4932b20deea9c4
…ngleFileInDir

Change-Id: I4453c54e8fbd05492c784dbf3a3dbe1238ec1025
Change-Id: I4ca26d507122b8254ddcbe56d07caced529dd665
Change-Id: Ia0ceec8aa7afc38ee5a23e7d2db4a04e9719b42b
@steveloughran steveloughran force-pushed the s3/HADOOP-17451-iostats-test-failures branch from 16513c3 to f303ad4 Compare January 11, 2021 11:29
@steveloughran
Copy link
Contributor Author

last yetus run had execution problems. Rebase to trunk and resubmitting

@hadoop-yetus
Copy link

🎊 +1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 1m 8s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 0m 0s test4tests The patch appears to include 5 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 6m 48s Maven dependency ordering for branch
+1 💚 mvninstall 26m 32s trunk passed
+1 💚 compile 20m 15s trunk passed with JDK Ubuntu-11.0.9.1+1-Ubuntu-0ubuntu1.18.04
+1 💚 compile 17m 27s trunk passed with JDK Private Build-1.8.0_275-8u275-b01-0ubuntu1~18.04-b01
+1 💚 checkstyle 2m 39s trunk passed
+1 💚 mvnsite 2m 26s trunk passed
+1 💚 shadedclient 20m 57s branch has no errors when building and testing our client artifacts.
+1 💚 javadoc 1m 38s trunk passed with JDK Ubuntu-11.0.9.1+1-Ubuntu-0ubuntu1.18.04
+1 💚 javadoc 2m 18s trunk passed with JDK Private Build-1.8.0_275-8u275-b01-0ubuntu1~18.04-b01
+0 🆗 spotbugs 1m 17s Used deprecated FindBugs config; considering switching to SpotBugs.
+1 💚 findbugs 3m 33s trunk passed
_ Patch Compile Tests _
+0 🆗 mvndep 0m 27s Maven dependency ordering for patch
+1 💚 mvninstall 1m 28s the patch passed
+1 💚 compile 19m 42s the patch passed with JDK Ubuntu-11.0.9.1+1-Ubuntu-0ubuntu1.18.04
+1 💚 javac 19m 42s the patch passed
+1 💚 compile 17m 31s the patch passed with JDK Private Build-1.8.0_275-8u275-b01-0ubuntu1~18.04-b01
+1 💚 javac 17m 31s the patch passed
+1 💚 checkstyle 2m 34s the patch passed
+1 💚 mvnsite 2m 27s the patch passed
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 shadedclient 15m 22s patch has no errors when building and testing our client artifacts.
+1 💚 javadoc 1m 40s the patch passed with JDK Ubuntu-11.0.9.1+1-Ubuntu-0ubuntu1.18.04
+1 💚 javadoc 2m 20s the patch passed with JDK Private Build-1.8.0_275-8u275-b01-0ubuntu1~18.04-b01
+1 💚 findbugs 3m 52s the patch passed
_ Other Tests _
+1 💚 unit 9m 45s hadoop-common in the patch passed.
+1 💚 unit 1m 43s hadoop-aws in the patch passed.
+1 💚 asflicense 0m 56s The patch does not generate ASF License warnings.
185m 40s
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2594/5/artifact/out/Dockerfile
GITHUB PR #2594
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle
uname Linux d7f61fc83c94 4.15.0-65-generic #74-Ubuntu SMP Tue Sep 17 17:06:04 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / ec22850
Default Java Private Build-1.8.0_275-8u275-b01-0ubuntu1~18.04-b01
Multi-JDK versions /usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.9.1+1-Ubuntu-0ubuntu1.18.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_275-8u275-b01-0ubuntu1~18.04-b01
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2594/5/testReport/
Max. process+thread count 1367 (vs. ulimit of 5500)
modules C: hadoop-common-project/hadoop-common hadoop-tools/hadoop-aws U: .
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2594/5/console
versions git=2.17.1 maven=3.6.0 findbugs=4.0.6
Powered by Apache Yetus 0.13.0-SNAPSHOT https://yetus.apache.org

This message was automatically generated.

public void bytesTransferred(long byteCount) {
bytesUploaded.addAndGet(byteCount);
incrementGauge(STREAM_WRITE_BLOCK_UPLOADS_BYTES_PENDING, -byteCount);
incAllGauges(STREAM_WRITE_BLOCK_UPLOADS_BYTES_PENDING, -byteCount);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: why change in name as still only one guage is being incremented in the method underneath.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

incAllGauges does both the iostats gauge and the Hadoop metrics gauges; we need that

Copy link
Contributor

@mukund-thakur mukund-thakur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM +1

Copy link
Contributor

@mehakmeet mehakmeet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, tested using mvn clean verify -Ds3guard -Ddynamo -Dauth -Dscale -Dparallel-tests on ap-south, didn't see any test failures regarding IOStats.

@bgaborg bgaborg self-requested a review January 12, 2021 08:49
@bgaborg
Copy link

bgaborg commented Jan 12, 2021

+1 if the nit is fixed which Mukund pointed out: the method naming
tests ran against Ireland without errors. Thanks for fixing it Steve!

@steveloughran
Copy link
Contributor Author

Thanks! Will merge after a rebase on top of mehakmeet's

@steveloughran steveloughran merged commit d3014e0 into apache:trunk Jan 12, 2021
asfgit pushed a commit that referenced this pull request Jan 12, 2021
This reverts commit d3014e0.
(fixing commit text before it is frozen)
asfgit pushed a commit that referenced this pull request Jan 12, 2021
Caused by HADOOP-16830 and HADOOP-17271.

Fixes tests which fail intermittently based on configs and
in the case of the HugeFile tests, bulk runs with existing
FS instances meant statistic probes sometimes ended up probing those
of a previous FS.

Contributed by Steve Loughran.

Change-Id: I65ba3f44444e59d298df25ac5c8dc5a8781dfb7d
steveloughran added a commit to steveloughran/hadoop that referenced this pull request Jan 13, 2021
Caused by HADOOP-16830 and HADOOP-17271.

Fixes tests which fail intermittently based on configs and
in the case of the HugeFile tests, bulk runs with existing
FS instances meant statistic probes sometimes ended up probing those
of a previous FS.

Contributed by Steve Loughran.

Change-Id: I65ba3f44444e59d298df25ac5c8dc5a8781dfb7d
asfgit pushed a commit that referenced this pull request Jan 14, 2021
Caused by HADOOP-16830 and HADOOP-17271.

Fixes tests which fail intermittently based on configs and
in the case of the HugeFile tests, bulk runs with existing
FS instances meant statistic probes sometimes ended up probing those
of a previous FS.

Contributed by Steve Loughran.

Change-Id: I65ba3f44444e59d298df25ac5c8dc5a8781dfb7d
@steveloughran steveloughran deleted the s3/HADOOP-17451-iostats-test-failures branch January 14, 2021 19:12
jojochuang pushed a commit to jojochuang/hadoop that referenced this pull request May 23, 2023
…ache#2594)

Caused by HADOOP-16830 and HADOOP-17271.

Fixes tests which fail intermittently based on configs and
in the case of the HugeFile tests, bulk runs with existing
FS instances meant statistic probes sometimes ended up probing those
of a previous FS.

Contributed by Steve Loughran.

Change-Id: I65ba3f44444e59d298df25ac5c8dc5a8781dfb7d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug fs/s3 changes related to hadoop-aws; submitter must declare test endpoint test test code changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants