Add more specific comment in datanode (#9488)

Signed-off-by: yangxuan <xuan.yang@zilliz.com>
pull/9509/head
XuanYang-cn 2021-10-09 00:09:47 +08:00 committed by GitHub
parent 97a6bde82a
commit 30395cb1b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

1
.gitignore vendored
View File

@ -72,6 +72,7 @@ gtags.conf
*coverage.txt
profile.out
*coverage.html
cover.out
# codecov-cpp generated files
lcov_*.info

View File

@ -415,6 +415,7 @@ func (node *DataNode) WatchDmChannels(ctx context.Context, in *datapb.WatchDmCha
default:
for _, chanInfo := range in.GetVchannels() {
log.Info("DataNode new dataSyncService",
zap.Int64("collectionID", chanInfo.GetCollectionID()),
zap.String("channel name", chanInfo.ChannelName),
zap.Any("channal Info", chanInfo),
)
@ -422,7 +423,9 @@ func (node *DataNode) WatchDmChannels(ctx context.Context, in *datapb.WatchDmCha
log.Warn("Failed to new data sync service",
zap.Any("channel", chanInfo),
zap.Error(err))
// return error even partial success
// TODO Goose: release partial success resources?
status.Reason = err.Error()
return status, nil
}