Create index before load for upgrading test (#21222)

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
This commit is contained in:
zhuwenxing 2022-12-14 19:29:27 +08:00 committed by GitHub
parent 37152d58bb
commit 2c95411e0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -9,7 +9,7 @@ from utils import *
def task_1(data_size, host):
"""
task_1:
before upgrade: create collection and insert data with flush, load and search
before upgrade: create collection and insert data with flush, create index, load and search
after upgrade: get collection, load, search, insert data with flush, release, create index, load, and search
"""
prefix = "task_1_"

View File

@ -9,13 +9,14 @@ from utils import *
def task_1(data_size, host):
"""
task_1:
before upgrade: create collection and insert data with flush, load and search
before upgrade: create collection and insert data with flush, create index, load and search
after upgrade: get collection, load, search, insert data with flush, release, create index, load, and search
"""
prefix = "task_1_"
connections.connect(host=host, port=19530, timeout=60)
get_collections(prefix)
create_collections_and_insert_data(prefix, data_size)
create_index(prefix)
load_and_search(prefix)