Skip to content

Commit

Permalink
[skip ci] Add skipped compact no merge case (milvus-io#11938)
Browse files Browse the repository at this point in the history
Signed-off-by: ThreadDao <[email protected]>
  • Loading branch information
ThreadDao authored Nov 16, 2021
1 parent 39d00fb commit f52e467
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion tests/python_client/testcases/test_compaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,20 @@ def test_compact_no_merge(self):
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):
Expand Down

0 comments on commit f52e467

Please sign in to comment.