Skip to content

Commit

Permalink
Update version info
Browse files Browse the repository at this point in the history
Signed-off-by: Jin Hai <[email protected]>
  • Loading branch information
JinHai-CN committed Jan 9, 2025
1 parent 2df43b5 commit a6b069b
Show file tree
Hide file tree
Showing 85 changed files with 97 additions and 95 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.28.1)

project(infinity VERSION 0.5.2)
project(infinity VERSION 0.6.0)

if(NOT CMAKE_GENERATOR STREQUAL "Ninja")
message(FATAL_ERROR "This project requires the Ninja generator. Refers to https://cmake.org/cmake/help/latest/manual/cmake-cxxmodules.7.html#generator-support")
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Supports a wide range of data types including strings, numerics, vectors, and mo
Infinity supports two working modes, embedded mode and client-server mode. Infinity's embedded mode enables you to quickly embed Infinity into your Python applications, without the need to connect to a separate backend server. The following shows how to operate in embedded mode:

```bash
pip install infinity-embedded-sdk==0.5.2
pip install infinity-embedded-sdk==0.6.0.dev1
```
Use Infinity to conduct a dense vector search:
```python
Expand Down
2 changes: 1 addition & 1 deletion benchmark/remote_infinity/remote_query_benchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ struct InfinityClient {
transport->open();
CommonResponse response;
ConnectRequest request;
request.__set_client_version(27); // 0.5.0.dev6 and 0.5.0.dev7 and 0.5.0 and 0.5.1 and 0.5.2
request.__set_client_version(28); // 0.6.0.dev1
client->Connect(response, request);
session_id = response.session_id;
}
Expand Down
2 changes: 1 addition & 1 deletion client/cpp/infinity_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Client Client::Connect(const std::string &ip_address, uint16_t port) {
transport->open();
CommonResponse response;
ConnectRequest request;
request.__set_client_version(27); // 0.5.0.dev6 and 0.5.0.dev7 and 0.5.0 and 0.5.1 and 0.5.2
request.__set_client_version(28); // 0.6.0.dev1
client->Connect(response, request);
return {socket, transport, protocol, std::move(client), response.session_id};
}
Expand Down
2 changes: 1 addition & 1 deletion conf/follower.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[general]
version = "0.5.0"
version = "0.6.0"
time_zone = "utc-8"
server_mode = "admin" # "standalone"

Expand Down
2 changes: 1 addition & 1 deletion conf/infinity_conf.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[general]
version = "0.5.0"
version = "0.6.0"
time_zone = "utc-8"

[network]
Expand Down
2 changes: 1 addition & 1 deletion conf/infinity_minio_conf.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[general]
version = "0.5.0"
version = "0.6.0"
time_zone = "utc-8"

[network]
Expand Down
2 changes: 1 addition & 1 deletion conf/leader.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[general]
version = "0.5.0"
version = "0.6.0"
time_zone = "utc-8"
server_mode = "admin" # "standalone"

Expand Down
2 changes: 1 addition & 1 deletion conf/learner.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[general]
version = "0.5.0"
version = "0.6.0"
time_zone = "utc-8"
server_mode = "admin" # "standalone"

Expand Down
2 changes: 1 addition & 1 deletion conf/learner2.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[general]
version = "0.5.0"
version = "0.6.0"
time_zone = "utc-8"
server_mode = "admin" # "standalone"

Expand Down
2 changes: 1 addition & 1 deletion conf/mock_follower.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[general]
version = "0.5.0"
version = "0.6.0"
time_zone = "utc-8"
server_mode = "admin"

Expand Down
2 changes: 1 addition & 1 deletion conf/mock_leader.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[general]
version = "0.5.0"
version = "0.6.0"
time_zone = "utc-8"
server_mode = "admin"

Expand Down
2 changes: 1 addition & 1 deletion conf/pytest_embedded_infinity_conf.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[general]
version = "0.5.0"
version = "0.6.0"
time_zone = "utc-8"

[network]
Expand Down
2 changes: 1 addition & 1 deletion conf/pytest_parallel_continuous_conf.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[general]
version = "0.5.0"
version = "0.6.0"
time_zone = "utc-8"

[network]
Expand Down
2 changes: 1 addition & 1 deletion conf/pytest_parallel_infinity_conf.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[general]
version = "0.5.0"
version = "0.6.0"
time_zone = "utc-8"

[network]
Expand Down
2 changes: 1 addition & 1 deletion conf/pytest_parallel_infinity_follower.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[general]
version = "0.5.0"
version = "0.6.0"
time_zone = "utc-8"
server_mode = "admin" # "standalone"

Expand Down
2 changes: 1 addition & 1 deletion conf/pytest_parallel_infinity_leader.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[general]
version = "0.5.0"
version = "0.6.0"
time_zone = "utc-8"
server_mode = "admin" # "standalone"

Expand Down
2 changes: 1 addition & 1 deletion conf/pytest_parallel_infinity_minio.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[general]
version = "0.5.0"
version = "0.6.0"
time_zone = "utc-8"
server_mode = "standalone"

Expand Down
2 changes: 1 addition & 1 deletion conf/pytest_parallel_infinity_vfs_off.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[general]
version = "0.5.0"
version = "0.6.0"
time_zone = "utc-8"

[network]
Expand Down
6 changes: 3 additions & 3 deletions docs/getstarted/build_from_source.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ cmake --build . -t test_main

2. Install Python sdk of infinity:
```bash
pip install infinity-sdk==0.5.2
pip install infinity-sdk==0.6.0.dev1
```

3. Run the functional tests:
Expand All @@ -286,7 +286,7 @@ cmake --build . -t test_main

2. Install Python sdk of infinity:
```bash
pip install infinity-sdk==0.5.2
pip install infinity-sdk==0.6.0.dev1
```

3. Run the functional tests:
Expand All @@ -309,7 +309,7 @@ cmake --build . -t test_main

2. Install Python sdk of infinity:
```bash
pip install infinity-sdk==0.5.2
pip install infinity-sdk==0.6.0.dev1
```

3. Run the functional tests:
Expand Down
10 changes: 5 additions & 5 deletions docs/getstarted/deploy_infinity_server.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ This approach allows you to call Infinity as a Python module. To deploy Infinity
### Install Infinity as a module

```
pip install infinity-embedded-sdk==0.5.2
pip install infinity-embedded-sdk==0.6.0.dev1
```

### Create an Infinity object
Expand Down Expand Up @@ -101,7 +101,7 @@ If you are on Windows 10+, you must enable WSL or WSL2 to deploy Infinity using
### Install Infinity client

```
pip install infinity-sdk==0.5.2
pip install infinity-sdk==0.6.0.dev1
```

### Run a vector search
Expand Down Expand Up @@ -151,7 +151,7 @@ This section provides instructions on deploying Infinity using binary package on

Fedora/RHEL/CentOS/OpenSUSE
```bash
sudo rpm -i infinity-0.5.2-x86_64.rpm
sudo rpm -i infinity-0.6.0.dev1-x86_64.rpm
```

```bash
Expand All @@ -162,7 +162,7 @@ sudo systemctl start infinity
<TabItem value="ubuntu">

