Skip to content

Fixing thread leak errors in tests#2714

Merged
kartg merged 2 commits intoopensearch-project:feature/segment-replicationfrom
kartg:feature/segment-replication
Apr 1, 2022
Merged

Fixing thread leak errors in tests#2714
kartg merged 2 commits intoopensearch-project:feature/segment-replicationfrom
kartg:feature/segment-replication

Conversation

@kartg
Copy link
Copy Markdown
Member

@kartg kartg commented Apr 1, 2022

Description

Fixing thread leak errors in tests - this was occurring due to unused NoOpClient instances that were leftover from refactoring. Since the client was never closed, this caused multiple tests to fail incorrectly.

Signed-off-by: Kartik Ganesh gkart@amazon.com

Issues Resolved

[List any issues this PR will resolve]

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff

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.

This was occurring due to unused NoOpClient instances that were leftover from refactoring.
Since the client was never closed, this caused multiple tests to fail incorrectly.

Signed-off-by: Kartik Ganesh <gkart@amazon.com>
@kartg kartg requested a review from a team as a code owner April 1, 2022 21:36
@opensearch-ci-bot
Copy link
Copy Markdown
Collaborator

❌   Gradle Check failure 9886ab4
Log 4042

Reports 4042

@kartg
Copy link
Copy Markdown
Member Author

kartg commented Apr 1, 2022

* What went wrong:
Execution failed for task ':distribution:bwc:bugfix:buildBwcLinuxTar'.
> Building 1.3.1 didn't generate expected file /var/jenkins/workspace/OpenSearch_CI/PR_Checks/Gradle_Check/search/distribution/bwc/bugfix/build/bwc/checkout-1.3/distribution/archives/linux-tar/build/distributions/opensearch-min-1.3.1-SNAPSHOT-linux-x64.tar.gz

Looks similar to #1958 and #1801

WIll refire Gradle check

@kartg
Copy link
Copy Markdown
Member Author

kartg commented Apr 1, 2022

start gradle check

@tlfeng
Copy link
Copy Markdown
Contributor

tlfeng commented Apr 1, 2022

Hey, seems the above test failure is caused by this commit missing in the feature branch e051a42, adding 1.3.2 into BWC versions.

)

Signed-off-by: Suraj Singh <surajrider@gmail.com>
@kartg
Copy link
Copy Markdown
Member Author

kartg commented Apr 1, 2022

Thanks @tlfeng ! I'll cherry pick that over to the feature branch 😄

@opensearch-ci-bot
Copy link
Copy Markdown
Collaborator

❌   Gradle Check failure 9886ab4
Log 4043

Reports 4043

@opensearch-ci-bot
Copy link
Copy Markdown
Collaborator

❌   Gradle Check failure 030a569
Log 4044

Reports 4044

@kartg
Copy link
Copy Markdown
Member Author

kartg commented Apr 1, 2022

Two test failures - one in the seg-rep IT tests:

java.lang.AssertionError: Count is 58 hits but 110 was expected.  Total shards: 1 Successful shards: 1 & 0 shard failures:

This should be fixed once #2637 is pushed.

The other is in IndexStatsIT.testFilterCacheStats

2> java.lang.AssertionError: expected:<0> but was:<1>
        at __randomizedtesting.SeedInfo.seed([F7ED452E643248E7:92D2B86BD43A4F9E]:0)
        at org.junit.Assert.fail(Assert.java:89)
        at org.junit.Assert.failNotEquals(Assert.java:835)
        at org.junit.Assert.assertEquals(Assert.java:647)
        at org.junit.Assert.assertEquals(Assert.java:633)
        at org.opensearch.indices.stats.IndexStatsIT.testFilterCacheStats(IndexStatsIT.java:1225)

This is flaky test failure captured in #2501

@kartg
Copy link
Copy Markdown
Member Author

kartg commented Apr 1, 2022

start gradle check

@opensearch-ci-bot
Copy link
Copy Markdown
Collaborator

❌   Gradle Check failure 030a569
Log 4046

Reports 4046

@kartg
Copy link
Copy Markdown
Member Author

kartg commented Apr 1, 2022

Failed because of another count assertion error. I'll go ahead and merge.

@kartg kartg merged commit e4ba853 into opensearch-project:feature/segment-replication Apr 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants