Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
milvus
milvus
提交
83647e85
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,发现更多精彩内容 >>
提交
83647e85
编写于
4月 19, 2021
作者:
N
neza2017
提交者:
yefu.chen
4月 19, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add copyright in master service module
Signed-off-by:
N
neza2017
<
yefu.chen@zilliz.com
>
上级
a5ad70a5
变更
18
隐藏空白更改
内联
并排
Showing
18 changed file
with
189 addition
and
2 deletion
+189
-2
cmd/masterservice/main.go
cmd/masterservice/main.go
+11
-0
internal/dataservice/server_test.go
internal/dataservice/server_test.go
+2
-2
internal/distributed/masterservice/client/client.go
internal/distributed/masterservice/client/client.go
+11
-0
internal/distributed/masterservice/masterservice_test.go
internal/distributed/masterservice/masterservice_test.go
+11
-0
internal/distributed/masterservice/param_table.go
internal/distributed/masterservice/param_table.go
+11
-0
internal/distributed/masterservice/param_table_test.go
internal/distributed/masterservice/param_table_test.go
+11
-0
internal/distributed/masterservice/server.go
internal/distributed/masterservice/server.go
+11
-0
internal/masterservice/field_id.go
internal/masterservice/field_id.go
+11
-0
internal/masterservice/master_service.go
internal/masterservice/master_service.go
+11
-0
internal/masterservice/master_service_test.go
internal/masterservice/master_service_test.go
+11
-0
internal/masterservice/meta_table.go
internal/masterservice/meta_table.go
+11
-0
internal/masterservice/meta_table_test.go
internal/masterservice/meta_table_test.go
+11
-0
internal/masterservice/param_table.go
internal/masterservice/param_table.go
+11
-0
internal/masterservice/param_table_test.go
internal/masterservice/param_table_test.go
+11
-0
internal/masterservice/task.go
internal/masterservice/task.go
+11
-0
internal/masterservice/timestamp_test.go
internal/masterservice/timestamp_test.go
+11
-0
internal/masterservice/util.go
internal/masterservice/util.go
+11
-0
internal/masterservice/util_test.go
internal/masterservice/util_test.go
+11
-0
未找到文件。
cmd/masterservice/main.go
浏览文件 @
83647e85
// Copyright (C) 2019-2020 Zilliz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software distributed under the License
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
// or implied. See the License for the specific language governing permissions and limitations under the License.
package
main
package
main
import
(
import
(
...
...
internal/dataservice/server_test.go
浏览文件 @
83647e85
...
@@ -172,7 +172,7 @@ func TestShowSegments(t *testing.T) {
...
@@ -172,7 +172,7 @@ func TestShowSegments(t *testing.T) {
})
})
assert
.
Nil
(
t
,
err
)
assert
.
Nil
(
t
,
err
)
assert
.
EqualValues
(
t
,
commonpb
.
ErrorCode_Success
,
resp
.
Status
.
ErrorCode
)
assert
.
EqualValues
(
t
,
commonpb
.
ErrorCode_Success
,
resp
.
Status
.
ErrorCode
)
assert
.
E
qualValues
(
t
,
test
.
expected
,
resp
.
SegmentIDs
)
assert
.
E
lementsMatch
(
t
,
test
.
expected
,
resp
.
SegmentIDs
)
})
})
}
}
}
}
...
@@ -217,7 +217,7 @@ func TestFlush(t *testing.T) {
...
@@ -217,7 +217,7 @@ func TestFlush(t *testing.T) {
assert
.
EqualValues
(
t
,
commonpb
.
ErrorCode_Success
,
resp
.
ErrorCode
)
assert
.
EqualValues
(
t
,
commonpb
.
ErrorCode_Success
,
resp
.
ErrorCode
)
ids
,
err
:=
svr
.
segAllocator
.
GetSealedSegments
(
context
.
TODO
())
ids
,
err
:=
svr
.
segAllocator
.
GetSealedSegments
(
context
.
TODO
())
assert
.
Nil
(
t
,
err
)
assert
.
Nil
(
t
,
err
)
assert
.
E
qualValues
(
t
,
[]
UniqueID
{
1
,
2
},
ids
)
assert
.
E
lementsMatch
(
t
,
ids
,
[]
UniqueID
{
1
,
2
}
)
}
}
func
TestGetComponentStates
(
t
*
testing
.
T
)
{
func
TestGetComponentStates
(
t
*
testing
.
T
)
{
...
...
internal/distributed/masterservice/client/client.go
浏览文件 @
83647e85
// Copyright (C) 2019-2020 Zilliz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software distributed under the License
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
// or implied. See the License for the specific language governing permissions and limitations under the License.
package
grpcmasterserviceclient
package
grpcmasterserviceclient
import
(
import
(
...
...
internal/distributed/masterservice/masterservice_test.go
浏览文件 @
83647e85
// Copyright (C) 2019-2020 Zilliz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software distributed under the License
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
// or implied. See the License for the specific language governing permissions and limitations under the License.
package
grpcmasterservice
package
grpcmasterservice
import
(
import
(
...
...
internal/distributed/masterservice/param_table.go
浏览文件 @
83647e85
// Copyright (C) 2019-2020 Zilliz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software distributed under the License
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
// or implied. See the License for the specific language governing permissions and limitations under the License.
package
grpcmasterservice
package
grpcmasterservice
import
(
import
(
...
...
internal/distributed/masterservice/param_table_test.go
浏览文件 @
83647e85
// Copyright (C) 2019-2020 Zilliz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software distributed under the License
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
// or implied. See the License for the specific language governing permissions and limitations under the License.
package
grpcmasterservice
package
grpcmasterservice
import
(
import
(
...
...
internal/distributed/masterservice/server.go
浏览文件 @
83647e85
// Copyright (C) 2019-2020 Zilliz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software distributed under the License
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
// or implied. See the License for the specific language governing permissions and limitations under the License.
package
grpcmasterservice
package
grpcmasterservice
import
(
import
(
...
...
internal/masterservice/field_id.go
浏览文件 @
83647e85
// Copyright (C) 2019-2020 Zilliz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software distributed under the License
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
// or implied. See the License for the specific language governing permissions and limitations under the License.
package
masterservice
package
masterservice
// system filed id:
// system filed id:
...
...
internal/masterservice/master_service.go
浏览文件 @
83647e85
// Copyright (C) 2019-2020 Zilliz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software distributed under the License
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
// or implied. See the License for the specific language governing permissions and limitations under the License.
package
masterservice
package
masterservice
import
(
import
(
...
...
internal/masterservice/master_service_test.go
浏览文件 @
83647e85
// Copyright (C) 2019-2020 Zilliz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software distributed under the License
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
// or implied. See the License for the specific language governing permissions and limitations under the License.
package
masterservice
package
masterservice
import
(
import
(
...
...
internal/masterservice/meta_table.go
浏览文件 @
83647e85
// Copyright (C) 2019-2020 Zilliz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software distributed under the License
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
// or implied. See the License for the specific language governing permissions and limitations under the License.
package
masterservice
package
masterservice
import
(
import
(
...
...
internal/masterservice/meta_table_test.go
浏览文件 @
83647e85
// Copyright (C) 2019-2020 Zilliz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software distributed under the License
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
// or implied. See the License for the specific language governing permissions and limitations under the License.
package
masterservice
package
masterservice
import
(
import
(
...
...
internal/masterservice/param_table.go
浏览文件 @
83647e85
// Copyright (C) 2019-2020 Zilliz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software distributed under the License
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
// or implied. See the License for the specific language governing permissions and limitations under the License.
package
masterservice
package
masterservice
import
(
import
(
...
...
internal/masterservice/param_table_test.go
浏览文件 @
83647e85
// Copyright (C) 2019-2020 Zilliz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software distributed under the License
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
// or implied. See the License for the specific language governing permissions and limitations under the License.
package
masterservice
package
masterservice
import
(
import
(
...
...
internal/masterservice/task.go
浏览文件 @
83647e85
// Copyright (C) 2019-2020 Zilliz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software distributed under the License
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
// or implied. See the License for the specific language governing permissions and limitations under the License.
package
masterservice
package
masterservice
import
(
import
(
...
...
internal/masterservice/timestamp_test.go
浏览文件 @
83647e85
// Copyright (C) 2019-2020 Zilliz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software distributed under the License
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
// or implied. See the License for the specific language governing permissions and limitations under the License.
package
masterservice
package
masterservice
import
(
import
(
...
...
internal/masterservice/util.go
浏览文件 @
83647e85
// Copyright (C) 2019-2020 Zilliz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software distributed under the License
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
// or implied. See the License for the specific language governing permissions and limitations under the License.
package
masterservice
package
masterservice
import
(
import
(
...
...
internal/masterservice/util_test.go
浏览文件 @
83647e85
// Copyright (C) 2019-2020 Zilliz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software distributed under the License
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
// or implied. See the License for the specific language governing permissions and limitations under the License.
package
masterservice
package
masterservice
import
(
import
(
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录