docstr: target: test compact after repeatedly delete same entity
  method: 1.Create and insert entities
          2.repeatedly delete the same id
          3.compact
  expected: No exception or delta log just delete one
docstr_tok: ["target",":","test","compact","after","repeatedly","delete","same","entity","method",":","1.Create","and","insert","entities","2.repeatedly","delete","the","same","id","3.compact","expected",":","No","exception","or","delta","log","just","delete","one"]
code: def test_compact_repeatedly_delete_same_id(self):
      """
      target: test compact after repeatedly delete same entity
      method: 1.Create and insert entities
              2.repeatedly delete the same id
              3.compact
      expected: No exception or delta log just delete one
      """
      collection_w = self.init_collection_wrap(
          cf.gen_unique_str(prefix), shards_num=1
      )
  
      df = cf.gen_default_dataframe_data()
      insert_res, _ = collection_w.insert(df)
      expr = f"{ct.default_int64_field_name} in [0]"
  
      for _ in range(100):
          collection_w.delete(expr=expr)
      assert collection_w.num_entities == ct.default_nb
  
      sleep(ct.compact_retention_duration + 1)
      collection_w.compact()
      collection_w.wait_for_compaction_completed()
      collection_w.get_compaction_plans(
          check_task=CheckTasks.check_delete_compact
      )
  
      collection_w.load()
      collection_w.query(expr, check_task=CheckTasks.check_query_empty)
  
imports: import threading
  from time import time, sleep
  import pytest
  from pymilvus.grpc_gen.common_pb2 import SegmentState
  from pymilvus.exceptions import MilvusException
  from base.client_base import TestcaseBase
  from common import common_func
  from common import common_type
  from common.common_type import CaseLabel, CheckTasks
  from utils.util_log import test_log
label_desc: Use image node_id 10 for calling the TestCompactionOperation obj's underlying member method code with example usage: obj.test_compact_repeatedly_delete_same_id() without return types