Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
milvus
milvus
提交
bf2ebc79
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,发现更多精彩内容 >>
未验证
提交
bf2ebc79
编写于
9月 16, 2021
作者:
D
dragondriver
提交者:
GitHub
9月 16, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Cover error cases that task queue is full (#8033)
Signed-off-by:
N
dragondriver
<
jiquan.long@zilliz.com
>
上级
2061bb0f
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
154 addition
and
2 deletion
+154
-2
internal/proxy/proxy_test.go
internal/proxy/proxy_test.go
+154
-2
未找到文件。
internal/proxy/proxy_test.go
浏览文件 @
bf2ebc79
...
...
@@ -1689,16 +1689,168 @@ func TestProxy(t *testing.T) {
ddParallel
:=
proxy
.
sched
.
ddQueue
.
getMaxTaskNum
()
proxy
.
sched
.
ddQueue
.
setMaxTaskNum
(
0
)
t
.
Run
(
"
failed to create collection
, dd queue full"
,
func
(
t
*
testing
.
T
)
{
t
.
Run
(
"
CreateCollection fail
, dd queue full"
,
func
(
t
*
testing
.
T
)
{
resp
,
err
:=
proxy
.
CreateCollection
(
ctx
,
&
milvuspb
.
CreateCollectionRequest
{})
assert
.
NoError
(
t
,
err
)
assert
.
NotEqual
(
t
,
commonpb
.
ErrorCode_Success
,
resp
.
ErrorCode
)
})
// TODO(dragondriver): other tasks
t
.
Run
(
"DropCollection fail, dd queue full"
,
func
(
t
*
testing
.
T
)
{
resp
,
err
:=
proxy
.
DropCollection
(
ctx
,
&
milvuspb
.
DropCollectionRequest
{})
assert
.
NoError
(
t
,
err
)
assert
.
NotEqual
(
t
,
commonpb
.
ErrorCode_Success
,
resp
.
ErrorCode
)
})
t
.
Run
(
"HasCollection fail, dd queue full"
,
func
(
t
*
testing
.
T
)
{
resp
,
err
:=
proxy
.
HasCollection
(
ctx
,
&
milvuspb
.
HasCollectionRequest
{})
assert
.
NoError
(
t
,
err
)
assert
.
NotEqual
(
t
,
commonpb
.
ErrorCode_Success
,
resp
.
Status
.
ErrorCode
)
})
t
.
Run
(
"LoadCollection fail, dd queue full"
,
func
(
t
*
testing
.
T
)
{
resp
,
err
:=
proxy
.
LoadCollection
(
ctx
,
&
milvuspb
.
LoadCollectionRequest
{})
assert
.
NoError
(
t
,
err
)
assert
.
NotEqual
(
t
,
commonpb
.
ErrorCode_Success
,
resp
.
ErrorCode
)
})
t
.
Run
(
"ReleaseCollection fail, dd queue full"
,
func
(
t
*
testing
.
T
)
{
resp
,
err
:=
proxy
.
ReleaseCollection
(
ctx
,
&
milvuspb
.
ReleaseCollectionRequest
{})
assert
.
NoError
(
t
,
err
)
assert
.
NotEqual
(
t
,
commonpb
.
ErrorCode_Success
,
resp
.
ErrorCode
)
})
t
.
Run
(
"DescribeCollection fail, dd queue full"
,
func
(
t
*
testing
.
T
)
{
resp
,
err
:=
proxy
.
DescribeCollection
(
ctx
,
&
milvuspb
.
DescribeCollectionRequest
{})
assert
.
NoError
(
t
,
err
)
assert
.
NotEqual
(
t
,
commonpb
.
ErrorCode_Success
,
resp
.
Status
.
ErrorCode
)
})
t
.
Run
(
"GetCollectionStatistics fail, dd queue full"
,
func
(
t
*
testing
.
T
)
{
resp
,
err
:=
proxy
.
GetCollectionStatistics
(
ctx
,
&
milvuspb
.
GetCollectionStatisticsRequest
{})
assert
.
NoError
(
t
,
err
)
assert
.
NotEqual
(
t
,
commonpb
.
ErrorCode_Success
,
resp
.
Status
.
ErrorCode
)
})
t
.
Run
(
"ShowCollections fail, dd queue full"
,
func
(
t
*
testing
.
T
)
{
resp
,
err
:=
proxy
.
ShowCollections
(
ctx
,
&
milvuspb
.
ShowCollectionsRequest
{})
assert
.
NoError
(
t
,
err
)
assert
.
NotEqual
(
t
,
commonpb
.
ErrorCode_Success
,
resp
.
Status
.
ErrorCode
)
})
t
.
Run
(
"CreatePartition fail, dd queue full"
,
func
(
t
*
testing
.
T
)
{
resp
,
err
:=
proxy
.
CreatePartition
(
ctx
,
&
milvuspb
.
CreatePartitionRequest
{})
assert
.
NoError
(
t
,
err
)
assert
.
NotEqual
(
t
,
commonpb
.
ErrorCode_Success
,
resp
.
ErrorCode
)
})
t
.
Run
(
"DropPartition fail, dd queue full"
,
func
(
t
*
testing
.
T
)
{
resp
,
err
:=
proxy
.
DropPartition
(
ctx
,
&
milvuspb
.
DropPartitionRequest
{})
assert
.
NoError
(
t
,
err
)
assert
.
NotEqual
(
t
,
commonpb
.
ErrorCode_Success
,
resp
.
ErrorCode
)
})
t
.
Run
(
"HasPartition fail, dd queue full"
,
func
(
t
*
testing
.
T
)
{
resp
,
err
:=
proxy
.
HasPartition
(
ctx
,
&
milvuspb
.
HasPartitionRequest
{})
assert
.
NoError
(
t
,
err
)
assert
.
NotEqual
(
t
,
commonpb
.
ErrorCode_Success
,
resp
.
Status
.
ErrorCode
)
})
t
.
Run
(
"LoadPartitions fail, dd queue full"
,
func
(
t
*
testing
.
T
)
{
resp
,
err
:=
proxy
.
LoadPartitions
(
ctx
,
&
milvuspb
.
LoadPartitionsRequest
{})
assert
.
NoError
(
t
,
err
)
assert
.
NotEqual
(
t
,
commonpb
.
ErrorCode_Success
,
resp
.
ErrorCode
)
})
t
.
Run
(
"ReleasePartitions fail, dd queue full"
,
func
(
t
*
testing
.
T
)
{
resp
,
err
:=
proxy
.
ReleasePartitions
(
ctx
,
&
milvuspb
.
ReleasePartitionsRequest
{})
assert
.
NoError
(
t
,
err
)
assert
.
NotEqual
(
t
,
commonpb
.
ErrorCode_Success
,
resp
.
ErrorCode
)
})
t
.
Run
(
"GetPartitionStatistics fail, dd queue full"
,
func
(
t
*
testing
.
T
)
{
resp
,
err
:=
proxy
.
GetPartitionStatistics
(
ctx
,
&
milvuspb
.
GetPartitionStatisticsRequest
{})
assert
.
NoError
(
t
,
err
)
assert
.
NotEqual
(
t
,
commonpb
.
ErrorCode_Success
,
resp
.
Status
.
ErrorCode
)
})
t
.
Run
(
"ShowPartitions fail, dd queue full"
,
func
(
t
*
testing
.
T
)
{
resp
,
err
:=
proxy
.
ShowPartitions
(
ctx
,
&
milvuspb
.
ShowPartitionsRequest
{})
assert
.
NoError
(
t
,
err
)
assert
.
NotEqual
(
t
,
commonpb
.
ErrorCode_Success
,
resp
.
Status
.
ErrorCode
)
})
t
.
Run
(
"CreateIndex fail, dd queue full"
,
func
(
t
*
testing
.
T
)
{
resp
,
err
:=
proxy
.
CreateIndex
(
ctx
,
&
milvuspb
.
CreateIndexRequest
{})
assert
.
NoError
(
t
,
err
)
assert
.
NotEqual
(
t
,
commonpb
.
ErrorCode_Success
,
resp
.
ErrorCode
)
})
t
.
Run
(
"DescribeIndex fail, dd queue full"
,
func
(
t
*
testing
.
T
)
{
resp
,
err
:=
proxy
.
DescribeIndex
(
ctx
,
&
milvuspb
.
DescribeIndexRequest
{})
assert
.
NoError
(
t
,
err
)
assert
.
NotEqual
(
t
,
commonpb
.
ErrorCode_Success
,
resp
.
Status
.
ErrorCode
)
})
t
.
Run
(
"DropIndex fail, dd queue full"
,
func
(
t
*
testing
.
T
)
{
resp
,
err
:=
proxy
.
DropIndex
(
ctx
,
&
milvuspb
.
DropIndexRequest
{})
assert
.
NoError
(
t
,
err
)
assert
.
NotEqual
(
t
,
commonpb
.
ErrorCode_Success
,
resp
.
ErrorCode
)
})
t
.
Run
(
"GetIndexBuildProgress fail, dd queue full"
,
func
(
t
*
testing
.
T
)
{
resp
,
err
:=
proxy
.
GetIndexBuildProgress
(
ctx
,
&
milvuspb
.
GetIndexBuildProgressRequest
{})
assert
.
NoError
(
t
,
err
)
assert
.
NotEqual
(
t
,
commonpb
.
ErrorCode_Success
,
resp
.
Status
.
ErrorCode
)
})
t
.
Run
(
"GetIndexState fail, dd queue full"
,
func
(
t
*
testing
.
T
)
{
resp
,
err
:=
proxy
.
GetIndexState
(
ctx
,
&
milvuspb
.
GetIndexStateRequest
{})
assert
.
NoError
(
t
,
err
)
assert
.
NotEqual
(
t
,
commonpb
.
ErrorCode_Success
,
resp
.
Status
.
ErrorCode
)
})
t
.
Run
(
"Flush fail, dd queue full"
,
func
(
t
*
testing
.
T
)
{
resp
,
err
:=
proxy
.
Flush
(
ctx
,
&
milvuspb
.
FlushRequest
{})
assert
.
NoError
(
t
,
err
)
assert
.
NotEqual
(
t
,
commonpb
.
ErrorCode_Success
,
resp
.
Status
.
ErrorCode
)
})
proxy
.
sched
.
ddQueue
.
setMaxTaskNum
(
ddParallel
)
dmParallelism
:=
proxy
.
sched
.
dmQueue
.
getMaxTaskNum
()
proxy
.
sched
.
dmQueue
.
setMaxTaskNum
(
0
)
t
.
Run
(
"Insert fail, dm queue full"
,
func
(
t
*
testing
.
T
)
{
resp
,
err
:=
proxy
.
Insert
(
ctx
,
&
milvuspb
.
InsertRequest
{})
assert
.
NoError
(
t
,
err
)
assert
.
NotEqual
(
t
,
commonpb
.
ErrorCode_Success
,
resp
.
Status
.
ErrorCode
)
})
t
.
Run
(
"Delete fail, dm queue full"
,
func
(
t
*
testing
.
T
)
{
resp
,
err
:=
proxy
.
Delete
(
ctx
,
&
milvuspb
.
DeleteRequest
{})
assert
.
NoError
(
t
,
err
)
assert
.
NotEqual
(
t
,
commonpb
.
ErrorCode_Success
,
resp
.
Status
.
ErrorCode
)
})
proxy
.
sched
.
dmQueue
.
setMaxTaskNum
(
dmParallelism
)
dqParallelism
:=
proxy
.
sched
.
dqQueue
.
getMaxTaskNum
()
proxy
.
sched
.
dqQueue
.
setMaxTaskNum
(
0
)
t
.
Run
(
"Search fail, dq queue full"
,
func
(
t
*
testing
.
T
)
{
resp
,
err
:=
proxy
.
Search
(
ctx
,
&
milvuspb
.
SearchRequest
{})
assert
.
NoError
(
t
,
err
)
assert
.
NotEqual
(
t
,
commonpb
.
ErrorCode_Success
,
resp
.
Status
.
ErrorCode
)
})
t
.
Run
(
"Query fail, dq queue full"
,
func
(
t
*
testing
.
T
)
{
resp
,
err
:=
proxy
.
Query
(
ctx
,
&
milvuspb
.
QueryRequest
{})
assert
.
NoError
(
t
,
err
)
assert
.
NotEqual
(
t
,
commonpb
.
ErrorCode_Success
,
resp
.
Status
.
ErrorCode
)
})
proxy
.
sched
.
dqQueue
.
setMaxTaskNum
(
dqParallelism
)
// timeout
timeout
:=
time
.
Nanosecond
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录