Unverified Commit 68cdd41c authored by Jin Hai's avatar Jin Hai Committed by GitHub
Browse files

#1914: Partition max size should be 4096 (#1915)



Signed-off-by: default avatarjinhai <hai.jin@zilliz.com>
parent f5c22a83
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@
namespace milvus {
namespace server {

constexpr uint64_t MAX_PARTITION_LIMIT = 5000;
constexpr uint64_t MAX_PARTITION_LIMIT = 4096;

CreatePartitionRequest::CreatePartitionRequest(const std::shared_ptr<milvus::server::Context>& context,
                                               const std::string& collection_name, const std::string& tag)
@@ -83,7 +83,7 @@ CreatePartitionRequest::OnExecute() {
        std::vector<engine::meta::CollectionSchema> schema_array;
        status = DBWrapper::DB()->ShowPartitions(collection_name_, schema_array);
        if (schema_array.size() >= MAX_PARTITION_LIMIT) {
            return Status(SERVER_UNSUPPORTED_ERROR, "The number of partitions exceeds the upper limit(5000)");
            return Status(SERVER_UNSUPPORTED_ERROR, "The number of partitions exceeds the upper limit(4096)");
        }

        rc.RecordSection("check validation");