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, then indexing, restart server and assert row count
  expected: row count equals nb, server contitue to build index after restart
docstr_tok: ["target",":","flushing","will","recover","method",":","call","function",":","create","collection",",","then","indexing",",","restart","server","and","assert","row","count","expected",":","row","count","equals","nb",",","server","contitue","to","build","index","after","restart"]
code: def _test_during_indexing(self, connect, collection, args):
      """
      target: flushing will recover
      method: call function: create collection, then indexing, restart server and assert row count
      expected: row count equals nb, server contitue to build index after restart
      """
      # disable_autoflush()
      loop = 5
      for i in range(loop):
          ids = connect.bulk_insert(collection, big_entities)
      connect.flush([collection])
      connect.create_index(
          collection, field_name, default_index, _async=True
      )
      res_count = connect.count_entities(collection)
      logging.getLogger().info(res_count)
      stats = connect.get_collection_stats(collection)
      # logging.getLogger().info(stats)
      # 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)
      assert res_count_2 == loop * big_nb
      status = new_connect._cmd("status")
      assert json.loads(status)["indexing"] == True
  
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 6 for calling the TestRestartBase obj's underlying member method code with example usage: obj._test_during_indexing(connect, collection, args) without return types