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

Flaky RemoteClustersIT: Add assert busy to avoid race condition #11057

Merged
merged 3 commits into from
Nov 8, 2023

Conversation

ankitkala
Copy link
Member

@ankitkala ankitkala commented Nov 2, 2023

Description

Avoid potential race condition in RemoteClustersIT.testHAProxyModeConnectionWorks

Related Issues

#1703

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Failing checks are inspected and point to the corresponding known issue(s) (See: Troubleshooting Failing Builds)
  • Commits are signed per the DCO using --signoff
  • Commit changes are listed out in CHANGELOG.md file (See: Changelog)
  • Public documentation issue/PR created

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.

Copy link
Contributor

github-actions bot commented Nov 2, 2023

Compatibility status:

Checks if related components are compatible with change bde5021

Incompatible components

Incompatible components: [https://github.com/opensearch-project/performance-analyzer.git]

Skipped components

Compatible components

Compatible components: [https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/sql.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/common-utils.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/reporting.git, https://github.com/opensearch-project/cross-cluster-replication.git, https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/custom-codecs.git, https://github.com/opensearch-project/performance-analyzer-rca.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/opensearch-oci-object-storage.git, https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/neural-search.git]

Copy link
Contributor

github-actions bot commented Nov 2, 2023

Gradle Check (Jenkins) Run Completed with:

@ankitkala
Copy link
Member Author

ankitkala commented Nov 2, 2023

Known flaky test: #10154

REPRODUCE WITH: ./gradlew ':server:internalClusterTest' --tests "org.opensearch.search.aggregations.metrics.CardinalityWithRequestBreakerIT" -Dtests.method="testRequestBreaker {p0={"search.concurrent_segment_search.enabled":"true"}}" -Dtests.seed=52B7BFDB40480C4E -Dtests.security.manager=true -Dtests.jvm.argline="-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=64m" -Dtests.locale=zh-Hans-CN -Dtests.timezone=Africa/Douala -Druntime.java=21

org.opensearch.search.aggregations.metrics.CardinalityWithRequestBreakerIT > testRequestBreaker {p0={"search.concurrent_segment_search.enabled":"true"}} FAILED
    java.lang.AssertionError: Request breaker not reset to 0 on node: node_s3
    Expected: <0L>
         but: was <384L>
        at __randomizedtesting.SeedInfo.seed([52B7BFDB40480C4E:EAE5829BAF88DE04]:0)
        at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
        at org.junit.Assert.assertThat(Assert.java:964)
        at org.opensearch.test.InternalTestCluster.lambda$ensureEstimatedStats$42(InternalTestCluster.java:2705)
        at org.opensearch.test.OpenSearchTestCase.assertBusy(OpenSearchTestCase.java:1086)
        at org.opensearch.test.OpenSearchTestCase.assertBusy(OpenSearchTestCase.java:1059)
        at org.opensearch.test.InternalTestCluster.ensureEstimatedStats(InternalTestCluster.java:2703)
        at org.opensearch.test.TestCluster.assertAfterTest(TestCluster.java:106)
        at org.opensearch.test.InternalTestCluster.assertAfterTest(InternalTestCluster.java:2761)

@peternied peternied self-assigned this Nov 2, 2023
Copy link
Contributor

github-actions bot commented Nov 7, 2023

Gradle Check (Jenkins) Run Completed with:

Copy link
Contributor

github-actions bot commented Nov 8, 2023

Gradle Check (Jenkins) Run Completed with:

@ankitkala
Copy link
Member Author

Gradle Check (Jenkins) Run Completed with:

Flaky test: #10704

Copy link
Contributor

github-actions bot commented Nov 8, 2023

Gradle Check (Jenkins) Run Completed with:

Signed-off-by: Ankit Kala <ankikala@amazon.com>
Signed-off-by: Ankit Kala <ankikala@amazon.com>
Signed-off-by: Ankit Kala <ankikala@amazon.com>
Copy link
Contributor

github-actions bot commented Nov 8, 2023

Gradle Check (Jenkins) Run Completed with:

Copy link

codecov bot commented Nov 8, 2023

Codecov Report

Merging #11057 (bde5021) into main (0ba5d58) will decrease coverage by 0.53%.
The diff coverage is 50.00%.

@@             Coverage Diff              @@
##               main   #11057      +/-   ##
============================================
- Coverage     71.67%   71.14%   -0.53%     
+ Complexity    59187    58762     -425     
============================================
  Files          4883     4883              
  Lines        277139   277139              
  Branches      40284    40284              
============================================
- Hits         198643   197182    -1461     
- Misses        62247    63436    +1189     
- Partials      16249    16521     +272     
Files Coverage Δ
.../opensearch/transport/ProxyConnectionStrategy.java 88.28% <100.00%> (ø)
...org/opensearch/transport/RemoteClusterService.java 86.27% <0.00%> (ø)

... and 474 files with indirect coverage changes

@gbbafna gbbafna merged commit 4d8c228 into opensearch-project:main Nov 8, 2023
27 of 29 checks passed
@ankitkala ankitkala deleted the proxy_connection branch November 8, 2023 09:09
rayshrey pushed a commit to rayshrey/OpenSearch that referenced this pull request Mar 18, 2024
shiv0408 pushed a commit to Gaurav614/OpenSearch that referenced this pull request Apr 25, 2024
…search-project#11057)

Signed-off-by: Ankit Kala <ankikala@amazon.com>
Signed-off-by: Shivansh Arora <hishiv@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants