Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
milvus
milvus
提交
b71bffe2
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,发现更多精彩内容 >>
未验证
提交
b71bffe2
编写于
9月 27, 2021
作者:
Z
zhenshan.cao
提交者:
GitHub
9月 27, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Replace ChannelID with ShardName in DML Request (#8539)
Signed-off-by:
N
zhenshan.cao
<
zhenshan.cao@zilliz.com
>
上级
29db80f7
变更
18
展开全部
显示空白变更内容
内联
并排
Showing
18 changed file
with
1007 addition
and
326 deletion
+1007
-326
internal/core/src/pb/common.pb.cc
internal/core/src/pb/common.pb.cc
+418
-55
internal/core/src/pb/common.pb.h
internal/core/src/pb/common.pb.h
+260
-1
internal/datanode/flow_graph_insert_buffer_node.go
internal/datanode/flow_graph_insert_buffer_node.go
+2
-2
internal/datanode/mock_test.go
internal/datanode/mock_test.go
+1
-1
internal/msgstream/mq_msgstream_test.go
internal/msgstream/mq_msgstream_test.go
+3
-3
internal/msgstream/msg_test.go
internal/msgstream/msg_test.go
+2
-2
internal/msgstream/repack_func.go
internal/msgstream/repack_func.go
+1
-1
internal/msgstream/unmarshal_test.go
internal/msgstream/unmarshal_test.go
+1
-1
internal/proto/common.proto
internal/proto/common.proto
+6
-0
internal/proto/commonpb/common.pb.go
internal/proto/commonpb/common.pb.go
+134
-83
internal/proto/internal.proto
internal/proto/internal.proto
+15
-15
internal/proto/internalpb/internal.pb.go
internal/proto/internalpb/internal.pb.go
+157
-155
internal/proxy/task.go
internal/proxy/task.go
+2
-3
internal/querynode/data_sync_service_test.go
internal/querynode/data_sync_service_test.go
+1
-1
internal/querynode/flow_graph_insert_node.go
internal/querynode/flow_graph_insert_node.go
+1
-1
internal/querynode/load_service_test.go
internal/querynode/load_service_test.go
+1
-1
internal/querynode/mock_test.go
internal/querynode/mock_test.go
+1
-1
internal/util/typeutil/conversion_test.go
internal/util/typeutil/conversion_test.go
+1
-0
未找到文件。
internal/core/src/pb/common.pb.cc
浏览文件 @
b71bffe2
此差异已折叠。
点击以展开。
internal/core/src/pb/common.pb.h
浏览文件 @
b71bffe2
...
...
@@ -48,7 +48,7 @@ struct TableStruct_common_2eproto {
PROTOBUF_SECTION_VARIABLE
(
protodesc_cold
);
static
const
::
PROTOBUF_NAMESPACE_ID
::
internal
::
AuxillaryParseTableField
aux
[]
PROTOBUF_SECTION_VARIABLE
(
protodesc_cold
);
static
const
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ParseTable
schema
[
6
]
static
const
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ParseTable
schema
[
7
]
PROTOBUF_SECTION_VARIABLE
(
protodesc_cold
);
static
const
::
PROTOBUF_NAMESPACE_ID
::
internal
::
FieldMetadata
field_metadata
[];
static
const
::
PROTOBUF_NAMESPACE_ID
::
internal
::
SerializationTable
serialization_table
[];
...
...
@@ -64,6 +64,9 @@ extern AddressDefaultTypeInternal _Address_default_instance_;
class
Blob
;
class
BlobDefaultTypeInternal
;
extern
BlobDefaultTypeInternal
_Blob_default_instance_
;
class
DMLMsgHeader
;
class
DMLMsgHeaderDefaultTypeInternal
;
extern
DMLMsgHeaderDefaultTypeInternal
_DMLMsgHeader_default_instance_
;
class
KeyValuePair
;
class
KeyValuePairDefaultTypeInternal
;
extern
KeyValuePairDefaultTypeInternal
_KeyValuePair_default_instance_
;
...
...
@@ -82,6 +85,7 @@ extern StatusDefaultTypeInternal _Status_default_instance_;
PROTOBUF_NAMESPACE_OPEN
template
<
>
::
milvus
::
proto
::
common
::
Address
*
Arena
::
CreateMaybeMessage
<::
milvus
::
proto
::
common
::
Address
>
(
Arena
*
);
template
<
>
::
milvus
::
proto
::
common
::
Blob
*
Arena
::
CreateMaybeMessage
<::
milvus
::
proto
::
common
::
Blob
>
(
Arena
*
);
template
<
>
::
milvus
::
proto
::
common
::
DMLMsgHeader
*
Arena
::
CreateMaybeMessage
<::
milvus
::
proto
::
common
::
DMLMsgHeader
>
(
Arena
*
);
template
<
>
::
milvus
::
proto
::
common
::
KeyValuePair
*
Arena
::
CreateMaybeMessage
<::
milvus
::
proto
::
common
::
KeyValuePair
>
(
Arena
*
);
template
<
>
::
milvus
::
proto
::
common
::
MsgBase
*
Arena
::
CreateMaybeMessage
<::
milvus
::
proto
::
common
::
MsgBase
>
(
Arena
*
);
template
<
>
::
milvus
::
proto
::
common
::
MsgHeader
*
Arena
::
CreateMaybeMessage
<::
milvus
::
proto
::
common
::
MsgHeader
>
(
Arena
*
);
...
...
@@ -1160,6 +1164,153 @@ class MsgHeader :
mutable
::
PROTOBUF_NAMESPACE_ID
::
internal
::
CachedSize
_cached_size_
;
friend
struct
::
TableStruct_common_2eproto
;
};
// -------------------------------------------------------------------
class
DMLMsgHeader
:
public
::
PROTOBUF_NAMESPACE_ID
::
Message
/* @@protoc_insertion_point(class_definition:milvus.proto.common.DMLMsgHeader) */
{
public:
DMLMsgHeader
();
virtual
~
DMLMsgHeader
();
DMLMsgHeader
(
const
DMLMsgHeader
&
from
);
DMLMsgHeader
(
DMLMsgHeader
&&
from
)
noexcept
:
DMLMsgHeader
()
{
*
this
=
::
std
::
move
(
from
);
}
inline
DMLMsgHeader
&
operator
=
(
const
DMLMsgHeader
&
from
)
{
CopyFrom
(
from
);
return
*
this
;
}
inline
DMLMsgHeader
&
operator
=
(
DMLMsgHeader
&&
from
)
noexcept
{
if
(
GetArenaNoVirtual
()
==
from
.
GetArenaNoVirtual
())
{
if
(
this
!=
&
from
)
InternalSwap
(
&
from
);
}
else
{
CopyFrom
(
from
);
}
return
*
this
;
}
static
const
::
PROTOBUF_NAMESPACE_ID
::
Descriptor
*
descriptor
()
{
return
GetDescriptor
();
}
static
const
::
PROTOBUF_NAMESPACE_ID
::
Descriptor
*
GetDescriptor
()
{
return
GetMetadataStatic
().
descriptor
;
}
static
const
::
PROTOBUF_NAMESPACE_ID
::
Reflection
*
GetReflection
()
{
return
GetMetadataStatic
().
reflection
;
}
static
const
DMLMsgHeader
&
default_instance
();
static
void
InitAsDefaultInstance
();
// FOR INTERNAL USE ONLY
static
inline
const
DMLMsgHeader
*
internal_default_instance
()
{
return
reinterpret_cast
<
const
DMLMsgHeader
*>
(
&
_DMLMsgHeader_default_instance_
);
}
static
constexpr
int
kIndexInFileMessages
=
6
;
friend
void
swap
(
DMLMsgHeader
&
a
,
DMLMsgHeader
&
b
)
{
a
.
Swap
(
&
b
);
}
inline
void
Swap
(
DMLMsgHeader
*
other
)
{
if
(
other
==
this
)
return
;
InternalSwap
(
other
);
}
// implements Message ----------------------------------------------
inline
DMLMsgHeader
*
New
()
const
final
{
return
CreateMaybeMessage
<
DMLMsgHeader
>
(
nullptr
);
}
DMLMsgHeader
*
New
(
::
PROTOBUF_NAMESPACE_ID
::
Arena
*
arena
)
const
final
{
return
CreateMaybeMessage
<
DMLMsgHeader
>
(
arena
);
}
void
CopyFrom
(
const
::
PROTOBUF_NAMESPACE_ID
::
Message
&
from
)
final
;
void
MergeFrom
(
const
::
PROTOBUF_NAMESPACE_ID
::
Message
&
from
)
final
;
void
CopyFrom
(
const
DMLMsgHeader
&
from
);
void
MergeFrom
(
const
DMLMsgHeader
&
from
);
PROTOBUF_ATTRIBUTE_REINITIALIZES
void
Clear
()
final
;
bool
IsInitialized
()
const
final
;
size_t
ByteSizeLong
()
const
final
;
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
const
char
*
_InternalParse
(
const
char
*
ptr
,
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ParseContext
*
ctx
)
final
;
#else
bool
MergePartialFromCodedStream
(
::
PROTOBUF_NAMESPACE_ID
::
io
::
CodedInputStream
*
input
)
final
;
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
void
SerializeWithCachedSizes
(
::
PROTOBUF_NAMESPACE_ID
::
io
::
CodedOutputStream
*
output
)
const
final
;
::
PROTOBUF_NAMESPACE_ID
::
uint8
*
InternalSerializeWithCachedSizesToArray
(
::
PROTOBUF_NAMESPACE_ID
::
uint8
*
target
)
const
final
;
int
GetCachedSize
()
const
final
{
return
_cached_size_
.
Get
();
}
private:
inline
void
SharedCtor
();
inline
void
SharedDtor
();
void
SetCachedSize
(
int
size
)
const
final
;
void
InternalSwap
(
DMLMsgHeader
*
other
);
friend
class
::
PROTOBUF_NAMESPACE_ID
::
internal
::
AnyMetadata
;
static
::
PROTOBUF_NAMESPACE_ID
::
StringPiece
FullMessageName
()
{
return
"milvus.proto.common.DMLMsgHeader"
;
}
private:
inline
::
PROTOBUF_NAMESPACE_ID
::
Arena
*
GetArenaNoVirtual
()
const
{
return
nullptr
;
}
inline
void
*
MaybeArenaPtr
()
const
{
return
nullptr
;
}
public:
::
PROTOBUF_NAMESPACE_ID
::
Metadata
GetMetadata
()
const
final
;
private:
static
::
PROTOBUF_NAMESPACE_ID
::
Metadata
GetMetadataStatic
()
{
::
PROTOBUF_NAMESPACE_ID
::
internal
::
AssignDescriptors
(
&::
descriptor_table_common_2eproto
);
return
::
descriptor_table_common_2eproto
.
file_level_metadata
[
kIndexInFileMessages
];
}
public:
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum
:
int
{
kShardNameFieldNumber
=
2
,
kBaseFieldNumber
=
1
,
};
// string shardName = 2;
void
clear_shardname
();
const
std
::
string
&
shardname
()
const
;
void
set_shardname
(
const
std
::
string
&
value
);
void
set_shardname
(
std
::
string
&&
value
);
void
set_shardname
(
const
char
*
value
);
void
set_shardname
(
const
char
*
value
,
size_t
size
);
std
::
string
*
mutable_shardname
();
std
::
string
*
release_shardname
();
void
set_allocated_shardname
(
std
::
string
*
shardname
);
// .milvus.proto.common.MsgBase base = 1;
bool
has_base
()
const
;
void
clear_base
();
const
::
milvus
::
proto
::
common
::
MsgBase
&
base
()
const
;
::
milvus
::
proto
::
common
::
MsgBase
*
release_base
();
::
milvus
::
proto
::
common
::
MsgBase
*
mutable_base
();
void
set_allocated_base
(
::
milvus
::
proto
::
common
::
MsgBase
*
base
);
// @@protoc_insertion_point(class_scope:milvus.proto.common.DMLMsgHeader)
private:
class
_Internal
;
::
PROTOBUF_NAMESPACE_ID
::
internal
::
InternalMetadataWithArena
_internal_metadata_
;
::
PROTOBUF_NAMESPACE_ID
::
internal
::
ArenaStringPtr
shardname_
;
::
milvus
::
proto
::
common
::
MsgBase
*
base_
;
mutable
::
PROTOBUF_NAMESPACE_ID
::
internal
::
CachedSize
_cached_size_
;
friend
struct
::
TableStruct_common_2eproto
;
};
// ===================================================================
...
...
@@ -1581,6 +1732,112 @@ inline void MsgHeader::set_allocated_base(::milvus::proto::common::MsgBase* base
// @@protoc_insertion_point(field_set_allocated:milvus.proto.common.MsgHeader.base)
}
// -------------------------------------------------------------------
// DMLMsgHeader
// .milvus.proto.common.MsgBase base = 1;
inline
bool
DMLMsgHeader
::
has_base
()
const
{
return
this
!=
internal_default_instance
()
&&
base_
!=
nullptr
;
}
inline
void
DMLMsgHeader
::
clear_base
()
{
if
(
GetArenaNoVirtual
()
==
nullptr
&&
base_
!=
nullptr
)
{
delete
base_
;
}
base_
=
nullptr
;
}
inline
const
::
milvus
::
proto
::
common
::
MsgBase
&
DMLMsgHeader
::
base
()
const
{
const
::
milvus
::
proto
::
common
::
MsgBase
*
p
=
base_
;
// @@protoc_insertion_point(field_get:milvus.proto.common.DMLMsgHeader.base)
return
p
!=
nullptr
?
*
p
:
*
reinterpret_cast
<
const
::
milvus
::
proto
::
common
::
MsgBase
*>
(
&::
milvus
::
proto
::
common
::
_MsgBase_default_instance_
);
}
inline
::
milvus
::
proto
::
common
::
MsgBase
*
DMLMsgHeader
::
release_base
()
{
// @@protoc_insertion_point(field_release:milvus.proto.common.DMLMsgHeader.base)
::
milvus
::
proto
::
common
::
MsgBase
*
temp
=
base_
;
base_
=
nullptr
;
return
temp
;
}
inline
::
milvus
::
proto
::
common
::
MsgBase
*
DMLMsgHeader
::
mutable_base
()
{
if
(
base_
==
nullptr
)
{
auto
*
p
=
CreateMaybeMessage
<::
milvus
::
proto
::
common
::
MsgBase
>
(
GetArenaNoVirtual
());
base_
=
p
;
}
// @@protoc_insertion_point(field_mutable:milvus.proto.common.DMLMsgHeader.base)
return
base_
;
}
inline
void
DMLMsgHeader
::
set_allocated_base
(
::
milvus
::
proto
::
common
::
MsgBase
*
base
)
{
::
PROTOBUF_NAMESPACE_ID
::
Arena
*
message_arena
=
GetArenaNoVirtual
();
if
(
message_arena
==
nullptr
)
{
delete
base_
;
}
if
(
base
)
{
::
PROTOBUF_NAMESPACE_ID
::
Arena
*
submessage_arena
=
nullptr
;
if
(
message_arena
!=
submessage_arena
)
{
base
=
::
PROTOBUF_NAMESPACE_ID
::
internal
::
GetOwnedMessage
(
message_arena
,
base
,
submessage_arena
);
}
}
else
{
}
base_
=
base
;
// @@protoc_insertion_point(field_set_allocated:milvus.proto.common.DMLMsgHeader.base)
}
// string shardName = 2;
inline
void
DMLMsgHeader
::
clear_shardname
()
{
shardname_
.
ClearToEmptyNoArena
(
&::
PROTOBUF_NAMESPACE_ID
::
internal
::
GetEmptyStringAlreadyInited
());
}
inline
const
std
::
string
&
DMLMsgHeader
::
shardname
()
const
{
// @@protoc_insertion_point(field_get:milvus.proto.common.DMLMsgHeader.shardName)
return
shardname_
.
GetNoArena
();
}
inline
void
DMLMsgHeader
::
set_shardname
(
const
std
::
string
&
value
)
{
shardname_
.
SetNoArena
(
&::
PROTOBUF_NAMESPACE_ID
::
internal
::
GetEmptyStringAlreadyInited
(),
value
);
// @@protoc_insertion_point(field_set:milvus.proto.common.DMLMsgHeader.shardName)
}
inline
void
DMLMsgHeader
::
set_shardname
(
std
::
string
&&
value
)
{
shardname_
.
SetNoArena
(
&::
PROTOBUF_NAMESPACE_ID
::
internal
::
GetEmptyStringAlreadyInited
(),
::
std
::
move
(
value
));
// @@protoc_insertion_point(field_set_rvalue:milvus.proto.common.DMLMsgHeader.shardName)
}
inline
void
DMLMsgHeader
::
set_shardname
(
const
char
*
value
)
{
GOOGLE_DCHECK
(
value
!=
nullptr
);
shardname_
.
SetNoArena
(
&::
PROTOBUF_NAMESPACE_ID
::
internal
::
GetEmptyStringAlreadyInited
(),
::
std
::
string
(
value
));
// @@protoc_insertion_point(field_set_char:milvus.proto.common.DMLMsgHeader.shardName)
}
inline
void
DMLMsgHeader
::
set_shardname
(
const
char
*
value
,
size_t
size
)
{
shardname_
.
SetNoArena
(
&::
PROTOBUF_NAMESPACE_ID
::
internal
::
GetEmptyStringAlreadyInited
(),
::
std
::
string
(
reinterpret_cast
<
const
char
*>
(
value
),
size
));
// @@protoc_insertion_point(field_set_pointer:milvus.proto.common.DMLMsgHeader.shardName)
}
inline
std
::
string
*
DMLMsgHeader
::
mutable_shardname
()
{
// @@protoc_insertion_point(field_mutable:milvus.proto.common.DMLMsgHeader.shardName)
return
shardname_
.
MutableNoArena
(
&::
PROTOBUF_NAMESPACE_ID
::
internal
::
GetEmptyStringAlreadyInited
());
}
inline
std
::
string
*
DMLMsgHeader
::
release_shardname
()
{
// @@protoc_insertion_point(field_release:milvus.proto.common.DMLMsgHeader.shardName)
return
shardname_
.
ReleaseNoArena
(
&::
PROTOBUF_NAMESPACE_ID
::
internal
::
GetEmptyStringAlreadyInited
());
}
inline
void
DMLMsgHeader
::
set_allocated_shardname
(
std
::
string
*
shardname
)
{
if
(
shardname
!=
nullptr
)
{
}
else
{
}
shardname_
.
SetAllocatedNoArena
(
&::
PROTOBUF_NAMESPACE_ID
::
internal
::
GetEmptyStringAlreadyInited
(),
shardname
);
// @@protoc_insertion_point(field_set_allocated:milvus.proto.common.DMLMsgHeader.shardName)
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif // __GNUC__
...
...
@@ -1594,6 +1851,8 @@ inline void MsgHeader::set_allocated_base(::milvus::proto::common::MsgBase* base
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope)
...
...
internal/datanode/flow_graph_insert_buffer_node.go
浏览文件 @
b71bffe2
...
...
@@ -355,14 +355,14 @@ func (ibNode *insertBufferNode) updateSegStatesInReplica(insertMsgs []*msgstream
partitionID
:=
msg
.
GetPartitionID
()
if
!
ibNode
.
replica
.
hasSegment
(
currentSegID
,
true
)
{
err
=
ibNode
.
replica
.
addNewSegment
(
currentSegID
,
collID
,
partitionID
,
msg
.
Get
ChannelID
(),
err
=
ibNode
.
replica
.
addNewSegment
(
currentSegID
,
collID
,
partitionID
,
msg
.
Get
ShardName
(),
startPos
,
endPos
)
if
err
!=
nil
{
log
.
Error
(
"add segment wrong"
,
zap
.
Int64
(
"segID"
,
currentSegID
),
zap
.
Int64
(
"collID"
,
collID
),
zap
.
Int64
(
"partID"
,
partitionID
),
zap
.
String
(
"chanName"
,
msg
.
Get
ChannelID
()),
zap
.
String
(
"chanName"
,
msg
.
Get
ShardName
()),
zap
.
Error
(
err
))
return
}
...
...
internal/datanode/mock_test.go
浏览文件 @
b71bffe2
...
...
@@ -392,7 +392,7 @@ func (df *DataFactory) GenMsgStreamInsertMsg(idx int, chanName string) *msgstrea
CollectionName
:
"col1"
,
PartitionName
:
"default"
,
SegmentID
:
1
,
ChannelID
:
chanName
,
ShardName
:
chanName
,
Timestamps
:
[]
Timestamp
{
Timestamp
(
idx
+
1000
)},
RowIDs
:
[]
UniqueID
{
UniqueID
(
idx
)},
RowData
:
[]
*
commonpb
.
Blob
{{
Value
:
df
.
rawData
}},
...
...
internal/msgstream/mq_msgstream_test.go
浏览文件 @
b71bffe2
...
...
@@ -267,7 +267,7 @@ func TestStream_PulsarMsgStream_InsertRepackFunc(t *testing.T) {
CollectionName
:
"Collection"
,
PartitionName
:
"Partition"
,
SegmentID
:
1
,
ChannelID
:
"1"
,
ShardName
:
"1"
,
Timestamps
:
[]
Timestamp
{
1
,
1
},
RowIDs
:
[]
int64
{
1
,
3
},
RowData
:
[]
*
commonpb
.
Blob
{{},
{}},
...
...
@@ -988,7 +988,7 @@ func getTsMsg(msgType MsgType, reqID UniqueID) TsMsg {
CollectionName
:
"Collection"
,
PartitionName
:
"Partition"
,
SegmentID
:
1
,
ChannelID
:
"0"
,
ShardName
:
"0"
,
Timestamps
:
[]
Timestamp
{
time
},
RowIDs
:
[]
int64
{
1
},
RowData
:
[]
*
commonpb
.
Blob
{{}},
...
...
@@ -1007,7 +1007,7 @@ func getTsMsg(msgType MsgType, reqID UniqueID) TsMsg {
SourceID
:
reqID
,
},
CollectionName
:
"Collection"
,
ChannelID
:
"1"
,
ShardName
:
"1"
,
Timestamp
:
Timestamp
(
1
),
}
deleteMsg
:=
&
DeleteMsg
{
...
...
internal/msgstream/msg_test.go
浏览文件 @
b71bffe2
...
...
@@ -94,7 +94,7 @@ func TestInsertMsg(t *testing.T) {
CollectionID
:
5
,
PartitionID
:
6
,
SegmentID
:
7
,
ChannelID
:
"test-channel"
,
ShardName
:
"test-channel"
,
Timestamps
:
[]
uint64
{
2
,
1
,
3
},
RowData
:
[]
*
commonpb
.
Blob
{},
},
...
...
@@ -142,7 +142,7 @@ func TestDeleteMsg(t *testing.T) {
},
CollectionName
:
"test_collection"
,
ChannelID
:
"test-channel"
,
ShardName
:
"test-channel"
,
Timestamp
:
uint64
(
1
),
},
}
...
...
internal/msgstream/repack_func.go
浏览文件 @
b71bffe2
...
...
@@ -56,7 +56,7 @@ func InsertRepackFunc(tsMsgs []TsMsg, hashKeys [][]int32) (map[int32]*MsgPack, e
CollectionName
:
insertRequest
.
CollectionName
,
PartitionName
:
insertRequest
.
PartitionName
,
SegmentID
:
insertRequest
.
SegmentID
,
ChannelID
:
insertRequest
.
ChannelID
,
ShardName
:
insertRequest
.
ShardName
,
Timestamps
:
[]
uint64
{
insertRequest
.
Timestamps
[
index
]},
RowIDs
:
[]
int64
{
insertRequest
.
RowIDs
[
index
]},
RowData
:
[]
*
commonpb
.
Blob
{
insertRequest
.
RowData
[
index
]},
...
...
internal/msgstream/unmarshal_test.go
浏览文件 @
b71bffe2
...
...
@@ -52,7 +52,7 @@ func Test_ProtoUnmarshalDispatcher(t *testing.T) {
CollectionName
:
"Collection"
,
PartitionName
:
"Partition"
,
SegmentID
:
1
,
ChannelID
:
"0"
,
ShardName
:
"0"
,
Timestamps
:
[]
Timestamp
{
uint64
(
1
)},
RowIDs
:
[]
int64
{
1
},
RowData
:
[]
*
commonpb
.
Blob
{{}},
...
...
internal/proto/common.proto
浏览文件 @
b71bffe2
...
...
@@ -161,3 +161,9 @@ enum DslType {
message
MsgHeader
{
common.MsgBase
base
=
1
;
}
// Don't Modify This. @czs
message
DMLMsgHeader
{
common.MsgBase
base
=
1
;
string
shardName
=
2
;
}
\ No newline at end of file
internal/proto/commonpb/common.pb.go
浏览文件 @
b71bffe2
...
...
@@ -686,6 +686,54 @@ func (m *MsgHeader) GetBase() *MsgBase {
return
nil
}
// Don't Modify This. @czs
type
DMLMsgHeader
struct
{
Base
*
MsgBase
`protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
ShardName
string
`protobuf:"bytes,2,opt,name=shardName,proto3" json:"shardName,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
DMLMsgHeader
)
Reset
()
{
*
m
=
DMLMsgHeader
{}
}
func
(
m
*
DMLMsgHeader
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
DMLMsgHeader
)
ProtoMessage
()
{}
func
(
*
DMLMsgHeader
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_555bd8c177793206
,
[]
int
{
6
}
}
func
(
m
*
DMLMsgHeader
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_DMLMsgHeader
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
DMLMsgHeader
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_DMLMsgHeader
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
DMLMsgHeader
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_DMLMsgHeader
.
Merge
(
m
,
src
)
}
func
(
m
*
DMLMsgHeader
)
XXX_Size
()
int
{
return
xxx_messageInfo_DMLMsgHeader
.
Size
(
m
)
}
func
(
m
*
DMLMsgHeader
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_DMLMsgHeader
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_DMLMsgHeader
proto
.
InternalMessageInfo
func
(
m
*
DMLMsgHeader
)
GetBase
()
*
MsgBase
{
if
m
!=
nil
{
return
m
.
Base
}
return
nil
}
func
(
m
*
DMLMsgHeader
)
GetShardName
()
string
{
if
m
!=
nil
{
return
m
.
ShardName
}
return
""
}
func
init
()
{
proto
.
RegisterEnum
(
"milvus.proto.common.ErrorCode"
,
ErrorCode_name
,
ErrorCode_value
)
proto
.
RegisterEnum
(
"milvus.proto.common.IndexState"
,
IndexState_name
,
IndexState_value
)
...
...
@@ -698,92 +746,95 @@ func init() {
proto
.
RegisterType
((
*
Address
)(
nil
),
"milvus.proto.common.Address"
)
proto
.
RegisterType
((
*
MsgBase
)(
nil
),
"milvus.proto.common.MsgBase"
)
proto
.
RegisterType
((
*
MsgHeader
)(
nil
),
"milvus.proto.common.MsgHeader"
)
proto
.
RegisterType
((
*
DMLMsgHeader
)(
nil
),
"milvus.proto.common.DMLMsgHeader"
)
}
func
init
()
{
proto
.
RegisterFile
(
"common.proto"
,
fileDescriptor_555bd8c177793206
)
}
var
fileDescriptor_555bd8c177793206
=
[]
byte
{
// 1310 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0x74
,
0x55
,
0xdb
,
0x6e
,
0x1b
,
0xb7
,
0x16
,
0xf5
,
0x68
,
0x64
,
0xcb
,
0xa2
,
0x65
,
0x9b
,
0xa6
,
0x2f
,
0x71
,
0x72
,
0x8c
,
0x83
,
0xc0
,
0x4f
,
0x81
,
0x81
,
0xd8
,
0xe7
,
0x9c
,
0xe0
,
0xb4
,
0x4f
,
0x79
,
0xb0
,
0x35
,
0xbe
,
0x08
,
0x89
,
0x2f
,
0x1d
,
0x39
,
0x69
,
0xd1
,
0x97
,
0x80
,
0x9e
,
0xd9
,
0x92
,
0xd8
,
0xcc
,
0x90
,
0x2a
,
0xc9
,
0x71
,
0xac
,
0xbf
,
0x68
,
0xf3
,
0x1d
,
0x6d
,
0xd1
,
0x4b
,
0x7a
,
0x41
,
0xbf
,
0xa0
,
0xf7
,
0xe7
,
0x7e
,
0x42
,
0x3f
,
0xa0
,
0xd7
,
0x5c
,
0x8b
,
0xcd
,
0x19
,
0x49
,
0x13
,
0x20
,
0x7d
,
0x9b
,
0xbd
,
0xb8
,
0xb9
,
0xb8
,
0xf6
,
0xda
,
0x9b
,
0x1c
,
0xd2
,
0x88
,
0x54
,
0x9a
,
0x2a
,
0xb9
,
0xd9
,
0xd7
,
0xca
,
0x2a
,
0xb6
,
0x98
,
0x8a
,
0xe4
,
0x3c
,
0x33
,
0x79
,
0xb4
,
0x99
,
0x2f
,
0xad
,
0xdf
,
0x23
,
0x53
,
0x6d
,
0xcb
,
0x6d
,
0x66
,
0xd8
,
0x4d
,
0x42
,
0x40
,
0x6b
,
0xa5
,
0xef
,
0x45
,
0x2a
,
0x86
,
0x55
,
0xef
,
0xaa
,
0x77
,
0x6d
,
0xee
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
,
0x00
,
}
internal/proto/internal.proto
浏览文件 @
b71bffe2
...
...
@@ -127,14 +127,14 @@ message CreateIndexRequest {
message
InsertRequest
{
common.MsgBase
base
=
1
;
string
db_n
ame
=
2
;
string
collection
_name
=
3
;
string
parti
tion_name
=
4
;
int64
dbID
=
5
;
int64
collection
ID
=
6
;
int64
parti
tionID
=
7
;
int64
segment
ID
=
8
;
string
channel
ID
=
9
;
string
shardN
ame
=
2
;
string
db
_name
=
3
;
string
collec
tion_name
=
4
;
string
partition_name
=
5
;
int64
db
ID
=
6
;
int64
collec
tionID
=
7
;
int64
partition
ID
=
8
;
int64
segment
ID
=
9
;
repeated
uint64
timestamps
=
10
;
repeated
int64
rowIDs
=
11
;
repeated
common.Blob
row_data
=
12
;
...
...
@@ -197,13 +197,13 @@ message RetrieveResults {
message
DeleteRequest
{
common.MsgBase
base
=
1
;
string
db_n
ame
=
2
;
string
collection
_name
=
3
;
string
parti
tion_name
=
4
;
int64
dbID
=
5
;
int64
collection
ID
=
6
;
int64
parti
tionID
=
7
;
string
channel
ID
=
8
;
string
shardN
ame
=
2
;
string
db
_name
=
3
;
string
collec
tion_name
=
4
;
string
partition_name
=
5
;
int64
db
ID
=
6
;
int64
collec
tionID
=
7
;
int64
partition
ID
=
8
;
bytes
expr_plan
=
9
;
uint64
timestamp
=
10
;
}
...
...
internal/proto/internalpb/internal.pb.go
浏览文件 @
b71bffe2
此差异已折叠。
点击以展开。
internal/proxy/task.go
浏览文件 @
b71bffe2
...
...
@@ -923,7 +923,7 @@ func (it *insertTask) _assignSegmentID(stream msgstream.MsgStream, pack *msgstre
size
+=
int
(
unsafe
.
Sizeof
(
msg
.
CollectionID
))
size
+=
int
(
unsafe
.
Sizeof
(
msg
.
PartitionID
))
size
+=
int
(
unsafe
.
Sizeof
(
msg
.
SegmentID
))
size
+=
int
(
unsafe
.
Sizeof
(
msg
.
ChannelID
))
size
+=
int
(
unsafe
.
Sizeof
(
msg
.
ShardName
))
size
+=
int
(
unsafe
.
Sizeof
(
msg
.
Timestamps
))
size
+=
int
(
unsafe
.
Sizeof
(
msg
.
RowIDs
))
return
size
...
...
@@ -962,8 +962,7 @@ func (it *insertTask) _assignSegmentID(stream msgstream.MsgStream, pack *msgstre
CollectionName
:
collectionName
,
PartitionName
:
partitionName
,
SegmentID
:
segmentID
,
// todo rename to ChannelName
ChannelID
:
channelNames
[
key
],
ShardName
:
channelNames
[
key
],
}
insertMsg
:=
&
msgstream
.
InsertMsg
{
BaseMsg
:
msgstream
.
BaseMsg
{
...
...
internal/querynode/data_sync_service_test.go
浏览文件 @
b71bffe2
...
...
@@ -71,7 +71,7 @@ func TestDataSyncService_Start(t *testing.T) {
CollectionID
:
collectionID
,
PartitionID
:
defaultPartitionID
,
SegmentID
:
UniqueID
(
0
),
ChannelID
:
"0"
,
ShardName
:
"0"
,
Timestamps
:
[]
Timestamp
{
Timestamp
(
i
+
1000
),
Timestamp
(
i
+
1000
)},
RowIDs
:
[]
int64
{
int64
(
i
),
int64
(
i
)},
RowData
:
[]
*
commonpb
.
Blob
{
...
...
internal/querynode/flow_graph_insert_node.go
浏览文件 @
b71bffe2
...
...
@@ -84,7 +84,7 @@ func (iNode *insertNode) Operate(in []flowgraph.Msg) []flowgraph.Msg {
// check if segment exists, if not, create this segment
if
!
iNode
.
replica
.
hasSegment
(
task
.
SegmentID
)
{
err
:=
iNode
.
replica
.
addSegment
(
task
.
SegmentID
,
task
.
PartitionID
,
task
.
CollectionID
,
task
.
ChannelID
,
segmentTypeGrowing
,
true
)
err
:=
iNode
.
replica
.
addSegment
(
task
.
SegmentID
,
task
.
PartitionID
,
task
.
CollectionID
,
task
.
ShardName
,
segmentTypeGrowing
,
true
)
if
err
!=
nil
{
log
.
Warn
(
err
.
Error
())
continue
...
...
internal/querynode/load_service_test.go
浏览文件 @
b71bffe2
...
...
@@ -885,7 +885,7 @@ func doInsert(ctx context.Context, collectionID UniqueID, partitionID UniqueID,
CollectionID
:
collectionID
,
PartitionID
:
partitionID
,
SegmentID
:
segmentID
,
ChannelID
:
"0"
,
ShardName
:
"0"
,
Timestamps
:
[]
uint64
{
uint64
(
i
+
1000
)},
RowIDs
:
[]
int64
{
int64
(
i
)},
RowData
:
[]
*
commonpb
.
Blob
{
...
...
internal/querynode/mock_test.go
浏览文件 @
b71bffe2
...
...
@@ -705,7 +705,7 @@ func genSimpleInsertMsg() (*msgstream.InsertMsg, error) {
CollectionID
:
defaultCollectionID
,
PartitionID
:
defaultPartitionID
,
SegmentID
:
defaultSegmentID
,
ChannelID
:
defaultVChannel
,
ShardName
:
defaultVChannel
,
Timestamps
:
genSimpleTimestampFieldData
(),
RowIDs
:
genSimpleRowIDField
(),
RowData
:
rowData
,
...
...
internal/util/typeutil/conversion_test.go
浏览文件 @
b71bffe2
...
...
@@ -73,4 +73,5 @@ func TestConversion(t *testing.T) {
ret1
:=
SliceRemoveDuplicate
(
arr
)
assert
.
Equal
(
t
,
3
,
len
(
ret1
))
})
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录