class_docstr: ******************************************************************
    The following cases are used to test `create_partition` function 
  ******************************************************************
class_docstr_tok: ["*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","The","following","cases","are","used","to","test","`","create_partition","`","function","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*","*"]
docstr: target: flushing will recover
  method: call function: create collection/partition, then insert/flushing, restart server and assert row count
  expected: row count equals 0
docstr_tok: ["target",":","flushing","will","recover","method",":","call","function",":","create","collection\/partition",",","then","insert\/flushing",",","restart","server","and","assert","row","count","expected",":","row","count","equals","0"]
code: def _test_insert_during_flushing_multi_partitions(
      self, connect, collection, args
  ):
      """
      target: flushing will recover
      method: call function: create collection/partition, then insert/flushing, restart server and assert row count
      expected: row count equals 0
      """
      # disable_autoflush()
      partitions_num = 2
      partitions = []
      for i in range(partitions_num):
          tag_tmp = gen_unique_str()
          partitions.append(tag_tmp)
          connect.create_partition(collection, tag_tmp)
          ids = connect.bulk_insert(
              collection, big_entities, partition_name=tag_tmp
          )
      connect.flush([collection], _async=True)
      res_count = connect.count_entities(collection)
      logging.getLogger().info(res_count)
      if res_count < big_nb:
          # restart server
          assert restart_server(args["service_name"])
          # assert row count again
          new_connect = get_milvus(
              args["ip"], args["port"], handler=args["handler"]
          )
          res_count_2 = new_connect.count_entities(collection)
          logging.getLogger().info(res_count_2)
          timeout = 300
          start_time = time.time()
          while new_connect.count_entities(
              collection
          ) != big_nb * 2 and (time.time() - start_time < timeout):
              time.sleep(10)
              logging.getLogger().info(
                  new_connect.count_entities(collection)
              )
          res_count_3 = new_connect.count_entities(collection)
          logging.getLogger().info(res_count_3)
          assert res_count_3 == big_nb * 2
  
imports: import time
  import random
  import pdb
  import threading
  import logging
  import json
  from multiprocessing import Pool, Process
  import pytest
  from utils.util_pymilvus import get_milvus, restart_server, gen_entities, gen_unique_str, default_nb
  from common.constants import default_fields, default_entities
  from common.common_type import CaseLabel
label_desc: Use image node_id 9 for calling the TestRestartBase obj's underlying member method code with example usage: obj._test_insert_during_flushing_multi_partitions(connect, collection, args) without return types