Skip to content

Commit

Permalink
Merge pull request #122 from sahuang/master
Browse files Browse the repository at this point in the history
Upgrade to sdk v0.8.3
  • Loading branch information
Xiaohai Xu authored Jul 20, 2020
2 parents 8e5f830 + d9a784e commit 48327b2
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 19 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# Changelog
# Changelog

## milvus-sdk-java 0.8.3 (2020-07-15)

### Improvement

- \#117 - Remove isConnect() API

## milvus-sdk-java 0.8.0 (2020-05-15)

Expand Down
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ The following table shows compatibilities between Milvus and Java SDK.

| Milvus version | Java SDK version |
| :------------: | :--------------: |
| 0.10.1 | 0.8.3 |
| 0.10.0 | 0.8.2 |
| 0.9.1 | 0.8.1 |
| 0.9.0 | 0.8.0 |
Expand All @@ -23,9 +24,6 @@ The following table shows compatibilities between Milvus and Java SDK.
| 0.7.0 | 0.5.0 |
| 0.6.0 | 0.4.1 |
| 0.5.3 | 0.3.0 |
| 0.5.2 | 0.2.2 |
| 0.5.1 | 0.2.2 |
| 0.5.0 | 0.2.2 |

### Install Java SDK

Expand All @@ -37,14 +35,14 @@ You can use **Apache Maven** or **Gradle**/**Grails** to download the SDK.
<dependency>
<groupId>io.milvus</groupId>
<artifactId>milvus-sdk-java</artifactId>
<version>0.8.2</version>
<version>0.8.3</version>
</dependency>
```

- Gradle/Grails

```gradle
compile 'io.milvus:milvus-sdk-java:0.8.2'
compile 'io.milvus:milvus-sdk-java:0.8.3'
```

### Examples
Expand Down
4 changes: 2 additions & 2 deletions examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

<groupId>io.milvus</groupId>
<artifactId>milvus-sdk-java-examples</artifactId>
<version>0.8.2</version>
<version>0.8.3</version>
<build>
<plugins>
<plugin>
Expand Down Expand Up @@ -63,7 +63,7 @@
<dependency>
<groupId>io.milvus</groupId>
<artifactId>milvus-sdk-java</artifactId>
<version>0.8.2</version>
<version>0.8.3</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
Expand Down
17 changes: 10 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@

<groupId>io.milvus</groupId>
<artifactId>milvus-sdk-java</artifactId>
<version>0.8.2</version>
<version>0.8.3</version>
<packaging>jar</packaging>

<name>io.milvus:milvus-sdk-java</name>
<description>Java SDK for Milvus distributed high-performance vector search engine.</description>
<description>Java SDK for Milvus, a distributed high-performance vector search engine.</description>
<url>https://github.com/milvus-io/milvus-sdk-java</url>

<licenses>
Expand All @@ -42,14 +42,14 @@

<developers>
<developer>
<name>Zhiru Zhu</name>
<email>zhiru.zhu@zilliz.com</email>
<name>Xiaohai Xu</name>
<email>xiaohai.xu@zilliz.com</email>
<organization>Milvus</organization>
<organizationUrl>http://www.milvus.io</organizationUrl>
</developer>
<developer>
<name>Xiaohai Xu</name>
<email>xiaohai.xu@zilliz.com</email>
<name>Zhiru Zhu</name>
<email>zhiru.zhu@zilliz.com</email>
<organization>Milvus</organization>
<organizationUrl>http://www.milvus.io</organizationUrl>
</developer>
Expand All @@ -70,7 +70,7 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<grpc.version>1.27.2</grpc.version>
<grpc.version>1.30.2</grpc.version>
<protobuf.version>3.11.0</protobuf.version>
<protoc.version>3.11.0</protoc.version>
<maven.compiler.source>1.8</maven.compiler.source>
Expand Down Expand Up @@ -98,15 +98,18 @@
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-netty-shaded</artifactId>
<version>1.30.2</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-protobuf</artifactId>
<version>1.30.2</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-stub</artifactId>
<version>1.30.2</version>
</dependency>
<dependency>
<groupId>javax.annotation</groupId>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/io/milvus/client/MilvusClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
/** The Milvus Client Interface */
public interface MilvusClient {

String clientVersion = "0.8.2";
String clientVersion = "0.8.3";

/** @return current Milvus client version: 0.8.2 */
/** @return current Milvus client version: 0.8.3 */
default String getClientVersion() {
return clientVersion;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/milvus/client/MilvusGrpcClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public Response connect(ConnectParam connectParam) throws ConnectFailedException
String serverVersion = getServerVersion().getMessage();
if (!serverVersion.contains("0.10.")) {
logError(
"Connect failed! Server version {} does not match SDK version 0.8.2", serverVersion);
"Connect failed! Server version {} does not match SDK version 0.8.3", serverVersion);
throw new ConnectFailedException("Failed to connect to Milvus server.");
}

Expand Down
2 changes: 1 addition & 1 deletion src/test/java/io/milvus/client/MilvusGrpcClientTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ void searchAsync() throws ExecutionException, InterruptedException {

@org.junit.jupiter.api.Test
void searchBinary() {
final long binaryDimension = 10000;
final int binaryDimension = 10000;

String binaryCollectionName = generator.generate(10);
CollectionMapping collectionMapping =
Expand Down

0 comments on commit 48327b2

Please sign in to comment.