mirror of https://github.com/milvus-io/milvus.git
fix: Fix import hanging and improve logging output (#32166)
Fix import hanging when the previous import task failed, and improve parquet import logging outout. issue: https://github.com/milvus-io/milvus/issues/31834 Signed-off-by: bigsheeper <yihao.dai@zilliz.com>pull/32177/head
parent
4fb85be525
commit
aa96843d31
|
@ -98,7 +98,7 @@ func (s *scheduler) Start() {
|
|||
for taskID, fs := range futures {
|
||||
err := conc.AwaitAll(fs...)
|
||||
if err != nil {
|
||||
return
|
||||
continue
|
||||
}
|
||||
s.manager.Update(taskID, UpdateState(datapb.ImportTaskStateV2_Completed))
|
||||
log.Info("preimport/import done", zap.Int64("taskID", taskID))
|
||||
|
|
|
@ -76,6 +76,9 @@ func CreateFieldReaders(ctx context.Context, fileReader *pqarrow.FileReader, sch
|
|||
}
|
||||
}
|
||||
if !isConvertible(arrowType, dataType, isList) {
|
||||
if isList {
|
||||
return nil, WrapTypeErr(dataType.String(), pqField.Type.(*arrow.ListType).ElemField().Type.Name(), field)
|
||||
}
|
||||
return nil, WrapTypeErr(dataType.String(), pqField.Type.Name(), field)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue