-
Notifications
You must be signed in to change notification settings - Fork 141
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
[Feature/multi_tenancy] [WIP] SdkClient interface and implementation #2430
[Feature/multi_tenancy] [WIP] SdkClient interface and implementation #2430
Conversation
Signed-off-by: Daniel Widdis <[email protected]>
Signed-off-by: Daniel Widdis <[email protected]>
} | ||
|
||
@Override | ||
public CompletionStage<PutCustomResponse> putCustom(PutCustomRequest request) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about Update
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coming soon to a PR near you, but prioritizing initial APIs to support multitenancy work.
new DeleteRequest(request.index(), request.id()), | ||
ActionListener | ||
.wrap( | ||
r -> future.complete(new DeleteCustomResponse.Builder().id(r.getId()).deleted(r.getResult() == DELETED).build()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens if the deletion fails? How are we sending the error response back to the customer?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The actionListener for the whole execution is being completed exceptionally. I have not yet gone through to more carefully identify exception possibilities and give more detailed user information. Again, this is an early-stage WIP.
|
||
/** | ||
* Returns whether deletion was successful | ||
* @return true if deletion was successful, false if the object was not found |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what happens if the object was found but for some reason we couldn't delete.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The onFailure / exception path will be followed instead. This is the same behavior as the current DeleteResponse where you can have either DELETED (true) or NOT_FOUND (false) successful response.
I'm seeing:
Are you planning to look into this? |
Yeah, I missed actually implementing the |
Signed-off-by: Daniel Widdis <[email protected]>
Signed-off-by: Daniel Widdis <[email protected]>
da5f1f3
to
7d03c1e
Compare
Signed-off-by: Daniel Widdis <[email protected]>
Signed-off-by: Daniel Widdis <[email protected]>
7d03c1e
to
fd22232
Compare
Description
Work In Progress
Creates an abstraction for index metadata, see opensearch-project/OpenSearch#13336 and initial implementation for Connector.
The near-term goal is proving out the flexibility of the interface.
Still TODO:
Issues Resolved
Part of #2358
Check List
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.