Fixbug: building index return nil by mistake when error not occur (#15809)

Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>
This commit is contained in:
zhenshan.cao 2022-03-02 09:41:56 +08:00 committed by GitHub
parent 6a5eafca59
commit f1aec49a74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -427,8 +427,8 @@ func (it *IndexBuildTask) buildIndex(ctx context.Context) ([]*storage.Blob, erro
err := it.index.BuildBinaryVecIndexWithoutIds(binaryVectorFieldData.Data)
if err != nil {
log.Error("IndexNode BuildBinaryVecIndexWithoutIds failed", zap.Error(err))
return nil, err
}
return nil, err
}
if !fOk && !bOk {

View File

@ -413,6 +413,7 @@ class TestCompactionOperation(TestcaseBase):
for hits in search_res:
assert len(hits) == ct.default_limit
@pytest.mark.skip(reason="ToDo: @ThreadDao redesign test cases ")
@pytest.mark.tags(CaseLabel.L1)
def test_compact_after_binary_index(self):
"""