```bash
sudo dpkg -i infinity-0.5.2-x86_64.deb
sudo dpkg -i infinity-0.6.0.dev1-x86_64.deb
```

```bash
Expand All @@ -175,7 +175,7 @@ sudo systemctl start infinity
### Install Infinity client

```
pip install infinity-sdk==0.5.2
pip install infinity-sdk==0.6.0.dev1
```

### Run a vector search
Expand Down
2 changes: 1 addition & 1 deletion docs/getstarted/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ If you wish to embed Infinity into your Python application without the need for

1. Install the Infinity-embedded SDK:
```bash
pip install infinity-embedded-sdk==0.5.2
pip install infinity-embedded-sdk==0.6.0.dev1
```
2. Use Infinity to conduct a dense vector search:
```python
Expand Down
2 changes: 1 addition & 1 deletion docs/references/configurations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Infinity embedded does not have an *explicit* configuration file. Its configurat
```toml
[general]
# Infinity server version, the minor version of this parameter should match server minor version.
version = "0.5.0"
version = "0.6.0"
# Timezone
time_zone = "utc-8"
# The number of worker threads. Defaults to the number of CPU cores.
Expand Down
6 changes: 3 additions & 3 deletions docs/references/http_api_reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2406,7 +2406,7 @@ The response includes a JSON object like the following:
"server_address":"0.0.0.0",
"temp_dir":"/var/infinity/tmp",
"time_zone":"UTC+8",
"version":"0.5.0",
"version":"0.6.0",
"wal_compact_threshold":"1073741824",
"wal_dir":"/var/infinity/wal",
"wal_flush":"FlushAtOnce"
Expand Down Expand Up @@ -2455,7 +2455,7 @@ The response includes a JSON object like the following:
```shell
{
"error_code": 0,
"version":"0.5.0"
"version":"0.6.0"
}
```
Expand Down Expand Up @@ -3672,7 +3672,7 @@ The response includes a JSON object like the following:
"server_address":"0.0.0.0",
"temp_dir":"/var/infinity/leader/tmp",
"time_zone":"UTC-8",
"version":"0.5.0",
"version":"0.6.0",
"wal_compact_threshold":"1073741824",
"wal_dir":"/var/infinity/leader/wal",
"wal_flush":"FlushAtOnce"
Expand Down
4 changes: 2 additions & 2 deletions example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
The Python scripts in the current directory provides the examples of the infinity SDK API. Before running these scripts, please ensure that the correct version of infinity SDK is installed. If you are using the server version of Infinity, you can use the following command to install it

```shell
pip install infinity-sdk==0.5.2
pip install infinity-sdk==0.6.0.dev1
```

To use Infinity locally as a Python module, install the Infinity Embedded SDK:

```shell
pip install infinity-embedded-sdk==0.5.2
pip install infinity-embedded-sdk==0.6.0.dev1
```

Once the installation completes, run some simple examples:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ build-backend = "scikit_build_core.build"

[project]
name = "infinity_embedded_sdk"
version = "0.5.2"
version = "0.6.0.dev1"
requires-python = ">=3.10"
dependencies = [
"sqlglot~=11.7.0",
Expand Down
2 changes: 1 addition & 1 deletion python/infinity_sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Infinity supports two working modes, embedded mode and client-server mode. The f

2. Install the `infinity-sdk` package:
```bash
pip install infinity-sdk==0.5.2
pip install infinity-sdk==0.6.0.dev1
```

3. Use Infinity to conduct a dense vector search:
Expand Down
3 changes: 2 additions & 1 deletion python/infinity_sdk/infinity/remote_thrift/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ def _reconnect(self):
# version: 0.5.0.dev3, client_version: 25
# version: 0.5.0.dev4 and 0.5.0.dev5, client_version: 26
# version: 0.5.0.dev6 and 0.5.0.dev7 and 0.5.0 and 0.5.1 and 0.5.2, client_version: 27
res = self.client.Connect(ConnectRequest(client_version=27)) # 0.5.0.dev6 and 0.5.0.dev7 and 0.5.0 and 0.5.1 and 0.5.2
# version: 0.6.0.dev1, client_version: 28
res = self.client.Connect(ConnectRequest(client_version=28)) # 0.6.0.dev1
if res.error_code != 0:
raise InfinityException(res.error_code, res.error_msg)
self.session_id = res.session_id
Expand Down
2 changes: 1 addition & 1 deletion python/infinity_sdk/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "infinity-sdk"
version = "0.5.2"
version = "0.6.0.dev1"
requires-python = ">=3.10"
dependencies = [
"sqlglot~=11.7.0",
Expand Down
1 change: 1 addition & 0 deletions src/network/infinity_thrift_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ ClientVersions::ClientVersions() {
client_version_map_[25] = String("0.5.0.dev3");
client_version_map_[26] = String("0.5.0.dev5");
client_version_map_[27] = String("0.5.2");
client_version_map_[28] = String("0.6.0.dev1");
}

Pair<const char *, Status> ClientVersions::GetVersionByIndex(i64 version_index) {
Expand Down
2 changes: 1 addition & 1 deletion src/network/infinity_thrift_service.cppm
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ struct ClientVersions {
export class InfinityThriftService final : public infinity_thrift_rpc::InfinityServiceIf {
private:
static constexpr std::string_view ErrorMsgHeader = "[THRIFT ERROR]";
static constexpr i64 current_version_index_{27}; // 0.5.0.dev6 and 0.5.0.dev7 and 0.5.0 and 0.5.1 and 0.5.2
static constexpr i64 current_version_index_{28}; // 0.6.0.dev1

static std::mutex infinity_session_map_mutex_;
static HashMap<u64, SharedPtr<Infinity>> infinity_session_map_;
Expand Down
6 changes: 3 additions & 3 deletions src/unit_test/main/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ TEST_F(ConfigTest, test1) {
auto status = config.Init(path, nullptr);
ASSERT_TRUE(status.ok());

EXPECT_EQ(config.Version(), "0.5.2");
EXPECT_EQ(config.Version(), "0.6.0");
EXPECT_EQ(config.TimeZone(), "UTC");
EXPECT_EQ(config.TimeZoneBias(), 8);
EXPECT_EQ(config.CPULimit(), std::thread::hardware_concurrency());
Expand Down Expand Up @@ -88,7 +88,7 @@ TEST_F(ConfigTest, test2) {
auto status = config.Init(path, nullptr);
ASSERT_TRUE(status.ok());

EXPECT_EQ(config.Version(), "0.5.2");
EXPECT_EQ(config.Version(), "0.6.0");
EXPECT_EQ(config.TimeZone(), "UTC");
EXPECT_EQ(config.TimeZoneBias(), -8);

Expand Down Expand Up @@ -210,7 +210,7 @@ TEST_F(ConfigTest, TestValidValues) {
auto status = config.Init(path, nullptr);
ASSERT_TRUE(status.ok());

EXPECT_EQ(config.Version(), "0.5.2");
EXPECT_EQ(config.Version(), "0.6.0");
EXPECT_EQ(config.TimeZone(), "UTC");
EXPECT_EQ(config.TimeZoneBias(), -8);
EXPECT_EQ(config.CPULimit(), 2);
Expand Down
2 changes: 1 addition & 1 deletion test/data/config/infinity_conf.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[general]
version = "0.5.0"
version = "0.6.0"
time_zone = "utc-8"
cpu_limit = 2

Expand Down
2 changes: 1 addition & 1 deletion test/data/config/restart_test/test_alter/1.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[general]
version = "0.5.0"
version = "0.6.0"
time_zone = "utc-8"

[network]
Expand Down
2 changes: 1 addition & 1 deletion test/data/config/restart_test/test_alter/2.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[general]
version = "0.5.0"
version = "0.6.0"
time_zone = "utc-8"

[network]
Expand Down
2 changes: 1 addition & 1 deletion test/data/config/restart_test/test_alter/3.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[general]
version = "0.5.0"
version = "0.6.0"
time_zone = "utc-8"

[network]
Expand Down
2 changes: 1 addition & 1 deletion test/data/config/restart_test/test_cleanup/1.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[general]
version = "0.5.0"
version = "0.6.0"
time_zone = "utc-8"

[network]
Expand Down
2 changes: 1 addition & 1 deletion test/data/config/restart_test/test_cleanup/2.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[general]
version = "0.5.0"
version = "0.6.0"
time_zone = "utc-8"

[network]
Expand Down
Loading

0 comments on commit a6b069b

Please sign in to comment.