-
Notifications
You must be signed in to change notification settings - Fork 58
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
[META] [BUG] Extension-to-OpenSearch connections have multiple bugs #782
Comments
Action:
|
Next immediate step: leave the SDKClient settings alone as they are needed for REST client and shouldn't have been updated using Transport. I tried to revert #730 but too many changes have happened since. For now, we can simply remove this line: opensearch-sdk-java/src/main/java/org/opensearch/sdk/handlers/ExtensionsInitRequestHandler.java Line 67 in 3518f57
This will allow the |
The fix worked for @scrawfor99. |
Reverting the problematic portion of #730 resolves #769. We are effectively maintaining the two different connection parameters:
The Extension Settings solution still doesn't resolve the chicken-and-egg situation of needing to know the OpenSearch REST endpoint prior to starting the extension. To resolve this, @owaiskazi19 is working toward a solution:
|
We can update the OpenSearch REST connections during extension initialization using the environment settings passed to the
OpenSearch defaults its http port to |
Nice find!
That's great for the REST client, but you didn't mention this:
This doesn't solve for all use cases but is definitely helpful in filling in parts of the puzzle. |
What is the bug?
This is a consolidation of multiple bugs and attempts to fix (not yet resolved) that are creating various blockers for @scrawfor99 and @cwperks (Security), @ryanbogan and @joshpalis (Integration testing), and @dbwiddis and @vibrantvarun (performance testing).
Root problem: Extensions need the OpenSearch IP and port to create a transport connection. This is defined/available in multiple places:
There are some chicken-and-egg issues as well:
How can one reproduce the bug?
Attempt to initialize extensions and establish both Transport and REST connections at other than well-known localhost ports.
Do you have any additional context?
Current status:
What needs to be done to fix this:
The text was updated successfully, but these errors were encountered: