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

Don't change Extension REST client Settings with transport node info #786

Merged
merged 1 commit into from
May 25, 2023

Conversation

dbwiddis
Copy link
Member

Description

Removes the line of code from #730 that updates Extension Settings in the SDK (used for REST connections) based on the OpenSearch node from initialization (used for Transport connections)

Issues Resolved

Part of ongoing work on #782. See comment.

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.

@codecov
Copy link

codecov bot commented May 25, 2023

Codecov Report

Merging #786 (fea35f3) into main (579c302) will decrease coverage by 0.43%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##               main     #786      +/-   ##
============================================
- Coverage     43.81%   43.39%   -0.43%     
+ Complexity      314      312       -2     
============================================
  Files            69       69              
  Lines          1990     1975      -15     
  Branches        139      138       -1     
============================================
- Hits            872      857      -15     
+ Misses         1102     1101       -1     
- Partials         16       17       +1     
Impacted Files Coverage Δ
...main/java/org/opensearch/sdk/ExtensionsRunner.java 75.72% <ø> (-0.24%) ⬇️
...rch/sdk/handlers/ExtensionsInitRequestHandler.java 100.00% <100.00%> (+2.38%) ⬆️

... and 1 file with indirect coverage changes

@ryanbogan
Copy link
Member

Are we ok with merging despite the slight codecov decrease?

@dbwiddis
Copy link
Member Author

Are we ok with merging despite the slight codecov decrease?

Well, that's weird because:

The diff coverage is 100.00%.

I looked into the specific changes. The lost coverage is that the new settings here are never actually used/tested:

-             .put(OPENSEARCH_HOST_SETTING, extensionSettings.getOpensearchAddress())
-             .put(OPENSEARCH_PORT_SETTING, extensionSettings.getOpensearchPort())

But they were removed alerady here: https://github.com/opensearch-project/opensearch-sdk-java/pull/783/files

So codecov is using a different base.

@dbwiddis
Copy link
Member Author

Seems Codecov is one commit behind main.

Screenshot 2023-05-25 at 11 29 09 AM

@ryanbogan
Copy link
Member

Ok, seems like we can just merge it in then

@dbwiddis dbwiddis merged commit ba15d56 into opensearch-project:main May 25, 2023
@dbwiddis dbwiddis deleted the no-change-settings branch May 25, 2023 18:56
opensearch-trigger-bot bot pushed a commit that referenced this pull request May 25, 2023
…786)

Signed-off-by: Daniel Widdis <[email protected]>
(cherry picked from commit ba15d56)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
joshpalis pushed a commit that referenced this pull request May 25, 2023
…786) (#787)

(cherry picked from commit ba15d56)

Signed-off-by: Daniel Widdis <[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.

4 participants