Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify flaky test testRemotePublicationDisabledByRollingRestart #15854

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

shiv0408
Copy link
Member

@shiv0408 shiv0408 commented Sep 9, 2024

Description

Remove assertion on incompatible Diff Received is 0 after cluster manager flipped, as it is possible that one of nodes lags and receives a incompatible diff, then requests for full state after remote publication is disabled and we have shifted to publication on transport.

Ran the test 7k times to ensure no flakiness in the test.

./gradlew ':server:internalClusterTest' --tests "org.opensearch.gateway.remote.RemoteStatePublicationIT.testRemotePublicationDisabledByRollingRestart" -Dtests.iters=10000 -Dtests.timeoutSuite=6000000!
=======================================
OpenSearch Build Hamster says Hello!
  Gradle Version        : 8.10
  OS Info               : Linux 6.1.106-116.188.amzn2023.x86_64 (amd64)
  JDK Version           : 17 (Amazon Corretto JDK)
  JAVA_HOME             : /usr/lib/jvm/java-17-amazon-corretto.x86_64
  Random Testing Seed   : 290AD55D5B347224
  In FIPS 140 mode      : false
=======================================

> Task :server:compileJava
Note: Processing Log4j annotations
Note: Annotations processed
Note: Processing OpenSearch Api annotations
Note: Processing Log4j annotations
Note: No elements to process
Note: Processing OpenSearch Api annotations
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :test:framework:compileJava
Note: Processing Log4j annotations
Note: Annotations processed
Note: Processing Log4j annotations
Note: No elements to process
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :server:compileTestJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :server:compileInternalClusterTestJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.opensearch.bootstrap.BootstrapForTesting (file:/home/ec2-user/OpenSearch/test/framework/build/distributions/framework-3.0.0-SNAPSHOT.jar)
WARNING: Please consider reporting this to the maintainers of org.opensearch.bootstrap.BootstrapForTesting
WARNING: System::setSecurityManager will be removed in a future release
<============-> 99% EXECUTING [2h 32m 47s]
> :server:internalClusterTest > 7020 tests completed
> :server:internalClusterTest > Executing test org.opensearch.gateway.remote.RemoteStatePublicationIT

Related Issues

Resolves #15767

Check List

  • Functionality includes testing.
  • API changes companion pull request created, if applicable.
  • Public documentation issue/PR created, if applicable.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Shivansh Arora <[email protected]>
Copy link
Contributor

github-actions bot commented Sep 9, 2024

❌ Gradle check result for b2dd6e3: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@shiv0408
Copy link
Member Author

@shiv0408 shiv0408 closed this Sep 10, 2024
@shiv0408 shiv0408 reopened this Sep 10, 2024
Copy link
Contributor

❌ Gradle check result for b2dd6e3: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@shiv0408
Copy link
Member Author

@shiv0408 shiv0408 closed this Sep 10, 2024
@shiv0408 shiv0408 reopened this Sep 10, 2024
Copy link
Contributor

❌ Gradle check result for b2dd6e3: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@shiv0408 shiv0408 closed this Sep 10, 2024
@shiv0408 shiv0408 reopened this Sep 10, 2024
Copy link
Contributor

❌ Gradle check result for b2dd6e3: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Copy link
Contributor

✅ Gradle check result for a223e68: SUCCESS

Copy link

codecov bot commented Sep 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.78%. Comparing base (92d7fe8) to head (a223e68).

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #15854      +/-   ##
============================================
- Coverage     71.90%   71.78%   -0.12%     
+ Complexity    64216    64157      -59     
============================================
  Files          5272     5272              
  Lines        300597   300597              
  Branches      43440    43440              
============================================
- Hits         216151   215795     -356     
- Misses        66680    67068     +388     
+ Partials      17766    17734      -32     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Cluster Manager flaky-test Random test failure that succeeds on second run skip-changelog >test-failure Test failure from CI, local build, etc.
Projects
Status: 🏗 In progress
1 participant