Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
milvus
milvus
提交
50b3d393
M
milvus
项目概览
milvus
/
milvus
大约 1 年 前同步成功
通知
261
Star
22476
Fork
2472
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
milvus
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
50b3d393
编写于
6月 07, 2021
作者:
S
sunby
提交者:
GitHub
6月 07, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add GetRecoveryInfo interface and proto (#5598)
Signed-off-by:
N
sunby
<
bingyi.sun@zilliz.com
>
上级
fb358af0
变更
6
展开全部
显示空白变更内容
内联
并排
Showing
6 changed file
with
552 addition
and
112 deletion
+552
-112
internal/dataservice/server.go
internal/dataservice/server.go
+4
-0
internal/distributed/dataservice/client/client.go
internal/distributed/dataservice/client/client.go
+7
-0
internal/distributed/dataservice/service.go
internal/distributed/dataservice/service.go
+4
-0
internal/proto/data_service.proto
internal/proto/data_service.proto
+39
-1
internal/proto/datapb/data_service.pb.go
internal/proto/datapb/data_service.pb.go
+497
-111
internal/types/types.go
internal/types/types.go
+1
-0
未找到文件。
internal/dataservice/server.go
浏览文件 @
50b3d393
...
...
@@ -960,6 +960,10 @@ func (s *Server) SaveBinlogPaths(ctx context.Context, req *datapb.SaveBinlogPath
return
resp
,
nil
}
func
(
s
*
Server
)
GetRecoveryInfo
(
ctx
context
.
Context
,
req
*
datapb
.
GetRecoveryInfoRequest
)
(
*
datapb
.
GetRecoveryInfoResponse
,
error
)
{
panic
(
"implement me"
)
}
func
composeSegmentFlushMsgPack
(
segmentID
UniqueID
)
msgstream
.
MsgPack
{
msgPack
:=
msgstream
.
MsgPack
{
Msgs
:
make
([]
msgstream
.
TsMsg
,
0
,
1
),
...
...
internal/distributed/dataservice/client/client.go
浏览文件 @
50b3d393
...
...
@@ -271,3 +271,10 @@ func (c *Client) GetSegmentInfo(ctx context.Context, req *datapb.GetSegmentInfoR
})
return
ret
.
(
*
datapb
.
GetSegmentInfoResponse
),
err
}
func
(
c
*
Client
)
GetRecoveryInfo
(
ctx
context
.
Context
,
req
*
datapb
.
GetRecoveryInfoRequest
)
(
*
datapb
.
GetRecoveryInfoResponse
,
error
)
{
ret
,
err
:=
c
.
recall
(
func
()
(
interface
{},
error
)
{
return
c
.
grpcClient
.
GetRecoveryInfo
(
ctx
,
req
)
})
return
ret
.
(
*
datapb
.
GetRecoveryInfoResponse
),
err
}
internal/distributed/dataservice/service.go
浏览文件 @
50b3d393
...
...
@@ -277,3 +277,7 @@ func (s *Server) GetSegmentInfoChannel(ctx context.Context, req *datapb.GetSegme
func
(
s
*
Server
)
SaveBinlogPaths
(
ctx
context
.
Context
,
req
*
datapb
.
SaveBinlogPathsRequest
)
(
*
commonpb
.
Status
,
error
)
{
return
s
.
dataService
.
SaveBinlogPaths
(
ctx
,
req
)
}
func
(
s
*
Server
)
GetRecoveryInfo
(
ctx
context
.
Context
,
req
*
datapb
.
GetRecoveryInfoRequest
)
(
*
datapb
.
GetRecoveryInfoResponse
,
error
)
{
return
s
.
dataService
.
GetRecoveryInfo
(
ctx
,
req
)
}
internal/proto/data_service.proto
浏览文件 @
50b3d393
...
...
@@ -31,6 +31,7 @@ service DataService {
rpc
GetSegmentInfoChannel
(
GetSegmentInfoChannelRequest
)
returns
(
milvus.StringResponse
){}
rpc
SaveBinlogPaths
(
SaveBinlogPathsRequest
)
returns
(
common.Status
){}
rpc
GetRecoveryInfo
(
GetRecoveryInfoRequest
)
returns
(
GetRecoveryInfoResponse
){}
}
service
DataNode
{
...
...
@@ -250,3 +251,40 @@ message SaveBinlogPathsRequest {
PositionPair
dml_position
=
6
;
PositionPair
ddl_position
=
7
;
}
message
CheckPoint
{
int64
segmentID
=
1
;
internal.MsgPosition
position
=
2
;
int64
num_of_rows
=
3
;
}
message
VchannelInfo
{
int64
collectionID
=
1
;
string
channelName
=
2
;
internal.MsgPosition
seek_position
=
3
;
repeated
CheckPoint
checkPoints
=
4
;
repeated
int64
flushedSegments
=
5
;
}
message
SegmentBinlogs
{
int64
segmentID
=
1
;
repeated
FieldBinlog
fieldBinlogs
=
2
;
}
message
FieldBinlog
{
int64
fieldID
=
1
;
repeated
string
binlogs
=
2
;
}
message
GetRecoveryInfoResponse
{
common.MsgBase
base
=
1
;
repeated
VchannelInfo
channels
=
2
;
repeated
SegmentBinlogs
binlogs
=
3
;
}
message
GetRecoveryInfoRequest
{
common.MsgBase
base
=
1
;
int64
collectionID
=
2
;
int64
partitionID
=
3
;
}
internal/proto/datapb/data_service.pb.go
浏览文件 @
50b3d393
此差异已折叠。
点击以展开。
internal/types/types.go
浏览文件 @
50b3d393
...
...
@@ -61,6 +61,7 @@ type DataService interface {
GetCollectionStatistics
(
ctx
context
.
Context
,
req
*
datapb
.
GetCollectionStatisticsRequest
)
(
*
datapb
.
GetCollectionStatisticsResponse
,
error
)
GetPartitionStatistics
(
ctx
context
.
Context
,
req
*
datapb
.
GetPartitionStatisticsRequest
)
(
*
datapb
.
GetPartitionStatisticsResponse
,
error
)
GetSegmentInfo
(
ctx
context
.
Context
,
req
*
datapb
.
GetSegmentInfoRequest
)
(
*
datapb
.
GetSegmentInfoResponse
,
error
)
GetRecoveryInfo
(
ctx
context
.
Context
,
req
*
datapb
.
GetRecoveryInfoRequest
)
(
*
datapb
.
GetRecoveryInfoResponse
,
error
)
}
type
IndexNode
interface
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录