enhance: Remove current stats after RollStats action (#30391)

See also #27675

BloomFilterSet.current shall be reset after RollStats, otherwise it will
keep tracking whole segment data causing the false positive ratio larger
than expected.

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
pull/30277/head
congqixia 2024-01-31 18:55:04 +08:00 committed by GitHub
parent 5cf9bb236e
commit b5e078c4d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -96,6 +96,7 @@ func (bfs *BloomFilterSet) Roll(newStats ...*storage.PrimaryKeyStats) {
MinPK: stats.MinPk,
}
})...)
bfs.current = nil
}
}