LeoYimingLi opened a new pull request #433:
URL: https://github.com/apache/jackrabbit-oak/pull/433
- Related 4 flaky tests:
-
org.apache.jackrabbit.oak.plugins.document.ClusterViewTest#testOneActiveSeveralInactive
-
org.apache.jackrabbit.oak.plugins.document.ClusterViewTest#testSeveralActiveOneInactive
-
org.apache.jackrabbit.oak.plugins.document.ClusterViewTest#testWithRecoveringAndBacklog
-
org.apache.jackrabbit.oak.plugins.document.ClusterViewTest#testWithRecoveringOnly
- The flakiness is due to the nondeterministic iterative order of
```HashSet```
- This proposed method is changing ```HashSet``` to ```LinkedHashSet``` to
keep the order deterministic.
More Information
- Version of ```jackrabbit-oak```
SHA: 08eab301c869c227d8721da0e9b9bd3d2029d458
- JVM version
> openjdk version "1.8.0_292"
OpenJDK Runtime Environment (build 1.8.0_292-8u292-b10-0ubuntu1~18.04-b10)
OpenJDK 64-Bit Server VM (build 25.292-b10, mixed mode)
- The way to reproduce the flaky test failure (using the test
```org.apache.jackrabbit.oak.plugins.document.ClusterViewTest#testOneActiveSeveralInactive```
as example)
- 0.Environment setup: Maven 3.6.0 and Java 1.8.0_292
- 1.clone the repo:
```
git clone https://github.com/apache/jackrabbit-oak
cd jackrabbit-oak
git checkout 08eab301c869c227d8721da0e9b9bd3d2029d458
```
- 2.run with [Nondex
tool](https://github.com/TestingResearchIllinois/NonDex) (which explores
different behaviors of under-determined APIs and reports test failures)
```
mvn install -pl core -am -DskipTests
mvn -pl core edu.illinois:nondex-maven-plugin:1.1.2:nondex
-Dtest=org.apache.jackrabbit.oak.plugins.document.ClusterViewTest#testOneActiveSeveralInactive
```
- 3.And we can get the test failure screenshot:

- 4.about the code trace:
```
mvn -pl core edu.illinois:nondex-maven-plugin:1.1.2:debug
-Dtest=org.apache.jackrabbit.oak.plugins.document.ClusterViewTest#testOneActiveSeveralInactive
```
we can get the code trace result

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