Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
milvus
milvus
提交
f95ef226
M
milvus
项目概览
milvus
/
milvus
11 个月 前同步成功
通知
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,发现更多精彩内容 >>
未验证
提交
f95ef226
编写于
11月 23, 2021
作者:
Z
zhenshan.cao
提交者:
GitHub
11月 23, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add GetFlushState grpc method (#12220)
Update sdk version Signed-off-by:
N
zhenshan.cao
<
zhenshan.cao@zilliz.com
>
上级
1dfdb322
变更
9
展开全部
隐藏空白更改
内联
并排
Showing
9 changed file
with
315 addition
and
262 deletion
+315
-262
internal/core/src/pb/milvus.pb.cc
internal/core/src/pb/milvus.pb.cc
+35
-33
internal/proto/milvus.proto
internal/proto/milvus.proto
+1
-0
internal/proto/milvuspb/milvus.pb.go
internal/proto/milvuspb/milvus.pb.go
+255
-218
internal/proxy/impl.go
internal/proxy/impl.go
+2
-1
internal/querynode/flow_graph_delete_node.go
internal/querynode/flow_graph_delete_node.go
+4
-1
internal/querynode/flow_graph_service_time_node.go
internal/querynode/flow_graph_service_time_node.go
+10
-8
internal/querynode/param_table.go
internal/querynode/param_table.go
+1
-0
internal/querynode/query_collection.go
internal/querynode/query_collection.go
+6
-0
tests/python_client/requirements.txt
tests/python_client/requirements.txt
+1
-1
未找到文件。
internal/core/src/pb/milvus.pb.cc
浏览文件 @
f95ef226
...
...
@@ -2615,7 +2615,7 @@ const char descriptor_table_protodef_milvus_2eproto[] PROTOBUF_SECTION_VARIABLE(
"\030\001 \001(\0132\033.milvus.proto.common.Status\022\017\n\007f"
"lushed\030\002 \001(\010*!\n\010ShowType\022\007\n\003All\020\000\022\014\n\010InM"
"emory\020\001*>\n\017PlaceholderType\022\010\n\004None\020\000\022\020\n\014"
"BinaryVector\020d\022\017\n\013FloatVector\020e2\2
33\036
\n\rMilv"
"BinaryVector\020d\022\017\n\013FloatVector\020e2\2
05\037
\n\rMilv"
"usService\022_\n\020CreateCollection\022,.milvus.p"
"roto.milvus.CreateCollectionRequest\032\033.mi"
"lvus.proto.common.Status\"\000\022[\n\016DropCollec"
...
...
@@ -2687,37 +2687,39 @@ const char descriptor_table_protodef_milvus_2eproto[] PROTOBUF_SECTION_VARIABLE(
"st\032!.milvus.proto.milvus.QueryResults\"\000\022"
"d\n\014CalcDistance\022(.milvus.proto.milvus.Ca"
"lcDistanceRequest\032(.milvus.proto.milvus."
"CalcDistanceResults\"\000\022\211\001\n\030GetPersistentS"
"egmentInfo\0224.milvus.proto.milvus.GetPers"
"istentSegmentInfoRequest\0325.milvus.proto."
"milvus.GetPersistentSegmentInfoResponse\""
"\000\022z\n\023GetQuerySegmentInfo\022/.milvus.proto."
"milvus.GetQuerySegmentInfoRequest\0320.milv"
"us.proto.milvus.GetQuerySegmentInfoRespo"
"nse\"\000\022P\n\005Dummy\022!.milvus.proto.milvus.Dum"
"myRequest\032\".milvus.proto.milvus.DummyRes"
"ponse\"\000\022e\n\014RegisterLink\022(.milvus.proto.m"
"ilvus.RegisterLinkRequest\032).milvus.proto"
".milvus.RegisterLinkResponse\"\000\022_\n\nGetMet"
"rics\022&.milvus.proto.milvus.GetMetricsReq"
"uest\032\'.milvus.proto.milvus.GetMetricsRes"
"ponse\"\000\022U\n\013LoadBalance\022\'.milvus.proto.mi"
"lvus.LoadBalanceRequest\032\033.milvus.proto.c"
"ommon.Status\"\000\022w\n\022GetCompactionState\022..m"
"ilvus.proto.milvus.GetCompactionStateReq"
"uest\032/.milvus.proto.milvus.GetCompaction"
"StateResponse\"\000\022q\n\020ManualCompaction\022,.mi"
"lvus.proto.milvus.ManualCompactionReques"
"t\032-.milvus.proto.milvus.ManualCompaction"
"Response\"\000\022\200\001\n\033GetCompactionStateWithPla"
"ns\022..milvus.proto.milvus.GetCompactionPl"
"ansRequest\032/.milvus.proto.milvus.GetComp"
"actionPlansResponse\"\0002u\n\014ProxyService\022e\n"
"\014RegisterLink\022(.milvus.proto.milvus.Regi"
"sterLinkRequest\032).milvus.proto.milvus.Re"
"gisterLinkResponse\"\000B5Z3github.com/milvu"
"s-io/milvus/internal/proto/milvuspbb\006pro"
"to3"
"CalcDistanceResults\"\000\022h\n\rGetFlushState\022)"
".milvus.proto.milvus.GetFlushStateReques"
"t\032*.milvus.proto.milvus.GetFlushStateRes"
"ponse\"\000\022\211\001\n\030GetPersistentSegmentInfo\0224.m"
"ilvus.proto.milvus.GetPersistentSegmentI"
"nfoRequest\0325.milvus.proto.milvus.GetPers"
"istentSegmentInfoResponse\"\000\022z\n\023GetQueryS"
"egmentInfo\022/.milvus.proto.milvus.GetQuer"
"ySegmentInfoRequest\0320.milvus.proto.milvu"
"s.GetQuerySegmentInfoResponse\"\000\022P\n\005Dummy"
"\022!.milvus.proto.milvus.DummyRequest\032\".mi"
"lvus.proto.milvus.DummyResponse\"\000\022e\n\014Reg"
"isterLink\022(.milvus.proto.milvus.Register"
"LinkRequest\032).milvus.proto.milvus.Regist"
"erLinkResponse\"\000\022_\n\nGetMetrics\022&.milvus."
"proto.milvus.GetMetricsRequest\032\'.milvus."
"proto.milvus.GetMetricsResponse\"\000\022U\n\013Loa"
"dBalance\022\'.milvus.proto.milvus.LoadBalan"
"ceRequest\032\033.milvus.proto.common.Status\"\000"
"\022w\n\022GetCompactionState\022..milvus.proto.mi"
"lvus.GetCompactionStateRequest\032/.milvus."
"proto.milvus.GetCompactionStateResponse\""
"\000\022q\n\020ManualCompaction\022,.milvus.proto.mil"
"vus.ManualCompactionRequest\032-.milvus.pro"
"to.milvus.ManualCompactionResponse\"\000\022\200\001\n"
"\033GetCompactionStateWithPlans\022..milvus.pr"
"oto.milvus.GetCompactionPlansRequest\032/.m"
"ilvus.proto.milvus.GetCompactionPlansRes"
"ponse\"\0002u\n\014ProxyService\022e\n\014RegisterLink\022"
"(.milvus.proto.milvus.RegisterLinkReques"
"t\032).milvus.proto.milvus.RegisterLinkResp"
"onse\"\000B5Z3github.com/milvus-io/milvus/in"
"ternal/proto/milvuspbb\006proto3"
;
static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_milvus_2eproto_deps[2] = {
&::descriptor_table_common_2eproto,
...
...
@@ -2805,7 +2807,7 @@ static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_mil
static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_milvus_2eproto_once;
static bool descriptor_table_milvus_2eproto_initialized = false;
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_milvus_2eproto = {
&descriptor_table_milvus_2eproto_initialized, descriptor_table_protodef_milvus_2eproto, "milvus.proto", 14
563
,
&descriptor_table_milvus_2eproto_initialized, descriptor_table_protodef_milvus_2eproto, "milvus.proto", 14
669
,
&descriptor_table_milvus_2eproto_once, descriptor_table_milvus_2eproto_sccs, descriptor_table_milvus_2eproto_deps, 77, 2,
schemas, file_default_instances, TableStruct_milvus_2eproto::offsets,
file_level_metadata_milvus_2eproto, 77, file_level_enum_descriptors_milvus_2eproto, file_level_service_descriptors_milvus_2eproto,
internal/proto/milvus.proto
浏览文件 @
f95ef226
...
...
@@ -41,6 +41,7 @@ service MilvusService {
rpc
Query
(
QueryRequest
)
returns
(
QueryResults
)
{}
rpc
CalcDistance
(
CalcDistanceRequest
)
returns
(
CalcDistanceResults
)
{}
rpc
GetFlushState
(
GetFlushStateRequest
)
returns
(
GetFlushStateResponse
)
{}
rpc
GetPersistentSegmentInfo
(
GetPersistentSegmentInfoRequest
)
returns
(
GetPersistentSegmentInfoResponse
)
{}
rpc
GetQuerySegmentInfo
(
GetQuerySegmentInfoRequest
)
returns
(
GetQuerySegmentInfoResponse
)
{}
...
...
internal/proto/milvuspb/milvus.pb.go
浏览文件 @
f95ef226
此差异已折叠。
点击以展开。
internal/proxy/impl.go
浏览文件 @
f95ef226
...
...
@@ -2541,6 +2541,7 @@ func (node *Proxy) GetCompactionStateWithPlans(ctx context.Context, req *milvusp
// GetFlushState gets the flush state of multiple segments
func
(
node
*
Proxy
)
GetFlushState
(
ctx
context
.
Context
,
req
*
milvuspb
.
GetFlushStateRequest
)
(
*
milvuspb
.
GetFlushStateResponse
,
error
)
{
log
.
Info
(
"received get flush state request"
,
zap
.
Any
(
"request"
,
req
))
var
err
error
resp
:=
&
milvuspb
.
GetFlushStateResponse
{}
if
!
node
.
checkHealthy
()
{
resp
.
Status
=
unhealthyStatus
()
...
...
@@ -2548,7 +2549,7 @@ func (node *Proxy) GetFlushState(ctx context.Context, req *milvuspb.GetFlushStat
return
resp
,
nil
}
resp
,
err
:
=
node
.
dataCoord
.
GetFlushState
(
ctx
,
req
)
resp
,
err
=
node
.
dataCoord
.
GetFlushState
(
ctx
,
req
)
log
.
Info
(
"received get flush state response"
,
zap
.
Any
(
"response"
,
resp
))
return
resp
,
err
}
...
...
internal/querynode/flow_graph_delete_node.go
浏览文件 @
f95ef226
...
...
@@ -59,7 +59,10 @@ func (dNode *deleteNode) Operate(in []flowgraph.Msg) []flowgraph.Msg {
zap
.
Any
(
"collectionID"
,
delMsg
.
CollectionID
),
zap
.
Any
(
"collectionName"
,
delMsg
.
CollectionName
),
zap
.
Any
(
"pks"
,
delMsg
.
PrimaryKeys
),
zap
.
Any
(
"timestamp"
,
delMsg
.
Timestamps
))
zap
.
Any
(
"timestamp"
,
delMsg
.
Timestamps
),
zap
.
Any
(
"timestampBegin"
,
delMsg
.
BeginTs
()),
zap
.
Any
(
"timestampEnd"
,
delMsg
.
EndTs
()),
)
processDeleteMessages
(
dNode
.
replica
,
delMsg
,
delData
)
}
}
...
...
internal/querynode/flow_graph_service_time_node.go
浏览文件 @
f95ef226
...
...
@@ -14,11 +14,11 @@ package querynode
import
(
"context"
"go.uber.org/zap"
"github.com/milvus-io/milvus/internal/log"
"github.com/milvus-io/milvus/internal/msgstream"
"github.com/milvus-io/milvus/internal/util/flowgraph"
"github.com/milvus-io/milvus/internal/util/tsoutil"
"go.uber.org/zap"
)
type
serviceTimeNode
struct
{
...
...
@@ -69,12 +69,14 @@ func (stNode *serviceTimeNode) Operate(in []flowgraph.Msg) []flowgraph.Msg {
if
err
!=
nil
{
log
.
Warn
(
err
.
Error
())
}
//log.Debug("update tSafe:",
// zap.Int64("tSafe", int64(serviceTimeMsg.timeRange.timestampMax)),
// zap.Any("collectionID", stNode.collectionID),
// zap.Any("id", id),
// zap.Any("channel", stNode.vChannel),
//)
p
,
_
:=
tsoutil
.
ParseTS
(
serviceTimeMsg
.
timeRange
.
timestampMax
)
log
.
Debug
(
"update tSafe:"
,
zap
.
Any
(
"collectionID"
,
stNode
.
collectionID
),
zap
.
Any
(
"tSafe"
,
serviceTimeMsg
.
timeRange
.
timestampMax
),
zap
.
Any
(
"tSafe_p"
,
p
),
zap
.
Any
(
"id"
,
id
),
zap
.
Any
(
"channel"
,
stNode
.
vChannel
),
)
//if err := stNode.sendTimeTick(serviceTimeMsg.timeRange.timestampMax); err != nil {
// log.Warn("Error: send time tick into pulsar channel failed", zap.Error(err))
...
...
internal/querynode/param_table.go
浏览文件 @
f95ef226
...
...
@@ -331,6 +331,7 @@ func (p *ParamTable) initMetaRootPath() {
func
(
p
*
ParamTable
)
initGracefulTime
()
{
p
.
GracefulTime
=
p
.
ParseInt64
(
"queryNode.gracefulTime"
)
log
.
Debug
(
"query node init gracefulTime"
,
zap
.
Any
(
"gracefulTime"
,
p
.
GracefulTime
))
}
func
(
p
*
ParamTable
)
initSegcoreChunkRows
()
{
...
...
internal/querynode/query_collection.go
浏览文件 @
f95ef226
...
...
@@ -248,6 +248,12 @@ func (q *queryCollection) waitNewTSafe() (Timestamp, error) {
t
=
ts
}
}
p
,
_
:=
tsoutil
.
ParseTS
(
t
)
log
.
Debug
(
"waitNewTSafe"
,
zap
.
Any
(
"collectionID"
,
q
.
collectionID
),
zap
.
Any
(
"tSafe"
,
t
),
zap
.
Any
(
"tSafe_p"
,
p
),
)
return
t
,
nil
}
...
...
tests/python_client/requirements.txt
浏览文件 @
f95ef226
...
...
@@ -12,7 +12,7 @@ allure-pytest==2.7.0
pytest-print==0.2.1
pytest-level==0.1.1
pytest-xdist==2.2.1
pymilvus==2.0.0rc9.dev1
4
pymilvus==2.0.0rc9.dev1
6
pytest-rerunfailures==9.1.1
git+https://github.com/Projectplace/pytest-tags
ndg-httpsclient
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录