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

Moved remote index build client to a separate module #2588

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

navneet1v
Copy link
Collaborator

Description

Moved remote index build client to a separate module

Next steps:
Add few tests which are removed.

Related Issues

NA

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • API changes companion pull request created.
  • 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.

@navneet1v navneet1v force-pushed the main branch 2 times, most recently from b7799c3 to b4d7e3c Compare March 7, 2025 08:01
Signed-off-by: Navneet Verma <navneev@amazon.com>
Copy link
Contributor

@jed326 jed326 left a comment

Choose a reason for hiding this comment

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

Thanks @navneet1v , changes LGTM but had one discussion point

Comment on lines -396 to +399
RemoteIndexHTTPClient.reloadAuthHeader(settings);
SecureString username = KNNSettings.KNN_REMOTE_BUILD_CLIENT_USERNAME_SETTING.get(settings);
SecureString password = KNNSettings.KNN_REMOTE_BUILD_CLIENT_PASSWORD_SETTING.get(settings);
RemoteIndexHTTPClient.reloadAuthHeader(username, password);
Copy link
Contributor

Choose a reason for hiding this comment

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

Thinking out loud here, should we go one step further and define the client as it's own plugin?

Copy link
Collaborator Author

@navneet1v navneet1v Mar 7, 2025

Choose a reason for hiding this comment

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

This is very interesting thought. the reason of having this as a plugin is because we have like repository-s3 plugin, azure plugin which does similar things which is providing abstraction over s3, azure store

@jed326
Copy link
Contributor

jed326 commented Mar 7, 2025

Also I lean towards pulling this in after #2576

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.

2 participants