提交 2e2e059f 编写于 作者: Z zhenshan.cao 提交者: yefu.chen

Add msgheader and change ReqType to MsgType

Signed-off-by: Nzhenshan.cao <zhenshan.cao@zilliz.com>
上级 1bd7938d
......@@ -44,12 +44,12 @@ type showCollectionsTask struct {
}
//////////////////////////////////////////////////////////////////////////
func (t *createCollectionTask) Type() internalpb.ReqType {
func (t *createCollectionTask) Type() internalpb.MsgType {
if t.req == nil {
log.Printf("null request")
return 0
}
return t.req.ReqType
return t.req.MsgType
}
func (t *createCollectionTask) Ts() (Timestamp, error) {
......@@ -106,12 +106,12 @@ func (t *createCollectionTask) Execute() error {
}
//////////////////////////////////////////////////////////////////////////
func (t *dropCollectionTask) Type() internalpb.ReqType {
func (t *dropCollectionTask) Type() internalpb.MsgType {
if t.req == nil {
log.Printf("null request")
return 0
}
return t.req.ReqType
return t.req.MsgType
}
func (t *dropCollectionTask) Ts() (Timestamp, error) {
......@@ -149,12 +149,12 @@ func (t *dropCollectionTask) Execute() error {
}
//////////////////////////////////////////////////////////////////////////
func (t *hasCollectionTask) Type() internalpb.ReqType {
func (t *hasCollectionTask) Type() internalpb.MsgType {
if t.req == nil {
log.Printf("null request")
return 0
}
return t.req.ReqType
return t.req.MsgType
}
func (t *hasCollectionTask) Ts() (Timestamp, error) {
......@@ -181,12 +181,12 @@ func (t *hasCollectionTask) Execute() error {
}
//////////////////////////////////////////////////////////////////////////
func (t *describeCollectionTask) Type() internalpb.ReqType {
func (t *describeCollectionTask) Type() internalpb.MsgType {
if t.req == nil {
log.Printf("null request")
return 0
}
return t.req.ReqType
return t.req.MsgType
}
func (t *describeCollectionTask) Ts() (Timestamp, error) {
......@@ -223,12 +223,12 @@ func (t *describeCollectionTask) Execute() error {
}
//////////////////////////////////////////////////////////////////////////
func (t *showCollectionsTask) Type() internalpb.ReqType {
func (t *showCollectionsTask) Type() internalpb.MsgType {
if t.req == nil {
log.Printf("null request")
return 0
}
return t.req.ReqType
return t.req.MsgType
}
func (t *showCollectionsTask) Ts() (Timestamp, error) {
......
......@@ -42,12 +42,12 @@ type showPartitionTask struct {
}
//////////////////////////////////////////////////////////////////////////
func (t *createPartitionTask) Type() internalpb.ReqType {
func (t *createPartitionTask) Type() internalpb.MsgType {
if t.req == nil {
log.Printf("null request")
return 0
}
return t.req.ReqType
return t.req.MsgType
}
func (t *createPartitionTask) Ts() (Timestamp, error) {
......@@ -91,12 +91,12 @@ func (t *createPartitionTask) Execute() error {
}
//////////////////////////////////////////////////////////////////////////
func (t *dropPartitionTask) Type() internalpb.ReqType {
func (t *dropPartitionTask) Type() internalpb.MsgType {
if t.req == nil {
log.Printf("null request")
return 0
}
return t.req.ReqType
return t.req.MsgType
}
func (t *dropPartitionTask) Ts() (Timestamp, error) {
......@@ -143,12 +143,12 @@ func (t *dropPartitionTask) Execute() error {
}
//////////////////////////////////////////////////////////////////////////
func (t *hasPartitionTask) Type() internalpb.ReqType {
func (t *hasPartitionTask) Type() internalpb.MsgType {
if t.req == nil {
log.Printf("null request")
return 0
}
return t.req.ReqType
return t.req.MsgType
}
func (t *hasPartitionTask) Ts() (Timestamp, error) {
......@@ -173,12 +173,12 @@ func (t *hasPartitionTask) Execute() error {
}
//////////////////////////////////////////////////////////////////////////
func (t *describePartitionTask) Type() internalpb.ReqType {
func (t *describePartitionTask) Type() internalpb.MsgType {
if t.req == nil {
log.Printf("null request")
return 0
}
return t.req.ReqType
return t.req.MsgType
}
func (t *describePartitionTask) Ts() (Timestamp, error) {
......@@ -210,12 +210,12 @@ func (t *describePartitionTask) Execute() error {
}
//////////////////////////////////////////////////////////////////////////
func (t *showPartitionTask) Type() internalpb.ReqType {
func (t *showPartitionTask) Type() internalpb.MsgType {
if t.req == nil {
log.Printf("null request")
return 0
}
return t.req.ReqType
return t.req.MsgType
}
func (t *showPartitionTask) Ts() (Timestamp, error) {
......
......@@ -18,7 +18,7 @@ type baseTask struct {
}
type task interface {
Type() internalpb.ReqType
Type() internalpb.MsgType
Ts() (Timestamp, error)
Execute() error
WaitToFinish(ctx context.Context) error
......
......@@ -29,7 +29,7 @@ func getTsMsg(msgType MsgType, reqId int64, hashValue int32) *TsMsg {
switch msgType {
case KInsert:
insertRequest := internalPb.InsertRequest{
ReqType: internalPb.ReqType_kInsert,
MsgType: internalPb.MsgType_kInsert,
ReqId: reqId,
CollectionName: "Collection",
PartitionTag: "Partition",
......@@ -45,7 +45,7 @@ func getTsMsg(msgType MsgType, reqId int64, hashValue int32) *TsMsg {
tsMsg = insertMsg
case KDelete:
deleteRequest := internalPb.DeleteRequest{
ReqType: internalPb.ReqType_kDelete,
MsgType: internalPb.MsgType_kDelete,
ReqId: reqId,
CollectionName: "Collection",
ChannelId: 1,
......@@ -60,7 +60,7 @@ func getTsMsg(msgType MsgType, reqId int64, hashValue int32) *TsMsg {
tsMsg = deleteMsg
case KSearch:
searchRequest := internalPb.SearchRequest{
ReqType: internalPb.ReqType_kSearch,
MsgType: internalPb.MsgType_kSearch,
ReqId: reqId,
ProxyId: 1,
Timestamp: 1,
......@@ -97,7 +97,7 @@ func getTsMsg(msgType MsgType, reqId int64, hashValue int32) *TsMsg {
tsMsg = timeSyncMsg
case KTimeTick:
insertRequest := internalPb.InsertRequest{
ReqType: internalPb.ReqType_kTimeTick,
MsgType: internalPb.MsgType_kTimeTick,
ReqId: reqId,
CollectionName: "Collection",
PartitionTag: "Partition",
......
......@@ -207,7 +207,7 @@ func TestNewStream_Insert_TimeTick(t *testing.T) {
msgPack.Msgs = append(msgPack.Msgs, getTsMsg(KInsert, 1, 1))
insertRequest := internalPb.InsertRequest{
ReqType: internalPb.ReqType_kTimeTick,
MsgType: internalPb.MsgType_kTimeTick,
ReqId: 2,
CollectionName: "Collection",
PartitionTag: "Partition",
......
......@@ -67,7 +67,7 @@ func (it InsertTask) EndTs() Timestamp {
}
func (it InsertTask) Type() MsgType {
if it.ReqType == internalPb.ReqType_kTimeTick {
if it.MsgType == internalPb.MsgType_kTimeTick {
return KTimeSync
}
return KInsert
......@@ -118,7 +118,7 @@ func (dt DeleteTask) EndTs() Timestamp {
}
func (dt DeleteTask) Type() MsgType {
if dt.ReqType == internalPb.ReqType_kTimeTick {
if dt.MsgType == internalPb.MsgType_kTimeTick {
return KTimeSync
}
return KDelete
......@@ -147,7 +147,7 @@ func (st SearchTask) EndTs() Timestamp {
}
func (st SearchTask) Type() MsgType {
if st.ReqType == internalPb.ReqType_kTimeTick {
if st.MsgType == internalPb.MsgType_kTimeTick {
return KTimeSync
}
return KSearch
......
......@@ -6,7 +6,7 @@ import "common.proto";
import "service_msg.proto";
enum ReqType {
enum MsgType {
kNone = 0;
/* Definition Requests: collection */
kCreateCollection = 100;
......@@ -72,7 +72,7 @@ message TsoResponse {
message CreateCollectionRequest {
ReqType req_type = 1;
MsgType msg_type = 1;
int64 req_id = 2;
uint64 timestamp = 3;
int64 proxy_id = 4;
......@@ -81,7 +81,7 @@ message CreateCollectionRequest {
message DropCollectionRequest {
ReqType req_type = 1;
MsgType msg_type = 1;
int64 req_id = 2;
uint64 timestamp = 3;
int64 proxy_id = 4;
......@@ -90,7 +90,7 @@ message DropCollectionRequest {
message HasCollectionRequest {
ReqType req_type = 1;
MsgType msg_type = 1;
int64 req_id = 2;
uint64 timestamp = 3;
int64 proxy_id = 4;
......@@ -99,7 +99,7 @@ message HasCollectionRequest {
message DescribeCollectionRequest {
ReqType req_type = 1;
MsgType msg_type = 1;
int64 req_id = 2;
uint64 timestamp = 3;
int64 proxy_id = 4;
......@@ -108,7 +108,7 @@ message DescribeCollectionRequest {
message ShowCollectionRequest {
ReqType req_type = 1;
MsgType msg_type = 1;
int64 req_id = 2;
uint64 timestamp = 3;
int64 proxy_id = 4;
......@@ -116,7 +116,7 @@ message ShowCollectionRequest {
message CreatePartitionRequest {
ReqType req_type = 1;
MsgType msg_type = 1;
int64 req_id = 2;
uint64 timestamp = 3;
int64 proxy_id = 4;
......@@ -125,7 +125,7 @@ message CreatePartitionRequest {
message DropPartitionRequest {
ReqType req_type = 1;
MsgType msg_type = 1;
int64 req_id = 2;
uint64 timestamp = 3;
int64 proxy_id = 4;
......@@ -134,7 +134,7 @@ message DropPartitionRequest {
message HasPartitionRequest {
ReqType req_type = 1;
MsgType msg_type = 1;
int64 req_id = 2;
uint64 timestamp = 3;
int64 proxy_id = 4;
......@@ -143,7 +143,7 @@ message HasPartitionRequest {
message DescribePartitionRequest {
ReqType req_type = 1;
MsgType msg_type = 1;
int64 req_id = 2;
uint64 timestamp = 3;
int64 proxy_id = 4;
......@@ -152,7 +152,7 @@ message DescribePartitionRequest {
message ShowPartitionRequest {
ReqType req_type = 1;
MsgType msg_type = 1;
int64 req_id = 2;
uint64 timestamp = 3;
int64 proxy_id = 4;
......@@ -161,7 +161,7 @@ message ShowPartitionRequest {
message InsertRequest {
ReqType req_type = 1;
MsgType msg_type = 1;
int64 req_id = 2;
string collection_name = 3;
string partition_tag = 4;
......@@ -175,7 +175,7 @@ message InsertRequest {
message DeleteRequest {
ReqType req_type = 1;
MsgType msg_type = 1;
int64 req_id = 2;
string collection_name = 3;
int64 channel_id = 4;
......@@ -186,7 +186,7 @@ message DeleteRequest {
message SearchRequest {
ReqType req_type = 1;
MsgType msg_type = 1;
int64 req_id = 2;
int64 proxy_id = 3;
uint64 timestamp = 4;
......@@ -205,7 +205,6 @@ message SearchResult {
repeated service.Hits hits = 7;
}
message TimeTickMsg {
int64 peer_id = 1;
uint64 timestamp = 2;
......
......@@ -22,33 +22,33 @@ var _ = math.Inf
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type ReqType int32
type MsgType int32
const (
ReqType_kNone ReqType = 0
MsgType_kNone MsgType = 0
// Definition Requests: collection
ReqType_kCreateCollection ReqType = 100
ReqType_kDropCollection ReqType = 101
ReqType_kHasCollection ReqType = 102
ReqType_kDescribeCollection ReqType = 103
ReqType_kShowCollections ReqType = 104
MsgType_kCreateCollection MsgType = 100
MsgType_kDropCollection MsgType = 101
MsgType_kHasCollection MsgType = 102
MsgType_kDescribeCollection MsgType = 103
MsgType_kShowCollections MsgType = 104
// Definition Requests: partition
ReqType_kCreatePartition ReqType = 200
ReqType_kDropPartition ReqType = 201
ReqType_kHasPartition ReqType = 202
ReqType_kDescribePartition ReqType = 203
ReqType_kShowPartitions ReqType = 204
MsgType_kCreatePartition MsgType = 200
MsgType_kDropPartition MsgType = 201
MsgType_kHasPartition MsgType = 202
MsgType_kDescribePartition MsgType = 203
MsgType_kShowPartitions MsgType = 204
// Manipulation Requests
ReqType_kInsert ReqType = 400
ReqType_kDelete ReqType = 401
MsgType_kInsert MsgType = 400
MsgType_kDelete MsgType = 401
// Query
ReqType_kSearch ReqType = 500
MsgType_kSearch MsgType = 500
// System Control
ReqType_kTimeTick ReqType = 1200
ReqType_kTimeSync ReqType = 1201
MsgType_kTimeTick MsgType = 1200
MsgType_kTimeSync MsgType = 1201
)
var ReqType_name = map[int32]string{
var MsgType_name = map[int32]string{
0: "kNone",
100: "kCreateCollection",
101: "kDropCollection",
......@@ -67,7 +67,7 @@ var ReqType_name = map[int32]string{
1201: "kTimeSync",
}
var ReqType_value = map[string]int32{
var MsgType_value = map[string]int32{
"kNone": 0,
"kCreateCollection": 100,
"kDropCollection": 101,
......@@ -86,11 +86,11 @@ var ReqType_value = map[string]int32{
"kTimeSync": 1201,
}
func (x ReqType) String() string {
return proto.EnumName(ReqType_name, int32(x))
func (x MsgType) String() string {
return proto.EnumName(MsgType_name, int32(x))
}
func (ReqType) EnumDescriptor() ([]byte, []int) {
func (MsgType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_7eb37f6b80b23116, []int{0}
}
......@@ -346,7 +346,7 @@ func (m *TsoResponse) GetCount() uint32 {
}
type CreateCollectionRequest struct {
ReqType ReqType `protobuf:"varint,1,opt,name=req_type,json=reqType,proto3,enum=milvus.proto.internal.ReqType" json:"req_type,omitempty"`
MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"`
ReqId int64 `protobuf:"varint,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"`
Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
ProxyId int64 `protobuf:"varint,4,opt,name=proxy_id,json=proxyId,proto3" json:"proxy_id,omitempty"`
......@@ -381,11 +381,11 @@ func (m *CreateCollectionRequest) XXX_DiscardUnknown() {
var xxx_messageInfo_CreateCollectionRequest proto.InternalMessageInfo
func (m *CreateCollectionRequest) GetReqType() ReqType {
func (m *CreateCollectionRequest) GetMsgType() MsgType {
if m != nil {
return m.ReqType
return m.MsgType
}
return ReqType_kNone
return MsgType_kNone
}
func (m *CreateCollectionRequest) GetReqId() int64 {
......@@ -417,7 +417,7 @@ func (m *CreateCollectionRequest) GetSchema() *commonpb.Blob {
}
type DropCollectionRequest struct {
ReqType ReqType `protobuf:"varint,1,opt,name=req_type,json=reqType,proto3,enum=milvus.proto.internal.ReqType" json:"req_type,omitempty"`
MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"`
ReqId int64 `protobuf:"varint,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"`
Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
ProxyId int64 `protobuf:"varint,4,opt,name=proxy_id,json=proxyId,proto3" json:"proxy_id,omitempty"`
......@@ -452,11 +452,11 @@ func (m *DropCollectionRequest) XXX_DiscardUnknown() {
var xxx_messageInfo_DropCollectionRequest proto.InternalMessageInfo
func (m *DropCollectionRequest) GetReqType() ReqType {
func (m *DropCollectionRequest) GetMsgType() MsgType {
if m != nil {
return m.ReqType
return m.MsgType
}
return ReqType_kNone
return MsgType_kNone
}
func (m *DropCollectionRequest) GetReqId() int64 {
......@@ -488,7 +488,7 @@ func (m *DropCollectionRequest) GetCollectionName() *servicepb.CollectionName {
}
type HasCollectionRequest struct {
ReqType ReqType `protobuf:"varint,1,opt,name=req_type,json=reqType,proto3,enum=milvus.proto.internal.ReqType" json:"req_type,omitempty"`
MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"`
ReqId int64 `protobuf:"varint,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"`
Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
ProxyId int64 `protobuf:"varint,4,opt,name=proxy_id,json=proxyId,proto3" json:"proxy_id,omitempty"`
......@@ -523,11 +523,11 @@ func (m *HasCollectionRequest) XXX_DiscardUnknown() {
var xxx_messageInfo_HasCollectionRequest proto.InternalMessageInfo
func (m *HasCollectionRequest) GetReqType() ReqType {
func (m *HasCollectionRequest) GetMsgType() MsgType {
if m != nil {
return m.ReqType
return m.MsgType
}
return ReqType_kNone
return MsgType_kNone
}
func (m *HasCollectionRequest) GetReqId() int64 {
......@@ -559,7 +559,7 @@ func (m *HasCollectionRequest) GetCollectionName() *servicepb.CollectionName {
}
type DescribeCollectionRequest struct {
ReqType ReqType `protobuf:"varint,1,opt,name=req_type,json=reqType,proto3,enum=milvus.proto.internal.ReqType" json:"req_type,omitempty"`
MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"`
ReqId int64 `protobuf:"varint,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"`
Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
ProxyId int64 `protobuf:"varint,4,opt,name=proxy_id,json=proxyId,proto3" json:"proxy_id,omitempty"`
......@@ -594,11 +594,11 @@ func (m *DescribeCollectionRequest) XXX_DiscardUnknown() {
var xxx_messageInfo_DescribeCollectionRequest proto.InternalMessageInfo
func (m *DescribeCollectionRequest) GetReqType() ReqType {
func (m *DescribeCollectionRequest) GetMsgType() MsgType {
if m != nil {
return m.ReqType
return m.MsgType
}
return ReqType_kNone
return MsgType_kNone
}
func (m *DescribeCollectionRequest) GetReqId() int64 {
......@@ -630,7 +630,7 @@ func (m *DescribeCollectionRequest) GetCollectionName() *servicepb.CollectionNam
}
type ShowCollectionRequest struct {
ReqType ReqType `protobuf:"varint,1,opt,name=req_type,json=reqType,proto3,enum=milvus.proto.internal.ReqType" json:"req_type,omitempty"`
MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"`
ReqId int64 `protobuf:"varint,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"`
Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
ProxyId int64 `protobuf:"varint,4,opt,name=proxy_id,json=proxyId,proto3" json:"proxy_id,omitempty"`
......@@ -664,11 +664,11 @@ func (m *ShowCollectionRequest) XXX_DiscardUnknown() {
var xxx_messageInfo_ShowCollectionRequest proto.InternalMessageInfo
func (m *ShowCollectionRequest) GetReqType() ReqType {
func (m *ShowCollectionRequest) GetMsgType() MsgType {
if m != nil {
return m.ReqType
return m.MsgType
}
return ReqType_kNone
return MsgType_kNone
}
func (m *ShowCollectionRequest) GetReqId() int64 {
......@@ -693,7 +693,7 @@ func (m *ShowCollectionRequest) GetProxyId() int64 {
}
type CreatePartitionRequest struct {
ReqType ReqType `protobuf:"varint,1,opt,name=req_type,json=reqType,proto3,enum=milvus.proto.internal.ReqType" json:"req_type,omitempty"`
MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"`
ReqId int64 `protobuf:"varint,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"`
Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
ProxyId int64 `protobuf:"varint,4,opt,name=proxy_id,json=proxyId,proto3" json:"proxy_id,omitempty"`
......@@ -728,11 +728,11 @@ func (m *CreatePartitionRequest) XXX_DiscardUnknown() {
var xxx_messageInfo_CreatePartitionRequest proto.InternalMessageInfo
func (m *CreatePartitionRequest) GetReqType() ReqType {
func (m *CreatePartitionRequest) GetMsgType() MsgType {
if m != nil {
return m.ReqType
return m.MsgType
}
return ReqType_kNone
return MsgType_kNone
}
func (m *CreatePartitionRequest) GetReqId() int64 {
......@@ -764,7 +764,7 @@ func (m *CreatePartitionRequest) GetPartitionName() *servicepb.PartitionName {
}
type DropPartitionRequest struct {
ReqType ReqType `protobuf:"varint,1,opt,name=req_type,json=reqType,proto3,enum=milvus.proto.internal.ReqType" json:"req_type,omitempty"`
MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"`
ReqId int64 `protobuf:"varint,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"`
Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
ProxyId int64 `protobuf:"varint,4,opt,name=proxy_id,json=proxyId,proto3" json:"proxy_id,omitempty"`
......@@ -799,11 +799,11 @@ func (m *DropPartitionRequest) XXX_DiscardUnknown() {
var xxx_messageInfo_DropPartitionRequest proto.InternalMessageInfo
func (m *DropPartitionRequest) GetReqType() ReqType {
func (m *DropPartitionRequest) GetMsgType() MsgType {
if m != nil {
return m.ReqType
return m.MsgType
}
return ReqType_kNone
return MsgType_kNone
}
func (m *DropPartitionRequest) GetReqId() int64 {
......@@ -835,7 +835,7 @@ func (m *DropPartitionRequest) GetPartitionName() *servicepb.PartitionName {
}
type HasPartitionRequest struct {
ReqType ReqType `protobuf:"varint,1,opt,name=req_type,json=reqType,proto3,enum=milvus.proto.internal.ReqType" json:"req_type,omitempty"`
MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"`
ReqId int64 `protobuf:"varint,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"`
Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
ProxyId int64 `protobuf:"varint,4,opt,name=proxy_id,json=proxyId,proto3" json:"proxy_id,omitempty"`
......@@ -870,11 +870,11 @@ func (m *HasPartitionRequest) XXX_DiscardUnknown() {
var xxx_messageInfo_HasPartitionRequest proto.InternalMessageInfo
func (m *HasPartitionRequest) GetReqType() ReqType {
func (m *HasPartitionRequest) GetMsgType() MsgType {
if m != nil {
return m.ReqType
return m.MsgType
}
return ReqType_kNone
return MsgType_kNone
}
func (m *HasPartitionRequest) GetReqId() int64 {
......@@ -906,7 +906,7 @@ func (m *HasPartitionRequest) GetPartitionName() *servicepb.PartitionName {
}
type DescribePartitionRequest struct {
ReqType ReqType `protobuf:"varint,1,opt,name=req_type,json=reqType,proto3,enum=milvus.proto.internal.ReqType" json:"req_type,omitempty"`
MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"`
ReqId int64 `protobuf:"varint,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"`
Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
ProxyId int64 `protobuf:"varint,4,opt,name=proxy_id,json=proxyId,proto3" json:"proxy_id,omitempty"`
......@@ -941,11 +941,11 @@ func (m *DescribePartitionRequest) XXX_DiscardUnknown() {
var xxx_messageInfo_DescribePartitionRequest proto.InternalMessageInfo
func (m *DescribePartitionRequest) GetReqType() ReqType {
func (m *DescribePartitionRequest) GetMsgType() MsgType {
if m != nil {
return m.ReqType
return m.MsgType
}
return ReqType_kNone
return MsgType_kNone
}
func (m *DescribePartitionRequest) GetReqId() int64 {
......@@ -977,7 +977,7 @@ func (m *DescribePartitionRequest) GetPartitionName() *servicepb.PartitionName {
}
type ShowPartitionRequest struct {
ReqType ReqType `protobuf:"varint,1,opt,name=req_type,json=reqType,proto3,enum=milvus.proto.internal.ReqType" json:"req_type,omitempty"`
MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"`
ReqId int64 `protobuf:"varint,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"`
Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
ProxyId int64 `protobuf:"varint,4,opt,name=proxy_id,json=proxyId,proto3" json:"proxy_id,omitempty"`
......@@ -1012,11 +1012,11 @@ func (m *ShowPartitionRequest) XXX_DiscardUnknown() {
var xxx_messageInfo_ShowPartitionRequest proto.InternalMessageInfo
func (m *ShowPartitionRequest) GetReqType() ReqType {
func (m *ShowPartitionRequest) GetMsgType() MsgType {
if m != nil {
return m.ReqType
return m.MsgType
}
return ReqType_kNone
return MsgType_kNone
}
func (m *ShowPartitionRequest) GetReqId() int64 {
......@@ -1048,7 +1048,7 @@ func (m *ShowPartitionRequest) GetCollectionName() *servicepb.CollectionName {
}
type InsertRequest struct {
ReqType ReqType `protobuf:"varint,1,opt,name=req_type,json=reqType,proto3,enum=milvus.proto.internal.ReqType" json:"req_type,omitempty"`
MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"`
ReqId int64 `protobuf:"varint,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"`
CollectionName string `protobuf:"bytes,3,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"`
PartitionTag string `protobuf:"bytes,4,opt,name=partition_tag,json=partitionTag,proto3" json:"partition_tag,omitempty"`
......@@ -1088,11 +1088,11 @@ func (m *InsertRequest) XXX_DiscardUnknown() {
var xxx_messageInfo_InsertRequest proto.InternalMessageInfo
func (m *InsertRequest) GetReqType() ReqType {
func (m *InsertRequest) GetMsgType() MsgType {
if m != nil {
return m.ReqType
return m.MsgType
}
return ReqType_kNone
return MsgType_kNone
}
func (m *InsertRequest) GetReqId() int64 {
......@@ -1159,7 +1159,7 @@ func (m *InsertRequest) GetRowData() []*commonpb.Blob {
}
type DeleteRequest struct {
ReqType ReqType `protobuf:"varint,1,opt,name=req_type,json=reqType,proto3,enum=milvus.proto.internal.ReqType" json:"req_type,omitempty"`
MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"`
ReqId int64 `protobuf:"varint,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"`
CollectionName string `protobuf:"bytes,3,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"`
ChannelId int64 `protobuf:"varint,4,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
......@@ -1196,11 +1196,11 @@ func (m *DeleteRequest) XXX_DiscardUnknown() {
var xxx_messageInfo_DeleteRequest proto.InternalMessageInfo
func (m *DeleteRequest) GetReqType() ReqType {
func (m *DeleteRequest) GetMsgType() MsgType {
if m != nil {
return m.ReqType
return m.MsgType
}
return ReqType_kNone
return MsgType_kNone
}
func (m *DeleteRequest) GetReqId() int64 {
......@@ -1246,7 +1246,7 @@ func (m *DeleteRequest) GetPrimaryKeys() []int64 {
}
type SearchRequest struct {
ReqType ReqType `protobuf:"varint,1,opt,name=req_type,json=reqType,proto3,enum=milvus.proto.internal.ReqType" json:"req_type,omitempty"`
MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"`
ReqId int64 `protobuf:"varint,2,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"`
ProxyId int64 `protobuf:"varint,3,opt,name=proxy_id,json=proxyId,proto3" json:"proxy_id,omitempty"`
Timestamp uint64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
......@@ -1282,11 +1282,11 @@ func (m *SearchRequest) XXX_DiscardUnknown() {
var xxx_messageInfo_SearchRequest proto.InternalMessageInfo
func (m *SearchRequest) GetReqType() ReqType {
func (m *SearchRequest) GetMsgType() MsgType {
if m != nil {
return m.ReqType
return m.MsgType
}
return ReqType_kNone
return MsgType_kNone
}
func (m *SearchRequest) GetReqId() int64 {
......@@ -1632,7 +1632,7 @@ func (m *SegmentStatistics) GetNumRows() int64 {
}
func init() {
proto.RegisterEnum("milvus.proto.internal.ReqType", ReqType_name, ReqType_value)
proto.RegisterEnum("milvus.proto.internal.MsgType", MsgType_name, MsgType_value)
proto.RegisterEnum("milvus.proto.internal.PeerRole", PeerRole_name, PeerRole_value)
proto.RegisterType((*IdRequest)(nil), "milvus.proto.internal.IdRequest")
proto.RegisterType((*IdResponse)(nil), "milvus.proto.internal.IdResponse")
......@@ -1661,79 +1661,79 @@ func init() {
func init() { proto.RegisterFile("internal_msg.proto", fileDescriptor_7eb37f6b80b23116) }
var fileDescriptor_7eb37f6b80b23116 = []byte{
// 1178 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x58, 0x4b, 0x6f, 0x1b, 0xd5,
0x17, 0xef, 0xf8, 0x19, 0x1f, 0xc7, 0xce, 0xe4, 0x26, 0xf9, 0xc7, 0xed, 0x1f, 0x5a, 0x33, 0x45,
0x22, 0xaa, 0x84, 0x23, 0x5c, 0x16, 0x74, 0xdb, 0x7a, 0x51, 0x53, 0xb5, 0xaa, 0xc6, 0x11, 0x48,
0x48, 0x68, 0x34, 0x9e, 0x39, 0xd8, 0x57, 0xf3, 0xb8, 0x93, 0x7b, 0xaf, 0x13, 0x9c, 0x2f, 0xc0,
0x16, 0xc4, 0x92, 0x1d, 0x9f, 0x00, 0xf6, 0x7c, 0x00, 0x5e, 0x7b, 0xbe, 0x04, 0x08, 0x2a, 0x81,
0xba, 0x45, 0xf7, 0xce, 0xf8, 0x31, 0xce, 0x83, 0x67, 0x51, 0xa4, 0xec, 0xe6, 0x9c, 0xfb, 0x38,
0xe7, 0xf7, 0x3b, 0x0f, 0xdf, 0x63, 0x20, 0x34, 0x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0x54, 0xbc, 0xa3, 0x44,
0x75, 0xf3, 0xa2, 0x49, 0x89, 0x56, 0x59, 0x27, 0x3d, 0xcc, 0xbb, 0x94, 0xb0, 0xde, 0x07, 0xc8,
0x9c, 0x53, 0x10, 0x17, 0x11, 0x34, 0x96, 0x23, 0xf8, 0x16, 0x54, 0x03, 0x9c, 0x76, 0x05, 0x8e,
0x5a, 0x05, 0xcd, 0xdd, 0x79, 0x55, 0x90, 0x5d, 0x65, 0xcf, 0xb6, 0x5b, 0x31, 0x6c, 0x0e, 0x52,
0x63, 0x2a, 0x57, 0xa8, 0x90, 0xd4, 0x13, 0x2b, 0x9d, 0xd3, 0x58, 0xed, 0x9c, 0xb7, 0xa0, 0x1e,
0x61, 0xc4, 0xf8, 0xd4, 0x11, 0xf4, 0x04, 0x67, 0x6c, 0xa4, 0xaa, 0x01, 0x3d, 0x41, 0x85, 0x37,
0x9e, 0x44, 0x0e, 0x67, 0xc7, 0x62, 0x96, 0x50, 0xf1, 0x24, 0xb2, 0xd9, 0xb1, 0xb8, 0xf3, 0x55,
0x01, 0xaa, 0x59, 0x29, 0x92, 0x1a, 0x94, 0x83, 0x27, 0x2c, 0x46, 0xf3, 0x1a, 0xd9, 0x81, 0xcd,
0x60, 0x75, 0xe6, 0x36, 0x7d, 0xb2, 0x05, 0x1b, 0x41, 0x7e, 0x60, 0x35, 0x91, 0x10, 0x68, 0x06,
0xb9, 0x89, 0xce, 0xfc, 0x80, 0xec, 0xc2, 0x56, 0x70, 0x7a, 0xe4, 0x31, 0x47, 0x64, 0x1b, 0xcc,
0x20, 0x3f, 0x13, 0x08, 0x73, 0x4c, 0x76, 0xc0, 0x0c, 0x56, 0x1e, 0xe1, 0xe6, 0xd7, 0x06, 0xd9,
0x82, 0x66, 0x90, 0x7b, 0xa9, 0x9a, 0xdf, 0x18, 0x84, 0x40, 0x23, 0x58, 0x7e, 0xce, 0x99, 0xdf,
0x1a, 0x64, 0x17, 0x48, 0x70, 0xea, 0xcd, 0x63,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44, 0x6f, 0xb8, 0x9b, 0x65, 0xca, 0xeb, 0x3e, 0x15, 0x92, 0xd3, 0xc1, 0x48, 0xa2,
0xbf, 0x3b, 0xc9, 0x97, 0x5d, 0x9d, 0x3e, 0x53, 0x31, 0x1d, 0x0c, 0x6a, 0x5a, 0x73, 0xff, 0xf7,
0x00, 0x00, 0x00, 0xff, 0xff, 0x3a, 0x14, 0x7f, 0x35, 0x35, 0x13, 0x00, 0x00,
}
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: msg_header.proto
package internalpb
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
any "github.com/golang/protobuf/ptypes/any"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type MsgHeader struct {
MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.internal.MsgType" json:"msg_type,omitempty"`
Message *any.Any `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MsgHeader) Reset() { *m = MsgHeader{} }
func (m *MsgHeader) String() string { return proto.CompactTextString(m) }
func (*MsgHeader) ProtoMessage() {}
func (*MsgHeader) Descriptor() ([]byte, []int) {
return fileDescriptor_4712536c36da8833, []int{0}
}
func (m *MsgHeader) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MsgHeader.Unmarshal(m, b)
}
func (m *MsgHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MsgHeader.Marshal(b, m, deterministic)
}
func (m *MsgHeader) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgHeader.Merge(m, src)
}
func (m *MsgHeader) XXX_Size() int {
return xxx_messageInfo_MsgHeader.Size(m)
}
func (m *MsgHeader) XXX_DiscardUnknown() {
xxx_messageInfo_MsgHeader.DiscardUnknown(m)
}
var xxx_messageInfo_MsgHeader proto.InternalMessageInfo
func (m *MsgHeader) GetMsgType() MsgType {
if m != nil {
return m.MsgType
}
return MsgType_kNone
}
func (m *MsgHeader) GetMessage() *any.Any {
if m != nil {
return m.Message
}
return nil
}
func init() {
proto.RegisterType((*MsgHeader)(nil), "milvus.proto.internal.MsgHeader")
}
func init() { proto.RegisterFile("msg_header.proto", fileDescriptor_4712536c36da8833) }
var fileDescriptor_4712536c36da8833 = []byte{
// 222 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x8f, 0x31, 0x4b, 0xc4, 0x40,
0x10, 0x85, 0xc9, 0x15, 0x9e, 0x46, 0x10, 0x09, 0x0a, 0xe7, 0x15, 0x72, 0x58, 0xa5, 0x71, 0x16,
0x62, 0x65, 0x69, 0xb0, 0xb0, 0xb9, 0xe6, 0xb0, 0xb2, 0x39, 0xb2, 0x97, 0x71, 0xb2, 0xb0, 0x9b,
0x0d, 0x3b, 0xbb, 0xc2, 0xe6, 0xd7, 0x8b, 0x59, 0xd6, 0xea, 0xba, 0xf7, 0xcd, 0x1b, 0xe6, 0x63,
0xca, 0x5b, 0xc3, 0x74, 0x1c, 0xb0, 0xeb, 0xd1, 0xc1, 0xe4, 0xac, 0xb7, 0xd5, 0xbd, 0x51, 0xfa,
0x27, 0x70, 0x22, 0x50, 0xa3, 0x47, 0x37, 0x76, 0x7a, 0x5b, 0xe5, 0x74, 0x34, 0x4c, 0xa9, 0xdc,
0x3e, 0x90, 0xb5, 0xa4, 0x51, 0x2c, 0x24, 0xc3, 0xb7, 0xe8, 0xc6, 0x98, 0xaa, 0xa7, 0xb9, 0xbc,
0xda, 0x33, 0x7d, 0x2c, 0x87, 0xab, 0xd7, 0xf2, 0xf2, 0x4f, 0xe3, 0xe3, 0x84, 0x9b, 0x62, 0x57,
0xd4, 0x37, 0xcd, 0x23, 0x9c, 0xb5, 0xc0, 0x9e, 0xe9, 0x33, 0x4e, 0x78, 0x58, 0x9b, 0x14, 0xaa,
0xa6, 0x5c, 0x1b, 0x64, 0xee, 0x08, 0x37, 0xab, 0x5d, 0x51, 0x5f, 0x37, 0x77, 0x90, 0xa4, 0x90,
0xa5, 0xf0, 0x36, 0xc6, 0x76, 0x55, 0x17, 0x87, 0xbc, 0xd8, 0xbe, 0x7f, 0xb5, 0xa4, 0xfc, 0x10,
0x24, 0x9c, 0xac, 0x11, 0xb3, 0xd2, 0x5a, 0xcd, 0x1e, 0x4f, 0x83, 0x48, 0xce, 0xe7, 0x5e, 0xb1,
0x77, 0x4a, 0x06, 0x8f, 0xbd, 0xc8, 0xe6, 0xf4, 0xc3, 0x3f, 0x4e, 0x52, 0x5e, 0x2c, 0x93, 0x97,
0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x01, 0x87, 0xfd, 0x10, 0x22, 0x01, 0x00, 0x00,
}
syntax = "proto3";
package milvus.proto.internal;
option go_package="github.com/zilliztech/milvus-distributed/internal/proto/internalpb";
import "internal_msg.proto";
import "google/protobuf/any.proto";
message MsgHeader {
MsgType msg_type = 1;
google.protobuf.Any message = 2[lazy=true];
}
......@@ -22,7 +22,7 @@ func (it *insertTask) PreExecute() error {
func (it *insertTask) Execute() error {
ts := it.GetTs()
insertRequest := internalpb.InsertRequest{
ReqType: internalpb.ReqType_kInsert,
MsgType: internalpb.MsgType_kInsert,
ReqId: it.ReqId,
CollectionName: it.rowBatch.CollectionName,
PartitionTag: it.rowBatch.PartitionTag,
......
......@@ -52,7 +52,7 @@ func (ins *proxyInstance) restartSchedulerRoutine(bufSize int) error {
select {
case t := <-ins.taskChan:
switch (*t).Type() {
case internalpb.ReqType_kInsert:
case internalpb.MsgType_kInsert:
ins.taskSch.DmQueue.Enqueue(t)
default:
return
......
......@@ -15,7 +15,7 @@ import (
)
type BaseRequest interface {
Type() internalpb.ReqType
Type() internalpb.MsgType
PreExecute() commonpb.Status
Execute() commonpb.Status
PostExecute() commonpb.Status
......
......@@ -19,8 +19,8 @@ type queryReq struct {
}
// BaseRequest interfaces
func (req *queryReq) Type() internalpb.ReqType {
return req.ReqType
func (req *queryReq) Type() internalpb.MsgType {
return req.MsgType
}
func (req *queryReq) PreExecute() commonpb.Status {
......
......@@ -145,38 +145,6 @@ func (s *proxyServer) ShowPartitions(ctx context.Context, req *servicepb.Collect
}, nil
}
func (s *proxyServer) DeleteByID(ctx context.Context, req *pb.DeleteByIDParam) (*commonpb.Status, error) {
log.Printf("delete entites, total = %d", len(req.IdArray))
mReqMsg := pb.ManipulationReqMsg{
CollectionName: req.CollectionName,
ReqType: pb.ReqType_kDeleteEntityByID,
ProxyId: s.proxyId,
}
for _, id := range req.IdArray {
mReqMsg.PrimaryKeys = append(mReqMsg.PrimaryKeys, id)
}
if len(mReqMsg.PrimaryKeys) > 1 {
mReq := &manipulationReq{
stats: make([]commonpb.Status, 1),
msgs: append([]*pb.ManipulationReqMsg{}, &mReqMsg),
proxy: s,
}
if st := mReq.PreExecute(); st.ErrorCode != commonpb.ErrorCode_SUCCESS {
return &st, nil
}
if st := mReq.Execute(); st.ErrorCode != commonpb.ErrorCode_SUCCESS {
return &st, nil
}
if st := mReq.PostExecute(); st.ErrorCode != commonpb.ErrorCode_SUCCESS {
return &st, nil
}
if st := mReq.WaitToFinish(); st.ErrorCode != commonpb.ErrorCode_SUCCESS {
return &st, nil
}
}
return &commonpb.Status{ErrorCode: commonpb.ErrorCode_SUCCESS}, nil
}
func (s *proxyServer) Insert(ctx context.Context, req *servicepb.RowBatch) (*servicepb.IntegerRangeResponse, error) {
log.Printf("Insert Entities, total = %d", len(req.RowData))
msgMap := make(map[uint32]*pb.ManipulationReqMsg)
......@@ -262,7 +230,7 @@ func (s *proxyServer) Insert(ctx context.Context, req *servicepb.RowBatch) (*ser
func (s *proxyServer) Search(ctx context.Context, req *servicepb.Query) (*servicepb.QueryResult, error) {
qm := &queryReq{
SearchRequest: internalpb.SearchRequest{
ReqType: internalpb.ReqType_kSearch,
MsgType: internalpb.MsgType_kSearch,
ProxyId: s.proxyId,
ReqId: s.queryId.Add(1),
Timestamp: 0,
......
......@@ -9,7 +9,7 @@ import (
type task interface {
Id() int64 // return ReqId
Type() internalpb.ReqType
Type() internalpb.MsgType
GetTs() typeutil.Timestamp
SetTs(ts typeutil.Timestamp)
PreExecute() error
......@@ -20,7 +20,7 @@ type task interface {
}
type baseTask struct {
ReqType internalpb.ReqType
ReqType internalpb.MsgType
ReqId int64
Ts typeutil.Timestamp
ProxyId int64
......@@ -30,7 +30,7 @@ func (bt *baseTask) Id() int64 {
return bt.ReqId
}
func (bt *baseTask) Type() internalpb.ReqType {
func (bt *baseTask) Type() internalpb.MsgType {
return bt.ReqType
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册