mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
enhance: Print out-of-date schema ts when returning ErrSchemaMismatch (#42790)
Related to #41858 This PR add log while debugging schema mismatch between pymilvus cache and proxy schema. Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
parent
9c31a47c0f
commit
880915e08b
@ -149,7 +149,11 @@ func (it *insertTask) PreExecute(ctx context.Context) error {
|
||||
if it.schemaTimestamp != 0 {
|
||||
if it.schemaTimestamp != colInfo.updateTimestamp {
|
||||
err := merr.WrapErrCollectionSchemaMisMatch(collectionName)
|
||||
log.Ctx(ctx).Info("collection schema mismatch", zap.String("collectionName", collectionName), zap.Error(err))
|
||||
log.Ctx(ctx).Info("collection schema mismatch",
|
||||
zap.String("collectionName", collectionName),
|
||||
zap.Uint64("requestSchemaTs", it.schemaTimestamp),
|
||||
zap.Uint64("collectionSchemaTs", colInfo.updateTimestamp),
|
||||
zap.Error(err))
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
@ -340,7 +340,10 @@ func (it *upsertTask) PreExecute(ctx context.Context) error {
|
||||
if it.schemaTimestamp != 0 {
|
||||
if it.schemaTimestamp != colInfo.updateTimestamp {
|
||||
err := merr.WrapErrCollectionSchemaMisMatch(collectionName)
|
||||
log.Info("collection schema mismatch", zap.String("collectionName", collectionName), zap.Error(err))
|
||||
log.Info("collection schema mismatch", zap.String("collectionName", collectionName),
|
||||
zap.Uint64("requestSchemaTs", it.schemaTimestamp),
|
||||
zap.Uint64("collectionSchemaTs", colInfo.updateTimestamp),
|
||||
zap.Error(err))
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user