mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
[test]Fix deploy test (#21487)
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
This commit is contained in:
parent
0fdc1a04ac
commit
3339edcb97
@ -1,8 +1,16 @@
|
||||
|
||||
release=${1:-"milvs-chaos"}
|
||||
ns=${2:-"chaos-testing"}
|
||||
milvus_mode=${2:-"cluster"}
|
||||
ns=${3:-"chaos-testing"}
|
||||
bash uninstall_milvus.sh ${release} ${ns}|| true
|
||||
|
||||
helm repo add milvus https://milvus-io.github.io/milvus-helm/
|
||||
helm repo update
|
||||
helm install --wait --timeout 360s ${release} milvus/milvus -f ../cluster-values.yaml --set metrics.serviceMonitor.enabled=true -n=${ns}
|
||||
if [[ ${milvus_mode} == "cluster" ]];
|
||||
then
|
||||
helm install --wait --timeout 360s ${release} milvus/milvus -f ../cluster-values.yaml --set metrics.serviceMonitor.enabled=true -n=${ns}
|
||||
fi
|
||||
|
||||
if [[ ${milvus_mode} == "standalone" ]];
|
||||
then
|
||||
helm install --wait --timeout 360s ${release} milvus/milvus -f ../standalone-values.yaml --set metrics.serviceMonitor.enabled=true -n=${ns}
|
||||
fi
|
||||
@ -104,7 +104,7 @@ class TestActionFirstDeployment(TestDeployBase):
|
||||
|
||||
# init collection and insert with small size data without flush to get growing segment
|
||||
collection_w = self.init_collection_general(insert_data=True, is_binary=is_binary, nb=3000,
|
||||
is_flush=False, is_index=True, name=name)[0]
|
||||
is_flush=False, is_index=False, name=name)[0]
|
||||
# params for creating index
|
||||
if is_binary:
|
||||
default_index_field = ct.default_binary_vec_field_name
|
||||
@ -155,7 +155,7 @@ class TestActionFirstDeployment(TestDeployBase):
|
||||
# insert with flush multiple times to generate multiple sealed segment
|
||||
for i in range(5):
|
||||
self.init_collection_general(insert_data=True, is_binary=is_binary, nb=data_size,
|
||||
is_flush=False, is_index=True, name=name)
|
||||
is_flush=False, is_index=False, name=name)
|
||||
# at this step, all segment are sealed
|
||||
if pymilvus_version >= "2.2.0":
|
||||
collection_w.flush()
|
||||
@ -175,7 +175,7 @@ class TestActionFirstDeployment(TestDeployBase):
|
||||
# get growing segment before reload
|
||||
if segment_status == "all":
|
||||
self.init_collection_general(insert_data=True, is_binary=is_binary, nb=3000,
|
||||
is_flush=False, is_index=True, name=name)
|
||||
is_flush=False, is_index=False, name=name)
|
||||
# reload after flush and creating index
|
||||
if replica_number > 0:
|
||||
collection_w.release()
|
||||
@ -185,7 +185,7 @@ class TestActionFirstDeployment(TestDeployBase):
|
||||
# insert data to get growing segment after reload
|
||||
if segment_status == "all":
|
||||
self.init_collection_general(insert_data=True, is_binary=is_binary, nb=3000,
|
||||
is_flush=False, is_index=True, name=name)
|
||||
is_flush=False, is_index=False, name=name)
|
||||
|
||||
# search and query for sealed and growing segment
|
||||
if replica_number > 0:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user