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

Milvus Client V2 #746

Merged
merged 1 commit into from
Jan 26, 2024
Merged

Milvus Client V2 #746

merged 1 commit into from
Jan 26, 2024

Conversation

nianliuu
Copy link
Collaborator

@nianliuu nianliuu commented Jan 23, 2024

Description

Currently we have 5 different milvus SDK: python, java, node, go, restful. With the evolve of milvus, different api have different api format and usage. It's becoming harder to maintain for owner and harder to use for user. Based on this, we reformate unified all 5 SDKs. Providing this V2 API.

Code Change

  • all apis are under MilvusClientV2, user can call all apis under this class
  • refactor api request and response to make them simple and easy to user
  • use Req and Resp for request and response, not expose java class from grpc
  • all files are under v2 path, not overlap with v1 api
  • only add basic parameter for this version, some advance feature needs future development

Test

  • add unit tests for all v2 APIs
  • may still need test team to test them thoroughly

@sre-ci-robot
Copy link

Welcome @nianliuu! It looks like this is your first PR to milvus-io/milvus-sdk-java 🎉

*/
public void connect(ConnectConfig connectConfig){
this.connectConfig = connectConfig;
channel = clientUtils.getChannel(connectConfig);
Copy link
Contributor

Choose a reason for hiding this comment

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

If the "channel" is already connected, better to shutdown it before this line.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ok, will update
if(this.channel != null){
this.channel.shutdownNow();
}

@nianliuu nianliuu changed the title V2 Milvus Client Milvus Client V2 Jan 26, 2024
@mergify mergify bot added the ci-passed label Jan 26, 2024
@yhmo
Copy link
Contributor

yhmo commented Jan 26, 2024

/lgtm
/approve

@sre-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: nianliuu, yhmo

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sre-ci-robot sre-ci-robot merged commit b9e4c05 into milvus-io:master Jan 26, 2024
5 checks passed
nianliuu added a commit that referenced this pull request Jan 26, 2024
…or V2 API. (#746)

Signed-off-by: Nian Liu <[email protected]>
(cherry picked from commit b9e4c05)
nianliuu added a commit that referenced this pull request Jan 26, 2024
…or V2 API. (#746)

Signed-off-by: Nian Liu <[email protected]>
(cherry picked from commit b9e4c05)
nianliuu added a commit that referenced this pull request Feb 5, 2024
@nianliuu nianliuu deleted the api_v2 branch March 28, 2024 03:50
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.

3 participants