mirror of https://github.com/milvus-io/milvus.git
fix: Small fixs of major compaction (#33929)
#30633 Signed-off-by: wayblink <anyang.wang@zilliz.com>pull/33947/head
parent
3fdaae8792
commit
5cb0760187
|
@ -177,6 +177,8 @@ func (t *clusteringCompactionTask) BuildCompactionRequest() (*datapb.CompactionP
|
|||
|
||||
func (t *clusteringCompactionTask) processPipelining() error {
|
||||
log := log.With(zap.Int64("triggerID", t.TriggerID), zap.Int64("collectionID", t.GetCollectionID()), zap.Int64("planID", t.GetPlanID()))
|
||||
ts := time.Now().UnixMilli()
|
||||
t.updateAndSaveTaskMeta(setStartTime(ts))
|
||||
var operators []UpdateOperator
|
||||
for _, segID := range t.InputSegments {
|
||||
operators = append(operators, UpdateSegmentLevelOperator(segID, datapb.SegmentLevel_L2))
|
||||
|
|
|
@ -23,6 +23,7 @@ import (
|
|||
"path"
|
||||
"sort"
|
||||
"strconv"
|
||||
"strings"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
|
@ -782,7 +783,8 @@ func (t *clusteringCompactionTask) uploadPartitionStats(ctx context.Context, col
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
newStatsPath := path.Join(common.PartitionStatsPath, metautil.JoinIDPath(collectionID, partitionID), t.plan.GetChannel(), strconv.FormatInt(version, 10))
|
||||
rootPath := strings.Split(t.plan.AnalyzeResultPath, common.AnalyzeStatsPath)[0]
|
||||
newStatsPath := path.Join(rootPath, common.PartitionStatsPath, metautil.JoinIDPath(collectionID, partitionID), t.plan.GetChannel(), strconv.FormatInt(version, 10))
|
||||
kv := map[string][]byte{
|
||||
newStatsPath: partitionStatsBytes,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue