[skip ci] Add skipped compact no merge case (#11938)

Signed-off-by: ThreadDao <yufen.zong@zilliz.com>
This commit is contained in:
ThreadDao 2021-11-16 21:47:31 +08:00 committed by GitHub
parent 39d00fb827
commit f52e46772e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -283,7 +283,20 @@ class TestCompactionOperation(TestcaseBase):
3.compact and search
expected: No exception
"""
pass
# create collection
collection_w = self.init_collection_wrap(name=cf.gen_unique_str(prefix), shards_num=1)
df = cf.gen_default_dataframe_data(tmp_nb)
collection_w.insert(df)
assert collection_w.num_entities == tmp_nb
collection_w.compact()
while True:
c_state = collection_w.get_compaction_state()
log.debug(c_state)
if c_state.state == State.Completed and c_state.in_timeout == 0:
break
c_plans, _ = collection_w.get_compaction_plans()
assert len(c_plans.plans) == 0
@pytest.mark.tags(CaseLabel.L1)
def test_compact_merge_multi_segments(self):