Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
milvus
milvus
提交
c68a8d35
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,发现更多精彩内容 >>
提交
c68a8d35
编写于
3月 05, 2021
作者:
D
dragondriver
提交者:
yefu.chen
3月 05, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove timeout controlled by server, use timeout client passed instead
Signed-off-by:
N
dragondriver
<
jiquan.long@zilliz.com
>
上级
2835bcdc
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
0 addition
and
48 deletion
+0
-48
internal/proxynode/impl.go
internal/proxynode/impl.go
+0
-42
internal/proxyservice/impl.go
internal/proxyservice/impl.go
+0
-6
未找到文件。
internal/proxynode/impl.go
浏览文件 @
c68a8d35
...
...
@@ -36,8 +36,6 @@ func (node *ProxyNode) InvalidateCollectionMetaCache(ctx context.Context, reques
func
(
node
*
ProxyNode
)
CreateCollection
(
ctx
context
.
Context
,
request
*
milvuspb
.
CreateCollectionRequest
)
(
*
commonpb
.
Status
,
error
)
{
log
.
Println
(
"create collection: "
,
request
)
ctx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
reqTimeoutInterval
)
defer
cancel
()
cct
:=
&
CreateCollectionTask
{
ctx
:
ctx
,
...
...
@@ -68,8 +66,6 @@ func (node *ProxyNode) CreateCollection(ctx context.Context, request *milvuspb.C
func
(
node
*
ProxyNode
)
DropCollection
(
ctx
context
.
Context
,
request
*
milvuspb
.
DropCollectionRequest
)
(
*
commonpb
.
Status
,
error
)
{
log
.
Println
(
"drop collection: "
,
request
)
ctx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
reqTimeoutInterval
)
defer
cancel
()
dct
:=
&
DropCollectionTask
{
ctx
:
ctx
,
...
...
@@ -99,8 +95,6 @@ func (node *ProxyNode) DropCollection(ctx context.Context, request *milvuspb.Dro
func
(
node
*
ProxyNode
)
HasCollection
(
ctx
context
.
Context
,
request
*
milvuspb
.
HasCollectionRequest
)
(
*
milvuspb
.
BoolResponse
,
error
)
{
log
.
Println
(
"has collection: "
,
request
)
ctx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
reqTimeoutInterval
)
defer
cancel
()
hct
:=
&
HasCollectionTask
{
ctx
:
ctx
,
...
...
@@ -165,8 +159,6 @@ func (node *ProxyNode) LoadCollection(ctx context.Context, request *milvuspb.Loa
func
(
node
*
ProxyNode
)
ReleaseCollection
(
ctx
context
.
Context
,
request
*
milvuspb
.
ReleaseCollectionRequest
)
(
*
commonpb
.
Status
,
error
)
{
log
.
Println
(
"release collection: "
,
request
)
ctx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
reqTimeoutInterval
)
defer
cancel
()
rct
:=
&
ReleaseCollectionTask
{
ctx
:
ctx
,
...
...
@@ -196,8 +188,6 @@ func (node *ProxyNode) ReleaseCollection(ctx context.Context, request *milvuspb.
func
(
node
*
ProxyNode
)
DescribeCollection
(
ctx
context
.
Context
,
request
*
milvuspb
.
DescribeCollectionRequest
)
(
*
milvuspb
.
DescribeCollectionResponse
,
error
)
{
log
.
Println
(
"describe collection: "
,
request
)
ctx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
reqTimeoutInterval
)
defer
cancel
()
dct
:=
&
DescribeCollectionTask
{
ctx
:
ctx
,
...
...
@@ -231,8 +221,6 @@ func (node *ProxyNode) DescribeCollection(ctx context.Context, request *milvuspb
func
(
node
*
ProxyNode
)
GetCollectionStatistics
(
ctx
context
.
Context
,
request
*
milvuspb
.
CollectionStatsRequest
)
(
*
milvuspb
.
CollectionStatsResponse
,
error
)
{
log
.
Println
(
"get collection statistics"
)
ctx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
reqTimeoutInterval
)
defer
cancel
()
g
:=
&
GetCollectionsStatisticsTask
{
ctx
:
ctx
,
Condition
:
NewTaskCondition
(
ctx
),
...
...
@@ -265,8 +253,6 @@ func (node *ProxyNode) GetCollectionStatistics(ctx context.Context, request *mil
func
(
node
*
ProxyNode
)
ShowCollections
(
ctx
context
.
Context
,
request
*
milvuspb
.
ShowCollectionRequest
)
(
*
milvuspb
.
ShowCollectionResponse
,
error
)
{
log
.
Println
(
"show collections"
)
ctx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
reqTimeoutInterval
)
defer
cancel
()
sct
:=
&
ShowCollectionsTask
{
ctx
:
ctx
,
Condition
:
NewTaskCondition
(
ctx
),
...
...
@@ -299,8 +285,6 @@ func (node *ProxyNode) ShowCollections(ctx context.Context, request *milvuspb.Sh
func
(
node
*
ProxyNode
)
CreatePartition
(
ctx
context
.
Context
,
request
*
milvuspb
.
CreatePartitionRequest
)
(
*
commonpb
.
Status
,
error
)
{
log
.
Println
(
"create partition"
,
request
)
ctx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
reqTimeoutInterval
)
defer
cancel
()
cpt
:=
&
CreatePartitionTask
{
ctx
:
ctx
,
Condition
:
NewTaskCondition
(
ctx
),
...
...
@@ -328,8 +312,6 @@ func (node *ProxyNode) CreatePartition(ctx context.Context, request *milvuspb.Cr
func
(
node
*
ProxyNode
)
DropPartition
(
ctx
context
.
Context
,
request
*
milvuspb
.
DropPartitionRequest
)
(
*
commonpb
.
Status
,
error
)
{
log
.
Println
(
"drop partition: "
,
request
)
ctx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
reqTimeoutInterval
)
defer
cancel
()
dpt
:=
&
DropPartitionTask
{
ctx
:
ctx
,
Condition
:
NewTaskCondition
(
ctx
),
...
...
@@ -358,8 +340,6 @@ func (node *ProxyNode) DropPartition(ctx context.Context, request *milvuspb.Drop
func
(
node
*
ProxyNode
)
HasPartition
(
ctx
context
.
Context
,
request
*
milvuspb
.
HasPartitionRequest
)
(
*
milvuspb
.
BoolResponse
,
error
)
{
log
.
Println
(
"has partition: "
,
request
)
ctx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
reqTimeoutInterval
)
defer
cancel
()
hpt
:=
&
HasPartitionTask
{
ctx
:
ctx
,
Condition
:
NewTaskCondition
(
ctx
),
...
...
@@ -394,8 +374,6 @@ func (node *ProxyNode) HasPartition(ctx context.Context, request *milvuspb.HasPa
func
(
node
*
ProxyNode
)
LoadPartitions
(
ctx
context
.
Context
,
request
*
milvuspb
.
LoadPartitonRequest
)
(
*
commonpb
.
Status
,
error
)
{
log
.
Println
(
"load partitions: "
,
request
)
ctx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
reqTimeoutInterval
)
defer
cancel
()
lpt
:=
&
LoadPartitionTask
{
ctx
:
ctx
,
...
...
@@ -425,8 +403,6 @@ func (node *ProxyNode) LoadPartitions(ctx context.Context, request *milvuspb.Loa
func
(
node
*
ProxyNode
)
ReleasePartitions
(
ctx
context
.
Context
,
request
*
milvuspb
.
ReleasePartitionRequest
)
(
*
commonpb
.
Status
,
error
)
{
log
.
Println
(
"load partitions: "
,
request
)
ctx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
reqTimeoutInterval
)
defer
cancel
()
rpt
:=
&
ReleasePartitionTask
{
ctx
:
ctx
,
...
...
@@ -460,8 +436,6 @@ func (node *ProxyNode) GetPartitionStatistics(ctx context.Context, request *milv
func
(
node
*
ProxyNode
)
ShowPartitions
(
ctx
context
.
Context
,
request
*
milvuspb
.
ShowPartitionRequest
)
(
*
milvuspb
.
ShowPartitionResponse
,
error
)
{
log
.
Println
(
"show partitions: "
,
request
)
ctx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
reqTimeoutInterval
)
defer
cancel
()
spt
:=
&
ShowPartitionsTask
{
ctx
:
ctx
,
Condition
:
NewTaskCondition
(
ctx
),
...
...
@@ -495,8 +469,6 @@ func (node *ProxyNode) ShowPartitions(ctx context.Context, request *milvuspb.Sho
func
(
node
*
ProxyNode
)
CreateIndex
(
ctx
context
.
Context
,
request
*
milvuspb
.
CreateIndexRequest
)
(
*
commonpb
.
Status
,
error
)
{
log
.
Println
(
"create index for: "
,
request
)
ctx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
reqTimeoutInterval
)
defer
cancel
()
cit
:=
&
CreateIndexTask
{
ctx
:
ctx
,
Condition
:
NewTaskCondition
(
ctx
),
...
...
@@ -525,8 +497,6 @@ func (node *ProxyNode) CreateIndex(ctx context.Context, request *milvuspb.Create
func
(
node
*
ProxyNode
)
DescribeIndex
(
ctx
context
.
Context
,
request
*
milvuspb
.
DescribeIndexRequest
)
(
*
milvuspb
.
DescribeIndexResponse
,
error
)
{
log
.
Println
(
"Describe index for: "
,
request
)
ctx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
reqTimeoutInterval
)
defer
cancel
()
dit
:=
&
DescribeIndexTask
{
ctx
:
ctx
,
Condition
:
NewTaskCondition
(
ctx
),
...
...
@@ -559,8 +529,6 @@ func (node *ProxyNode) DescribeIndex(ctx context.Context, request *milvuspb.Desc
func
(
node
*
ProxyNode
)
DropIndex
(
ctx
context
.
Context
,
request
*
milvuspb
.
DropIndexRequest
)
(
*
commonpb
.
Status
,
error
)
{
log
.
Println
(
"Drop index for: "
,
request
)
ctx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
reqTimeoutInterval
)
defer
cancel
()
dit
:=
&
DropIndexTask
{
ctx
:
ctx
,
Condition
:
NewTaskCondition
(
ctx
),
...
...
@@ -586,8 +554,6 @@ func (node *ProxyNode) DropIndex(ctx context.Context, request *milvuspb.DropInde
func
(
node
*
ProxyNode
)
GetIndexState
(
ctx
context
.
Context
,
request
*
milvuspb
.
IndexStateRequest
)
(
*
milvuspb
.
IndexStateResponse
,
error
)
{
// log.Println("Describe index progress for: ", request)
ctx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
reqTimeoutInterval
)
defer
cancel
()
dipt
:=
&
GetIndexStateTask
{
ctx
:
ctx
,
Condition
:
NewTaskCondition
(
ctx
),
...
...
@@ -620,9 +586,6 @@ func (node *ProxyNode) GetIndexState(ctx context.Context, request *milvuspb.Inde
}
func
(
node
*
ProxyNode
)
Insert
(
ctx
context
.
Context
,
request
*
milvuspb
.
InsertRequest
)
(
*
milvuspb
.
InsertResponse
,
error
)
{
ctx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
reqTimeoutInterval
)
defer
cancel
()
it
:=
&
InsertTask
{
ctx
:
ctx
,
Condition
:
NewTaskCondition
(
ctx
),
...
...
@@ -672,9 +635,6 @@ func (node *ProxyNode) Insert(ctx context.Context, request *milvuspb.InsertReque
}
func
(
node
*
ProxyNode
)
Search
(
ctx
context
.
Context
,
request
*
milvuspb
.
SearchRequest
)
(
*
milvuspb
.
SearchResults
,
error
)
{
ctx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
reqTimeoutInterval
)
defer
cancel
()
qt
:=
&
SearchTask
{
ctx
:
ctx
,
Condition
:
NewTaskCondition
(
ctx
),
...
...
@@ -715,8 +675,6 @@ func (node *ProxyNode) Search(ctx context.Context, request *milvuspb.SearchReque
func
(
node
*
ProxyNode
)
Flush
(
ctx
context
.
Context
,
request
*
milvuspb
.
FlushRequest
)
(
*
commonpb
.
Status
,
error
)
{
log
.
Println
(
"AA Flush collections: "
,
request
.
CollectionNames
)
ctx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
reqTimeoutInterval
)
defer
cancel
()
ft
:=
&
FlushTask
{
ctx
:
ctx
,
Condition
:
NewTaskCondition
(
ctx
),
...
...
internal/proxyservice/impl.go
浏览文件 @
c68a8d35
...
...
@@ -199,8 +199,6 @@ func (s *ProxyService) GetStatisticsChannel(ctx context.Context) (*milvuspb.Stri
func
(
s
*
ProxyService
)
RegisterLink
(
ctx
context
.
Context
)
(
*
milvuspb
.
RegisterLinkResponse
,
error
)
{
log
.
Println
(
"register link"
)
ctx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
timeoutInterval
)
defer
cancel
()
t
:=
&
RegisterLinkTask
{
ctx
:
ctx
,
...
...
@@ -237,8 +235,6 @@ func (s *ProxyService) RegisterLink(ctx context.Context) (*milvuspb.RegisterLink
func
(
s
*
ProxyService
)
RegisterNode
(
ctx
context
.
Context
,
request
*
proxypb
.
RegisterNodeRequest
)
(
*
proxypb
.
RegisterNodeResponse
,
error
)
{
log
.
Println
(
"RegisterNode: "
,
request
)
ctx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
timeoutInterval
)
defer
cancel
()
t
:=
&
RegisterNodeTask
{
ctx
:
ctx
,
...
...
@@ -278,8 +274,6 @@ func (s *ProxyService) RegisterNode(ctx context.Context, request *proxypb.Regist
func
(
s
*
ProxyService
)
InvalidateCollectionMetaCache
(
ctx
context
.
Context
,
request
*
proxypb
.
InvalidateCollMetaCacheRequest
)
(
*
commonpb
.
Status
,
error
)
{
log
.
Println
(
"InvalidateCollectionMetaCache"
)
ctx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
timeoutInterval
)
defer
cancel
()
t
:=
&
InvalidateCollectionMetaCacheTask
{
ctx
:
ctx
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录