mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-07 09:38:39 +08:00
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>
This commit is contained in:
parent
4fb85be525
commit
aa96843d31
@ -98,7 +98,7 @@ func (s *scheduler) Start() {
|
|||||||
for taskID, fs := range futures {
|
for taskID, fs := range futures {
|
||||||
err := conc.AwaitAll(fs...)
|
err := conc.AwaitAll(fs...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
continue
|
||||||
}
|
}
|
||||||
s.manager.Update(taskID, UpdateState(datapb.ImportTaskStateV2_Completed))
|
s.manager.Update(taskID, UpdateState(datapb.ImportTaskStateV2_Completed))
|
||||||
log.Info("preimport/import done", zap.Int64("taskID", taskID))
|
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 !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)
|
return nil, WrapTypeErr(dataType.String(), pqField.Type.Name(), field)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user