[skip ci]Add missing functions in chap06_root_coordinator.md (#9926)

Signed-off-by: ruiyi.jiang <ruiyi.jiang@zilliz.com>
pull/10049/head
ryjiang 2021-10-18 09:38:33 +08:00 committed by GitHub
parent 8c7765b2b9
commit a22d4c6d4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 0 deletions

View File

@ -34,6 +34,21 @@ type RootCoord interface {
DescribeSegment(ctx context.Context, req *milvuspb.DescribeSegmentRequest) (*milvuspb.DescribeSegmentResponse, error)
ShowSegments(ctx context.Context, req *milvuspb.ShowSegmentsRequest) (*milvuspb.ShowSegmentsResponse, error)
ReleaseDQLMessageStream(ctx context.Context, in *proxypb.ReleaseDQLMessageStreamRequest) (*commonpb.Status, error)
// SegmentFlushCompleted notifies RootCoord that specified segment has been flushed
//
// ctx is the context to control request deadline and cancellation
// req contains the request params, including SegmentInfo
//
// The `ErrorCode` of `Status` is `Success` if process successfully;
// otherwise, the `ErrorCode` of `Status` will be `Error`, and the `Reason` of `Status` will record the fail cause.
// error is always nil
//
// This interface is only used by DataCoord, when RootCoord receives this request, RootCoord will notify IndexCoord
// to build index for this segment.
SegmentFlushCompleted(ctx context.Context, in *datapb.SegmentFlushCompletedMsg) (*commonpb.Status, error)
// GetMetrics notifies RootCoord to collect metrics for specified component
GetMetrics(ctx context.Context, req *milvuspb.GetMetricsRequest) (*milvuspb.GetMetricsResponse, error)
}
```