mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
fix: empty growing segment cannot be recovered by streamingnode (#41666)
issue: #41665 Signed-off-by: chyezh <chyezh@outlook.com>
This commit is contained in:
parent
39e7ad33d7
commit
7dca7ef4d0
@ -79,7 +79,9 @@ func (h *ServerHandler) GetDataVChanPositions(channel RWChannel, partitionID Uni
|
||||
)
|
||||
for _, s := range segments {
|
||||
if (partitionID > allPartitionID && s.PartitionID != partitionID) ||
|
||||
(s.GetStartPosition() == nil && s.GetDmlPosition() == nil) {
|
||||
(s.GetState() != commonpb.SegmentState_Growing && s.GetStartPosition() == nil && s.GetDmlPosition() == nil) {
|
||||
// empty growing segment don't have dml position and start position
|
||||
// and it should be recovered for streamingnode, so we add the state-filter here.
|
||||
continue
|
||||
}
|
||||
if s.GetIsImporting() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user