docstr: target: test compact growing data
  method: 1.insert into multi segments without flush
          2.compact
  expected: No compaction (compact just for sealed data)
docstr_tok: ["target",":","test","compact","growing","data","method",":","1.insert","into","multi","segments","without","flush","2.compact","expected",":","No","compaction","(","compact","just","for","sealed","data",")"]
code: def test_compact_only_growing_segment(self):
      """
      target: test compact growing data
      method: 1.insert into multi segments without flush
              2.compact
      expected: No compaction (compact just for sealed data)
      """
      # create and insert without flush
      collection_w = self.init_collection_wrap(
          name=cf.gen_unique_str(prefix)
      )
      df = cf.gen_default_dataframe_data(tmp_nb)
      collection_w.insert(df)
  
      # compact when only growing segment
      collection_w.compact()
      collection_w.wait_for_compaction_completed()
      c_plans = collection_w.get_compaction_plans()[0]
      assert len(c_plans.plans) == 0
  
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 4 for calling the TestCompactionParams obj's underlying member method code with example usage: obj.test_compact_only_growing_segment() without return types