Loading CHANGELOG.md +1 −0 Original line number Diff line number Diff line Loading @@ -50,6 +50,7 @@ Please mark all change in change log and use the issue from GitHub - \#1250 Support CPU profiling - \#1302 Get all record IDs in a segment by given a segment id - \#1461 Add crud APIs and segments APIs into http module - \#1463 Update config version to 0.2 ## Improvement - \#738 Use Openblas / lapack from apt install Loading core/conf/demo/server_config.yaml +1 −1 Original line number Diff line number Diff line Loading @@ -9,7 +9,7 @@ # is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express # or implied. See the License for the specific language governing permissions and limitations under the License. version: 0.1 version: 0.2 #----------------------+------------------------------------------------------------+------------+-----------------+ # Server Config | Description | Type | Default | Loading core/conf/server_cpu_config.template +1 −1 Original line number Diff line number Diff line Loading @@ -9,7 +9,7 @@ # is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express # or implied. See the License for the specific language governing permissions and limitations under the License. version: 0.1 version: 0.2 #----------------------+------------------------------------------------------------+------------+-----------------+ # Server Config | Description | Type | Default | Loading core/conf/server_gpu_config.template +1 −1 Original line number Diff line number Diff line Loading @@ -9,7 +9,7 @@ # is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express # or implied. See the License for the specific language governing permissions and limitations under the License. version: 0.1 version: 0.2 #----------------------+------------------------------------------------------------+------------+-----------------+ # Server Config | Description | Type | Default | Loading core/src/server/Config.cpp +11 −7 Original line number Diff line number Diff line Loading @@ -38,7 +38,8 @@ namespace server { constexpr int64_t GB = 1UL << 30; static const std::unordered_map<std::string, std::string> milvus_config_version_map({{"0.7.0", "0.1"}}); static const std::unordered_map<std::string, std::string> milvus_config_version_map({{"0.6.0", "0.1"}, {"0.7.0", "0.2"}}); ///////////////////////////////////////////////////////////// Config::Config() { Loading Loading @@ -609,12 +610,15 @@ Config::CancelCallBack(const std::string& node, const std::string& sub_node, con //////////////////////////////////////////////////////////////////////////////// Status Config::CheckConfigVersion(const std::string& value) { if (milvus_config_version_map.find(MILVUS_VERSION) != milvus_config_version_map.end()) { bool exist_error = milvus_config_version_map.at(MILVUS_VERSION) != value; fiu_do_on("check_config_version_fail", exist_error = true); if (exist_error) { std::string msg = "Invalid config version: " + value + ". Expected config version: " + milvus_config_version_map.at(MILVUS_VERSION); return Status(SERVER_INVALID_ARGUMENT, msg); SERVER_LOG_ERROR << msg; // return Status(SERVER_INVALID_ARGUMENT, msg); } } return Status::OK(); } Loading Loading
CHANGELOG.md +1 −0 Original line number Diff line number Diff line Loading @@ -50,6 +50,7 @@ Please mark all change in change log and use the issue from GitHub - \#1250 Support CPU profiling - \#1302 Get all record IDs in a segment by given a segment id - \#1461 Add crud APIs and segments APIs into http module - \#1463 Update config version to 0.2 ## Improvement - \#738 Use Openblas / lapack from apt install Loading
core/conf/demo/server_config.yaml +1 −1 Original line number Diff line number Diff line Loading @@ -9,7 +9,7 @@ # is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express # or implied. See the License for the specific language governing permissions and limitations under the License. version: 0.1 version: 0.2 #----------------------+------------------------------------------------------------+------------+-----------------+ # Server Config | Description | Type | Default | Loading
core/conf/server_cpu_config.template +1 −1 Original line number Diff line number Diff line Loading @@ -9,7 +9,7 @@ # is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express # or implied. See the License for the specific language governing permissions and limitations under the License. version: 0.1 version: 0.2 #----------------------+------------------------------------------------------------+------------+-----------------+ # Server Config | Description | Type | Default | Loading
core/conf/server_gpu_config.template +1 −1 Original line number Diff line number Diff line Loading @@ -9,7 +9,7 @@ # is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express # or implied. See the License for the specific language governing permissions and limitations under the License. version: 0.1 version: 0.2 #----------------------+------------------------------------------------------------+------------+-----------------+ # Server Config | Description | Type | Default | Loading
core/src/server/Config.cpp +11 −7 Original line number Diff line number Diff line Loading @@ -38,7 +38,8 @@ namespace server { constexpr int64_t GB = 1UL << 30; static const std::unordered_map<std::string, std::string> milvus_config_version_map({{"0.7.0", "0.1"}}); static const std::unordered_map<std::string, std::string> milvus_config_version_map({{"0.6.0", "0.1"}, {"0.7.0", "0.2"}}); ///////////////////////////////////////////////////////////// Config::Config() { Loading Loading @@ -609,12 +610,15 @@ Config::CancelCallBack(const std::string& node, const std::string& sub_node, con //////////////////////////////////////////////////////////////////////////////// Status Config::CheckConfigVersion(const std::string& value) { if (milvus_config_version_map.find(MILVUS_VERSION) != milvus_config_version_map.end()) { bool exist_error = milvus_config_version_map.at(MILVUS_VERSION) != value; fiu_do_on("check_config_version_fail", exist_error = true); if (exist_error) { std::string msg = "Invalid config version: " + value + ". Expected config version: " + milvus_config_version_map.at(MILVUS_VERSION); return Status(SERVER_INVALID_ARGUMENT, msg); SERVER_LOG_ERROR << msg; // return Status(SERVER_INVALID_ARGUMENT, msg); } } return Status::OK(); } Loading