mirror of https://github.com/milvus-io/milvus.git
Fix indexnode ut bug (#19468)
Signed-off-by: cai.zhang <cai.zhang@zilliz.com> Signed-off-by: cai.zhang <cai.zhang@zilliz.com>pull/19479/head
parent
f6e7b92db6
commit
2442335aa2
|
@ -217,7 +217,7 @@ func TestIndexNodeComplex(t *testing.T) {
|
|||
var i int64
|
||||
t.Logf("preparing mock data...")
|
||||
wg := sync.WaitGroup{}
|
||||
for i = 0; i < 256; i++ {
|
||||
for i = 0; i < 10; i++ {
|
||||
task := &testTask{
|
||||
buildID: i + buildID0,
|
||||
collID: i + collID0,
|
||||
|
@ -289,6 +289,7 @@ Loop:
|
|||
if jobNumRet.TotalJobNum == 0 {
|
||||
break Loop
|
||||
}
|
||||
time.Sleep(time.Second)
|
||||
}
|
||||
}
|
||||
buildIDs := make([]int64, 0, len(tasks))
|
||||
|
|
|
@ -212,6 +212,7 @@ func (sched *TaskScheduler) processTask(t task, q TaskQueue) {
|
|||
}()
|
||||
sched.IndexBuildQueue.AddActiveTask(t)
|
||||
defer sched.IndexBuildQueue.PopActiveTask(t.Name())
|
||||
log.Ctx(t.Ctx()).Debug("process task", zap.String("task", t.Name()))
|
||||
pipelines := []func(context.Context) error{t.Prepare, t.LoadData, t.BuildIndex, t.SaveIndexFiles}
|
||||
for _, fn := range pipelines {
|
||||
if err := wrap(fn); err != nil {
|
||||
|
|
Loading…
Reference in New Issue