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

[Backport 2.x] Default discovery-ec2 region to none. #7971

Merged
merged 1 commit into from
Jun 8, 2023

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport f27172b from #7969.

Signed-off-by: dblock <[email protected]>
(cherry picked from commit f27172b)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@github-actions
Copy link
Contributor

github-actions bot commented Jun 8, 2023

Gradle Check (Jenkins) Run Completed with:

@kotwanikunal
Copy link
Member

> Task :server:test

REPRODUCE WITH: ./gradlew ':server:test' --tests "org.opensearch.cluster.coordination.CoordinatorTests.testUnresponsiveLeaderDetectedEventually" -Dtests.seed=162694DEF7CDB844 -Dtests.security.manager=true -Dtests.jvm.argline="-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=64m" -Dtests.locale=es-CU -Dtests.timezone=MST7MDT -Druntime.java=17

org.opensearch.cluster.coordination.CoordinatorTests > testUnresponsiveLeaderDetectedEventually FAILED
    java.lang.AssertionError: node0 has applied its state 
    Expected: <8L>
         but: was <7L>
        at __randomizedtesting.SeedInfo.seed([162694DEF7CDB844:6C4F939E12DF7B55]:0)
        at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
        at org.junit.Assert.assertThat(Assert.java:964)
        at org.opensearch.cluster.coordination.AbstractCoordinatorTestCase$Cluster.stabilise(AbstractCoordinatorTestCase.java:578)
        at org.opensearch.cluster.coordination.CoordinatorTests.testUnresponsiveLeaderDetectedEventually(CoordinatorTests.java:568)

@kotwanikunal
Copy link
Member

> Task :server:test

REPRODUCE WITH: ./gradlew ':server:test' --tests "org.opensearch.cluster.coordination.CoordinatorTests.testUnresponsiveLeaderDetectedEventually" -Dtests.seed=162694DEF7CDB844 -Dtests.security.manager=true -Dtests.jvm.argline="-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=64m" -Dtests.locale=es-CU -Dtests.timezone=MST7MDT -Druntime.java=17

org.opensearch.cluster.coordination.CoordinatorTests > testUnresponsiveLeaderDetectedEventually FAILED
    java.lang.AssertionError: node0 has applied its state 
    Expected: <8L>
         but: was <7L>
        at __randomizedtesting.SeedInfo.seed([162694DEF7CDB844:6C4F939E12DF7B55]:0)
        at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18)
        at org.junit.Assert.assertThat(Assert.java:964)
        at org.opensearch.cluster.coordination.AbstractCoordinatorTestCase$Cluster.stabilise(AbstractCoordinatorTestCase.java:578)
        at org.opensearch.cluster.coordination.CoordinatorTests.testUnresponsiveLeaderDetectedEventually(CoordinatorTests.java:568)

Does not fail on main with the same seed.

@dblock
Copy link
Member

dblock commented Jun 8, 2023

@kotwanikunal for flaky tests, look for an existing, otherwise open a new issue, I just did #7973

@kotwanikunal
Copy link
Member

#7973

I was trying to figure out if the test is actually flaky or is it this change/branch which is causing the failure :)
Usually retrying with the same seed makes it fail, and then we raise an issue.
In this case, main does not fail with the same seed and I just tested 2.x, which fails.
Something missing or additional in 2.x.

@github-actions
Copy link
Contributor

github-actions bot commented Jun 8, 2023

Gradle Check (Jenkins) Run Completed with:

  • RESULT: UNSTABLE ❕
  • TEST FAILURES:
      3 org.opensearch.search.SearchWeightedRoutingIT.testStrictWeightedRoutingWithCustomString
      1 org.opensearch.cluster.routing.allocation.decider.MockDiskUsagesIT.testRerouteOccursOnDiskPassingHighWatermark

@codecov
Copy link

codecov bot commented Jun 8, 2023

Codecov Report

Merging #7971 (c03999d) into 2.x (3df1733) will decrease coverage by 0.07%.
The diff coverage is 83.33%.

@@             Coverage Diff              @@
##                2.x    #7971      +/-   ##
============================================
- Coverage     70.61%   70.55%   -0.07%     
+ Complexity    56566    56544      -22     
============================================
  Files          4681     4681              
  Lines        268060   268062       +2     
  Branches      39656    39657       +1     
============================================
- Hits         189301   189129     -172     
- Misses        62438    62662     +224     
+ Partials      16321    16271      -50     
Impacted Files Coverage Δ
...rg/opensearch/discovery/ec2/AwsEc2ServiceImpl.java 89.06% <75.00%> (-1.27%) ⬇️
...rg/opensearch/discovery/ec2/Ec2ClientSettings.java 98.50% <100.00%> (ø)

... and 472 files with indirect coverage changes

@kotwanikunal kotwanikunal merged commit 2ac43f2 into 2.x Jun 8, 2023
@github-actions github-actions bot deleted the backport/backport-7969-to-2.x branch June 8, 2023 19:13
gaiksaya pushed a commit to gaiksaya/OpenSearch that referenced this pull request Jun 26, 2023
…search-project#7971)

(cherry picked from commit f27172b)

Signed-off-by: dblock <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.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.

2 participants