[skip ci] Add comments of insert func on benchmark base file (#7907)

Signed-off-by: wangting0128 <ting.wang@zilliz.com>
pull/7914/head
wt 2021-09-14 17:21:48 +08:00 committed by GitHub
parent 98732b3d43
commit da64fcb91c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -96,6 +96,10 @@ class BaseRunner(object):
ni_time = 0.0
vectors_per_file = utils.get_len_vectors_per_file(data_type, dimension)
if size % vectors_per_file or size % ni:
"""
An error is reported when
the amount of data inserted in a single time cannot divide the total amount of data
"""
logger.error("Not invalid collection size or ni")
return False
i = 0