mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
fix: meta cache in datanode incorrectly tracking row nums (#29817)
... of compacted segments issue: #29816 Signed-off-by: Buqian Zheng <zhengbuqian@gmail.com>
This commit is contained in:
parent
cb9d9ec0f0
commit
d506d33a8d
@ -125,6 +125,7 @@ func (c *metaCacheImpl) CompactSegments(newSegmentID, partitionID int64, numOfRo
|
||||
segmentID: newSegmentID,
|
||||
partitionID: partitionID,
|
||||
state: commonpb.SegmentState_Flushed,
|
||||
flushedRows: numOfRows,
|
||||
startPosRecorded: true,
|
||||
bfs: bfs,
|
||||
}
|
||||
|
||||
@ -111,6 +111,7 @@ func (s *MetaCacheSuite) TestCompactSegments() {
|
||||
for _, seg := range segs {
|
||||
if seg.SegmentID() == s.newSegments[i] {
|
||||
s.Equal(commonpb.SegmentState_Flushed, seg.State())
|
||||
s.Equal(int64(100), seg.NumOfRows())
|
||||
}
|
||||
if seg.SegmentID() == s.flushedSegments[i] {
|
||||
s.Equal(s.newSegments[i], seg.CompactTo())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user