未验证 提交 3db76e8e 编写于 作者: X XuanYang-cn 提交者: GitHub

[skip-ci]Add comment in data sync service (#8002)

Signed-off-by: Nyangxuan <xuan.yang@zilliz.com>
上级 5f5fafa0
......@@ -578,6 +578,7 @@ func (node *DataNode) GetStatisticsChannel(ctx context.Context) (*milvuspb.Strin
}, nil
}
// GetMetrics return datanode metrics
// TODO(dragondriver): cache the Metrics and set a retention to the cache
func (node *DataNode) GetMetrics(ctx context.Context, req *milvuspb.GetMetricsRequest) (*milvuspb.GetMetricsResponse, error) {
log.Debug("DataNode.GetMetrics",
......
......@@ -27,6 +27,7 @@ import (
"go.uber.org/zap"
)
// dataSyncService controls a flowgraph for a specific collection
type dataSyncService struct {
ctx context.Context
cancelFn context.CancelFunc
......@@ -78,6 +79,7 @@ func newDataSyncService(ctx context.Context,
return service, nil
}
// start starts the flowgraph in datasyncservice
func (dsService *dataSyncService) start() {
if dsService.fg != nil {
log.Debug("Data Sync Service starting flowgraph")
......@@ -96,6 +98,7 @@ func (dsService *dataSyncService) close() {
dsService.cancelFn()
}
// initNodes inits a TimetickedFlowGraph
func (dsService *dataSyncService) initNodes(vchanInfo *datapb.VchannelInfo) error {
// TODO: add delete pipeline support
dsService.fg = flowgraph.NewTimeTickedFlowGraph(dsService.ctx)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册