Filters out nil BF stats (#10279)

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
pull/10287/head
congqixia 2021-10-20 16:14:36 +08:00 committed by GitHub
parent 42a85f6d9d
commit f39e06b24e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -349,6 +349,10 @@ func (loader *segmentLoader) loadSegmentBloomFilter(segment *Segment) error {
return err
}
for _, stat := range stats {
if stat.BF == nil {
log.Warn("stat log with nil bloom filter", zap.Int64("segmentID", segment.segmentID), zap.Any("stat", stat))
continue
}
err = segment.pkFilter.Merge(stat.BF)
if err != nil {
return err