mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-07 09:38:39 +08:00
fix: Lost loading collection's updateTs after qc restart (#37538)
issue: #37537 Signed-off-by: Wei Liu <wei.liu@zilliz.com>
This commit is contained in:
parent
83d2729f94
commit
61a5b15ada
@ -169,9 +169,11 @@ func (m *CollectionManager) Recover(broker Broker) error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
m.collections[collection.CollectionID] = &Collection{
|
// update collection's CreateAt and UpdateAt to now after qc restart
|
||||||
|
m.putCollection(false, &Collection{
|
||||||
CollectionLoadInfo: collection,
|
CollectionLoadInfo: collection,
|
||||||
}
|
CreatedAt: time.Now(),
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
for collection, partitions := range partitions {
|
for collection, partitions := range partitions {
|
||||||
@ -187,13 +189,19 @@ func (m *CollectionManager) Recover(broker Broker) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
partition.RecoverTimes += 1
|
partition.RecoverTimes += 1
|
||||||
m.putPartition([]*Partition{{PartitionLoadInfo: partition}}, true)
|
m.putPartition([]*Partition{
|
||||||
|
{
|
||||||
|
PartitionLoadInfo: partition,
|
||||||
|
CreatedAt: time.Now(),
|
||||||
|
},
|
||||||
|
}, true)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
m.putPartition([]*Partition{
|
m.putPartition([]*Partition{
|
||||||
{
|
{
|
||||||
PartitionLoadInfo: partition,
|
PartitionLoadInfo: partition,
|
||||||
|
CreatedAt: time.Now(),
|
||||||
},
|
},
|
||||||
}, false)
|
}, false)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user