[skip-ci]Add comment on FlushSegments of DataNode interface (#8767)

Signed-off-by: yangxuan <xuan.yang@zilliz.com>
This commit is contained in:
XuanYang-cn 2021-09-29 10:37:59 +08:00 committed by GitHub
parent 72252eccc4
commit fa4ccb05fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,6 +45,15 @@ type DataNode interface {
Component
WatchDmChannels(ctx context.Context, req *datapb.WatchDmChannelsRequest) (*commonpb.Status, error)
// FlushSegments notifies DataNode to flush the segments req provids. The flush tasks are async to this
// rpc, DataNode will flush the segments in the background.
//
// Return UnexpectedError code in status:
// If DataNode isn't in HEALTHY: states not HEALTHY or dynamic checks not HEALTHY
// If DataNode doesn't find the correspounding segmentID in its memeory replica
// Return Success code in status and trigers background flush:
// Log an info log if a segment is under flushing
FlushSegments(ctx context.Context, req *datapb.FlushSegmentsRequest) (*commonpb.Status, error)
GetMetrics(ctx context.Context, req *milvuspb.GetMetricsRequest) (*milvuspb.GetMetricsResponse, error)