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

Integration test that checks for settings upgrade #1482

Merged
merged 2 commits into from
Nov 9, 2021
Merged

Integration test that checks for settings upgrade #1482

merged 2 commits into from
Nov 9, 2021

Conversation

meghasaik
Copy link
Contributor

Signed-off-by: Megha Sai Kavikondala kavmegha@amazon.com

Description
[Describe what this change achieves]
An Integration test which checks for the settings upgrade by setting the legacy settings for the previous version of ODFE/ES in the old cluster and after upgrading it to the new version, checks if the settings fallback to the previously set settings.

Issues Resolved
#670

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.

Signed-off-by: Megha Sai Kavikondala <kavmegha@amazon.com>
@opensearch-ci-bot
Copy link
Collaborator

Can one of the admins verify this patch?

@meghasaik
Copy link
Contributor Author

start gradle check

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Wrapper Validation success a35a739

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Precommit success a35a739

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Check success a35a739
Log 935

Reports 935

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Check success a35a739
Log 936

Reports 936

Comment on lines 64 to 66
builder.field("search.remote.foo.skip_unavailable", true);
builder.field("search.remote.foo.seeds", Collections.singletonList("localhost:9200"));
builder.field("search.remote.foo.proxy", "localhost:9200");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trying to understand, are these settings deprecated in newer versions of OpenSearch?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the newer version, the search.remote settings have been deprecated through 'Setting.Property.Deprecated' value.

Copy link
Member

@saratvemulapalli saratvemulapalli Nov 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it.
Looks like we are re-using most of the code from https://github.com/opensearch-project/OpenSearch/blob/main/qa/full-cluster-restart/src/test/java/org/opensearch/upgrades/FullClusterRestartSettingsUpgradeIT.java.

Isn't this already testing these remote settings and are also deprecated? or Am I missing something here?

Changes made by deleting the TestSettingsIT file and adding new lines in FullClusterRestartSettingsUpgradeIT.java
@meghasaik
Copy link
Contributor Author

start gradle check

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Wrapper Validation success 0082131

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Precommit success 0082131

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Check success 0082131
Log 994

Reports 994

Copy link
Member

@saratvemulapalli saratvemulapalli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @meghasaik !

@saratvemulapalli saratvemulapalli merged commit fb78d10 into opensearch-project:main Nov 9, 2021
@saratvemulapalli saratvemulapalli added pending backport Identifies an issue or PR that still needs to be backported :test Adding or fixing a test labels Nov 9, 2021
saratvemulapalli pushed a commit that referenced this pull request Nov 11, 2021
* Made changes.

Signed-off-by: Megha Sai Kavikondala <kavmegha@amazon.com>

* Signed-off-by: Megha Sai Kavikondala <kavmegha@amazon.com>

Changes made by deleting the TestSettingsIT file and adding new lines in FullClusterRestartSettingsUpgradeIT.java

Signed-off-by: Megha Sai Kavikondala <kavmegha@amazon.com>
dblock pushed a commit that referenced this pull request Nov 23, 2021
…- [ BACKPORT-1.x ] (#1601)

* Integration test that checks for settings upgrade  (#1482)

* Made changes.

Signed-off-by: Megha Sai Kavikondala <kavmegha@amazon.com>

* Signed-off-by: Megha Sai Kavikondala <kavmegha@amazon.com>

Changes made by deleting the TestSettingsIT file and adding new lines in FullClusterRestartSettingsUpgradeIT.java

Signed-off-by: Megha Sai Kavikondala <kavmegha@amazon.com>

* Signed-off-by: Megha Sai Kavikondala <kavmegha@amazon.com>

Informative error messages related to empty index name.[Backport]
@dblock dblock removed the pending backport Identifies an issue or PR that still needs to be backported label Dec 6, 2021
@meghasaik meghasaik deleted the upgrade-settings-integ-test branch December 13, 2021 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:test Adding or fixing a test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants