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

fix gradle check failure caused by init of EngineConfig #2663

Conversation

Poojita-Raj
Copy link
Contributor

@Poojita-Raj Poojita-Raj commented Mar 30, 2022

Signed-off-by: Poojita Raj [email protected]

Description

Fixes the failing tests caused by incorrect initialization of engineConfig in -

  1. EngineTestCase
  2. RefreshListenerTests

Issues Resolved

Failure mentioned in issue #2414

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.

@Poojita-Raj Poojita-Raj requested a review from a team as a code owner March 30, 2022 16:47
@opensearch-ci-bot
Copy link
Collaborator

❌   Gradle Check failure 04a96171f307fa5243a63f44dde61215b67a910e
Log 3897

Reports 3897

@kartg
Copy link
Member

kartg commented Mar 30, 2022

The Gradle failure suggests that this change may be needed in other places as well.

I see that all of the tests in RefreshListenersTests have failed. This class creates an EngineConfig instance and also sets isReadOnly to true assuming it is isPrimary

Maybe this change is needed in more classes?

@Poojita-Raj Poojita-Raj changed the title fix gradle check failure testOutOfMemoryErrorWhileMergingIsRethrownAn… fix gradle check failure caused by init of EngineConfig Mar 30, 2022
@Poojita-Raj
Copy link
Contributor Author

The Gradle failure suggests that this change may be needed in other places as well.

I see that all of the tests in RefreshListenersTests have failed. This class creates an EngineConfig instance and also sets isReadOnly to true assuming it is isPrimary

Maybe this change is needed in more classes?

Good catch Kartik! I was only focused on the failure in the last gradle check failure log and missed this, made the changes as suggested now

@Poojita-Raj Poojita-Raj self-assigned this Mar 30, 2022
@Poojita-Raj Poojita-Raj requested a review from kartg March 30, 2022 18:54
@opensearch-ci-bot
Copy link
Collaborator

❌   Gradle Check failure 6194e19
Log 3907

Reports 3907

@Poojita-Raj Poojita-Raj merged commit 4da50a7 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.

3 participants