2022-08-25 15:48:54 +08:00
|
|
|
// Licensed to the LF AI & Data foundation under one
|
|
|
|
// or more contributor license agreements. See the NOTICE file
|
|
|
|
// distributed with this work for additional information
|
|
|
|
// regarding copyright ownership. The ASF licenses this file
|
|
|
|
// to you under the Apache License, Version 2.0 (the
|
|
|
|
// "License"); you may not use this file except in compliance
|
|
|
|
// with the License. You may obtain a copy of the License at
|
|
|
|
//
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
|
|
|
|
package indexcoord
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
2022-09-09 15:52:35 +08:00
|
|
|
"errors"
|
2022-08-25 15:48:54 +08:00
|
|
|
"fmt"
|
2022-09-09 15:52:35 +08:00
|
|
|
"sort"
|
|
|
|
"strconv"
|
2022-08-25 15:48:54 +08:00
|
|
|
"sync"
|
|
|
|
"time"
|
|
|
|
|
2022-10-26 16:49:31 +08:00
|
|
|
"github.com/golang/protobuf/proto"
|
2022-08-25 15:48:54 +08:00
|
|
|
"go.uber.org/zap"
|
|
|
|
|
2022-10-18 17:05:26 +08:00
|
|
|
"github.com/milvus-io/milvus-proto/go-api/commonpb"
|
2022-08-25 15:48:54 +08:00
|
|
|
"github.com/milvus-io/milvus/internal/kv"
|
|
|
|
"github.com/milvus-io/milvus/internal/log"
|
|
|
|
"github.com/milvus-io/milvus/internal/metastore/model"
|
|
|
|
"github.com/milvus-io/milvus/internal/proto/datapb"
|
2022-10-18 17:05:26 +08:00
|
|
|
"github.com/milvus-io/milvus/internal/proto/rootcoordpb"
|
2022-08-25 15:48:54 +08:00
|
|
|
"github.com/milvus-io/milvus/internal/util"
|
2022-11-08 20:13:03 +08:00
|
|
|
"github.com/milvus-io/milvus/internal/util/timerecord"
|
2022-08-25 15:48:54 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
type flushedSegmentWatcher struct {
|
|
|
|
ctx context.Context
|
|
|
|
cancel context.CancelFunc
|
|
|
|
|
|
|
|
kvClient kv.MetaKv
|
|
|
|
wg sync.WaitGroup
|
|
|
|
scheduleDuration time.Duration
|
|
|
|
|
|
|
|
internalTaskMutex sync.RWMutex
|
|
|
|
internalNotify chan struct{}
|
|
|
|
|
|
|
|
etcdRevision int64
|
|
|
|
|
|
|
|
meta *metaTable
|
|
|
|
builder *indexBuilder
|
|
|
|
ic *IndexCoord
|
2022-09-21 16:34:51 +08:00
|
|
|
handoff *handoff
|
2022-08-25 15:48:54 +08:00
|
|
|
|
|
|
|
internalTasks map[UniqueID]*internalTask
|
|
|
|
}
|
|
|
|
|
|
|
|
type internalTask struct {
|
|
|
|
state indexTaskState
|
|
|
|
segmentInfo *datapb.SegmentInfo
|
|
|
|
}
|
|
|
|
|
2022-09-21 16:34:51 +08:00
|
|
|
func newFlushSegmentWatcher(ctx context.Context, kv kv.MetaKv, meta *metaTable, builder *indexBuilder,
|
|
|
|
handoff *handoff, ic *IndexCoord) (*flushedSegmentWatcher, error) {
|
2022-08-25 15:48:54 +08:00
|
|
|
ctx, cancel := context.WithCancel(ctx)
|
|
|
|
fsw := &flushedSegmentWatcher{
|
|
|
|
ctx: ctx,
|
|
|
|
cancel: cancel,
|
|
|
|
kvClient: kv,
|
|
|
|
wg: sync.WaitGroup{},
|
|
|
|
internalTaskMutex: sync.RWMutex{},
|
2022-09-24 13:40:52 +08:00
|
|
|
scheduleDuration: time.Second * 3,
|
2022-08-25 15:48:54 +08:00
|
|
|
internalNotify: make(chan struct{}, 1),
|
|
|
|
meta: meta,
|
|
|
|
builder: builder,
|
2022-09-21 16:34:51 +08:00
|
|
|
handoff: handoff,
|
2022-08-25 15:48:54 +08:00
|
|
|
ic: ic,
|
|
|
|
}
|
|
|
|
err := fsw.reloadFromKV()
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return fsw, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (fsw *flushedSegmentWatcher) reloadFromKV() error {
|
2022-11-08 20:13:03 +08:00
|
|
|
record := timerecord.NewTimeRecorder("indexcoord")
|
2022-09-24 13:40:52 +08:00
|
|
|
log.Ctx(fsw.ctx).Info("flushSegmentWatcher reloadFromKV")
|
2022-08-25 15:48:54 +08:00
|
|
|
fsw.internalTasks = make(map[UniqueID]*internalTask)
|
|
|
|
_, values, version, err := fsw.kvClient.LoadWithRevision(util.FlushedSegmentPrefix)
|
|
|
|
if err != nil {
|
2022-09-24 13:40:52 +08:00
|
|
|
log.Ctx(fsw.ctx).Error("flushSegmentWatcher reloadFromKV fail", zap.String("prefix", util.FlushedSegmentPrefix), zap.Error(err))
|
2022-08-25 15:48:54 +08:00
|
|
|
return err
|
|
|
|
}
|
|
|
|
for _, value := range values {
|
2022-10-26 16:49:31 +08:00
|
|
|
segmentInfo := &datapb.SegmentInfo{}
|
|
|
|
if err := proto.Unmarshal([]byte(value), segmentInfo); err != nil {
|
|
|
|
// just for backward compatibility
|
|
|
|
segID, err := strconv.ParseInt(value, 10, 64)
|
|
|
|
if err != nil {
|
|
|
|
log.Ctx(fsw.ctx).Error("flushSegmentWatcher unmarshal fail", zap.String("value", value), zap.Error(err))
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
segmentInfo.ID = segID
|
2022-08-25 15:48:54 +08:00
|
|
|
}
|
2022-10-26 16:49:31 +08:00
|
|
|
|
|
|
|
fsw.enqueueInternalTask(segmentInfo)
|
2022-08-25 15:48:54 +08:00
|
|
|
}
|
|
|
|
fsw.etcdRevision = version
|
2022-09-24 13:40:52 +08:00
|
|
|
log.Ctx(fsw.ctx).Info("flushSegmentWatcher reloadFromKV success", zap.Int64("etcdRevision", version))
|
2022-11-08 20:13:03 +08:00
|
|
|
record.Record("flushedSegmentWatcher reloadFromKV")
|
2022-08-25 15:48:54 +08:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (fsw *flushedSegmentWatcher) Start() {
|
|
|
|
fsw.wg.Add(1)
|
|
|
|
go fsw.internalScheduler()
|
|
|
|
}
|
|
|
|
|
|
|
|
func (fsw *flushedSegmentWatcher) Stop() {
|
|
|
|
fsw.cancel()
|
|
|
|
fsw.wg.Wait()
|
|
|
|
}
|
|
|
|
|
2022-10-26 16:49:31 +08:00
|
|
|
func (fsw *flushedSegmentWatcher) enqueueInternalTask(segment *datapb.SegmentInfo) {
|
2022-09-15 15:44:31 +08:00
|
|
|
defer fsw.internalNotifyFunc()
|
2022-08-25 15:48:54 +08:00
|
|
|
fsw.internalTaskMutex.Lock()
|
2022-09-15 15:44:31 +08:00
|
|
|
defer fsw.internalTaskMutex.Unlock()
|
2022-10-26 16:49:31 +08:00
|
|
|
if _, ok := fsw.internalTasks[segment.GetID()]; !ok {
|
|
|
|
if segment.GetIsFake() {
|
|
|
|
fsw.internalTasks[segment.GetID()] = &internalTask{
|
|
|
|
state: indexTaskPrepare,
|
|
|
|
segmentInfo: segment,
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
fsw.internalTasks[segment.GetID()] = &internalTask{
|
|
|
|
state: indexTaskPrepare,
|
|
|
|
segmentInfo: nil,
|
|
|
|
}
|
2022-08-25 15:48:54 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (fsw *flushedSegmentWatcher) internalScheduler() {
|
2022-09-24 13:40:52 +08:00
|
|
|
log.Ctx(fsw.ctx).Info("IndexCoord flushedSegmentWatcher internalScheduler start...")
|
2022-08-25 15:48:54 +08:00
|
|
|
defer fsw.wg.Done()
|
|
|
|
|
|
|
|
ticker := time.NewTicker(fsw.scheduleDuration)
|
|
|
|
defer ticker.Stop()
|
|
|
|
|
|
|
|
for {
|
|
|
|
select {
|
|
|
|
case <-fsw.ctx.Done():
|
2022-09-24 13:40:52 +08:00
|
|
|
log.Ctx(fsw.ctx).Warn("IndexCoord flushedSegmentWatcher context done")
|
2022-08-25 15:48:54 +08:00
|
|
|
return
|
|
|
|
case <-ticker.C:
|
|
|
|
fsw.internalRun()
|
|
|
|
case <-fsw.internalNotify:
|
|
|
|
fsw.internalRun()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (fsw *flushedSegmentWatcher) internalRun() {
|
2022-09-09 15:52:35 +08:00
|
|
|
fsw.internalTaskMutex.RLock()
|
|
|
|
segmentIDs := make([]UniqueID, 0, len(fsw.internalTasks))
|
2022-08-25 15:48:54 +08:00
|
|
|
if len(fsw.internalTasks) > 0 {
|
2022-09-09 15:52:35 +08:00
|
|
|
for segID := range fsw.internalTasks {
|
|
|
|
segmentIDs = append(segmentIDs, segID)
|
2022-08-25 15:48:54 +08:00
|
|
|
}
|
2022-09-09 15:52:35 +08:00
|
|
|
sort.Slice(segmentIDs, func(i, j int) bool {
|
|
|
|
return segmentIDs[i] < segmentIDs[j]
|
|
|
|
})
|
|
|
|
}
|
|
|
|
fsw.internalTaskMutex.RUnlock()
|
|
|
|
|
2022-09-15 15:44:31 +08:00
|
|
|
for _, segmentID := range segmentIDs {
|
|
|
|
fsw.internalProcess(segmentID)
|
2022-08-25 15:48:54 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-09-09 15:52:35 +08:00
|
|
|
func (fsw *flushedSegmentWatcher) internalNotifyFunc() {
|
|
|
|
select {
|
|
|
|
case fsw.internalNotify <- struct{}{}:
|
|
|
|
default:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-09-21 16:34:51 +08:00
|
|
|
func (fsw *flushedSegmentWatcher) Len() int {
|
|
|
|
fsw.internalTaskMutex.RLock()
|
|
|
|
defer fsw.internalTaskMutex.RUnlock()
|
|
|
|
|
|
|
|
return len(fsw.internalTasks)
|
|
|
|
}
|
|
|
|
|
2022-09-09 15:52:35 +08:00
|
|
|
func (fsw *flushedSegmentWatcher) updateInternalTaskState(segID UniqueID, state indexTaskState) {
|
|
|
|
fsw.internalTaskMutex.Lock()
|
|
|
|
defer fsw.internalTaskMutex.Unlock()
|
2022-09-24 13:40:52 +08:00
|
|
|
log.Ctx(fsw.ctx).Debug("flushedSegmentWatcher updateInternalTaskState", zap.Int64("segID", segID),
|
|
|
|
zap.String("state", state.String()))
|
2022-09-09 15:52:35 +08:00
|
|
|
if _, ok := fsw.internalTasks[segID]; ok {
|
|
|
|
fsw.internalTasks[segID].state = state
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (fsw *flushedSegmentWatcher) deleteInternalTask(segID UniqueID) {
|
|
|
|
fsw.internalTaskMutex.Lock()
|
|
|
|
defer fsw.internalTaskMutex.Unlock()
|
|
|
|
|
|
|
|
delete(fsw.internalTasks, segID)
|
2022-09-24 13:40:52 +08:00
|
|
|
log.Ctx(fsw.ctx).Debug("flushedSegmentWatcher delete the internal task", zap.Int64("segID", segID))
|
2022-09-09 15:52:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (fsw *flushedSegmentWatcher) getInternalTask(segID UniqueID) *internalTask {
|
|
|
|
fsw.internalTaskMutex.RLock()
|
|
|
|
defer fsw.internalTaskMutex.RUnlock()
|
|
|
|
|
|
|
|
return &internalTask{
|
|
|
|
state: fsw.internalTasks[segID].state,
|
|
|
|
segmentInfo: fsw.internalTasks[segID].segmentInfo,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (fsw *flushedSegmentWatcher) setInternalTaskSegmentInfo(segID UniqueID, segInfo *datapb.SegmentInfo) {
|
|
|
|
fsw.internalTaskMutex.Lock()
|
|
|
|
defer fsw.internalTaskMutex.Unlock()
|
|
|
|
|
|
|
|
if _, ok := fsw.internalTasks[segID]; ok {
|
|
|
|
fsw.internalTasks[segID].segmentInfo = segInfo
|
|
|
|
}
|
2022-09-24 13:40:52 +08:00
|
|
|
log.Ctx(fsw.ctx).Debug("flushedSegmentWatcher set internal task segment info success", zap.Int64("segID", segID))
|
2022-09-09 15:52:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (fsw *flushedSegmentWatcher) internalProcess(segID UniqueID) {
|
|
|
|
t := fsw.getInternalTask(segID)
|
2022-09-24 13:40:52 +08:00
|
|
|
log.Ctx(fsw.ctx).RatedDebug(10, "flushedSegmentWatcher process internal task", zap.Int64("segID", segID),
|
2022-08-25 15:48:54 +08:00
|
|
|
zap.String("state", t.state.String()))
|
2022-09-09 15:52:35 +08:00
|
|
|
|
2022-08-25 15:48:54 +08:00
|
|
|
switch t.state {
|
2022-09-15 15:44:31 +08:00
|
|
|
case indexTaskPrepare:
|
2022-10-26 16:49:31 +08:00
|
|
|
if t.segmentInfo.GetIsFake() {
|
|
|
|
fsw.handoff.enqueue(t.segmentInfo)
|
|
|
|
fsw.updateInternalTaskState(segID, indexTaskDone)
|
|
|
|
fsw.internalNotifyFunc()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2022-09-15 15:44:31 +08:00
|
|
|
if err := fsw.prepare(segID); err != nil {
|
2022-09-24 13:40:52 +08:00
|
|
|
log.Ctx(fsw.ctx).RatedWarn(10, "flushedSegmentWatcher prepare internal task fail", zap.Int64("segID", segID), zap.Error(err))
|
2022-09-15 15:44:31 +08:00
|
|
|
return
|
|
|
|
}
|
|
|
|
fsw.updateInternalTaskState(segID, indexTaskInit)
|
2022-08-25 15:48:54 +08:00
|
|
|
case indexTaskInit:
|
2022-09-15 15:44:31 +08:00
|
|
|
if err := fsw.constructTask(t); err != nil {
|
2022-09-24 13:40:52 +08:00
|
|
|
log.Ctx(fsw.ctx).RatedWarn(10, "flushedSegmentWatcher construct task fail", zap.Int64("segID", segID), zap.Error(err))
|
2022-09-15 15:44:31 +08:00
|
|
|
return
|
|
|
|
}
|
2022-09-09 15:52:35 +08:00
|
|
|
fsw.updateInternalTaskState(segID, indexTaskInProgress)
|
|
|
|
fsw.internalNotifyFunc()
|
2022-08-25 15:48:54 +08:00
|
|
|
case indexTaskInProgress:
|
2022-09-21 16:34:51 +08:00
|
|
|
if fsw.handoff.taskDone(segID) {
|
2022-09-09 15:52:35 +08:00
|
|
|
fsw.updateInternalTaskState(segID, indexTaskDone)
|
|
|
|
fsw.internalNotifyFunc()
|
2022-08-25 15:48:54 +08:00
|
|
|
}
|
|
|
|
case indexTaskDone:
|
|
|
|
if err := fsw.removeFlushedSegment(t); err != nil {
|
2022-09-24 13:40:52 +08:00
|
|
|
log.Ctx(fsw.ctx).RatedWarn(10, "IndexCoord flushSegmentWatcher removeFlushedSegment fail",
|
2022-09-09 15:52:35 +08:00
|
|
|
zap.Int64("segID", segID), zap.Error(err))
|
2022-08-25 15:48:54 +08:00
|
|
|
return
|
|
|
|
}
|
2022-09-09 15:52:35 +08:00
|
|
|
fsw.deleteInternalTask(segID)
|
|
|
|
fsw.internalNotifyFunc()
|
2022-08-25 15:48:54 +08:00
|
|
|
default:
|
2022-09-24 13:40:52 +08:00
|
|
|
log.Info("IndexCoord flushedSegmentWatcher internal task get invalid state", zap.Int64("segID", segID),
|
2022-08-25 15:48:54 +08:00
|
|
|
zap.String("state", t.state.String()))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-09-15 15:44:31 +08:00
|
|
|
func (fsw *flushedSegmentWatcher) constructTask(t *internalTask) error {
|
|
|
|
fieldIndexes := fsw.meta.GetIndexesForCollection(t.segmentInfo.CollectionID, "")
|
|
|
|
if len(fieldIndexes) == 0 {
|
2022-09-24 13:40:52 +08:00
|
|
|
log.Ctx(fsw.ctx).Debug("segment no need to build index", zap.Int64("segmentID", t.segmentInfo.ID),
|
2022-09-15 15:44:31 +08:00
|
|
|
zap.Int64("num of rows", t.segmentInfo.NumOfRows), zap.Int("collection indexes num", len(fieldIndexes)))
|
|
|
|
// no need to build index
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2022-10-18 17:05:26 +08:00
|
|
|
resp, err := fsw.ic.rootCoordClient.AllocTimestamp(fsw.ctx, &rootcoordpb.AllocTimestampRequest{
|
|
|
|
Count: 1,
|
|
|
|
})
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if resp.Status.GetErrorCode() != commonpb.ErrorCode_Success {
|
|
|
|
return errors.New(resp.Status.GetReason())
|
|
|
|
}
|
|
|
|
|
2022-09-15 15:44:31 +08:00
|
|
|
for _, index := range fieldIndexes {
|
2022-08-25 15:48:54 +08:00
|
|
|
segIdx := &model.SegmentIndex{
|
2022-09-15 15:44:31 +08:00
|
|
|
SegmentID: t.segmentInfo.ID,
|
|
|
|
CollectionID: t.segmentInfo.CollectionID,
|
|
|
|
PartitionID: t.segmentInfo.PartitionID,
|
|
|
|
NumRows: t.segmentInfo.NumOfRows,
|
|
|
|
IndexID: index.IndexID,
|
2022-10-18 17:05:26 +08:00
|
|
|
CreateTime: resp.Timestamp,
|
2022-08-25 15:48:54 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
//create index task for metaTable
|
|
|
|
// send to indexBuilder
|
|
|
|
have, buildID, err := fsw.ic.createIndexForSegment(segIdx)
|
|
|
|
if err != nil {
|
2022-09-24 13:40:52 +08:00
|
|
|
log.Ctx(fsw.ctx).Warn("IndexCoord create index for segment fail", zap.Int64("segID", t.segmentInfo.ID),
|
2022-09-15 15:44:31 +08:00
|
|
|
zap.Int64("indexID", index.IndexID), zap.Error(err))
|
|
|
|
return err
|
2022-08-25 15:48:54 +08:00
|
|
|
}
|
|
|
|
if !have {
|
|
|
|
fsw.builder.enqueue(buildID)
|
|
|
|
}
|
|
|
|
}
|
2022-10-26 16:49:31 +08:00
|
|
|
fsw.handoff.enqueue(t.segmentInfo)
|
2022-09-24 13:40:52 +08:00
|
|
|
log.Ctx(fsw.ctx).Debug("flushedSegmentWatcher construct task success", zap.Int64("segID", t.segmentInfo.ID),
|
2022-10-26 16:49:31 +08:00
|
|
|
zap.Int("segments num", len(fieldIndexes)))
|
2022-09-15 15:44:31 +08:00
|
|
|
return nil
|
2022-08-25 15:48:54 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (fsw *flushedSegmentWatcher) removeFlushedSegment(t *internalTask) error {
|
|
|
|
deletedKeys := fmt.Sprintf("%s/%d/%d/%d", util.FlushedSegmentPrefix, t.segmentInfo.CollectionID, t.segmentInfo.PartitionID, t.segmentInfo.ID)
|
|
|
|
err := fsw.kvClient.RemoveWithPrefix(deletedKeys)
|
|
|
|
if err != nil {
|
2022-09-24 13:40:52 +08:00
|
|
|
log.Ctx(fsw.ctx).Warn("IndexCoord remove flushed segment fail", zap.Int64("collID", t.segmentInfo.CollectionID),
|
2022-08-25 15:48:54 +08:00
|
|
|
zap.Int64("partID", t.segmentInfo.PartitionID), zap.Int64("segID", t.segmentInfo.ID), zap.Error(err))
|
|
|
|
return err
|
|
|
|
}
|
2022-09-24 13:40:52 +08:00
|
|
|
log.Ctx(fsw.ctx).Info("IndexCoord remove flushed segment success", zap.Int64("collID", t.segmentInfo.CollectionID),
|
2022-08-25 15:48:54 +08:00
|
|
|
zap.Int64("partID", t.segmentInfo.PartitionID), zap.Int64("segID", t.segmentInfo.ID))
|
|
|
|
return nil
|
|
|
|
}
|
2022-09-09 15:52:35 +08:00
|
|
|
|
2022-09-21 16:34:51 +08:00
|
|
|
func (fsw *flushedSegmentWatcher) prepare(segID UniqueID) error {
|
|
|
|
defer fsw.internalNotifyFunc()
|
|
|
|
log.Debug("prepare flushed segment task", zap.Int64("segID", segID))
|
|
|
|
t := fsw.getInternalTask(segID)
|
2022-09-09 15:52:35 +08:00
|
|
|
if t.segmentInfo != nil {
|
|
|
|
return nil
|
|
|
|
}
|
2022-09-21 16:34:51 +08:00
|
|
|
info, err := fsw.ic.pullSegmentInfo(fsw.ctx, segID)
|
2022-09-09 15:52:35 +08:00
|
|
|
if err != nil {
|
|
|
|
log.Error("flushedSegmentWatcher get segment info fail", zap.Int64("segID", segID),
|
|
|
|
zap.Error(err))
|
|
|
|
if errors.Is(err, ErrSegmentNotFound) {
|
|
|
|
fsw.deleteInternalTask(segID)
|
2022-09-15 15:44:31 +08:00
|
|
|
return err
|
2022-09-09 15:52:35 +08:00
|
|
|
}
|
2022-09-15 15:44:31 +08:00
|
|
|
return err
|
2022-09-09 15:52:35 +08:00
|
|
|
}
|
2022-09-21 16:34:51 +08:00
|
|
|
fsw.setInternalTaskSegmentInfo(segID, info)
|
2022-09-15 15:44:31 +08:00
|
|
|
return nil
|
2022-09-09 15:52:35 +08:00
|
|
|
}
|