Alter msgID’s type to bytes

Signed-off-by: xige-16 <xi.ge@zilliz.com>
pull/4973/head^2
xige-16 2021-03-27 09:46:54 +08:00 committed by yefu.chen
parent 432b53149b
commit a48d46cfaf
14 changed files with 169 additions and 132 deletions

1
go.mod
View File

@ -11,7 +11,6 @@ require (
github.com/facebookgo/subset v0.0.0-20200203212716-c811ad88dec4 // indirect
github.com/frankban/quicktest v1.10.2 // indirect
github.com/go-basic/ipv4 v1.0.0
github.com/gogo/protobuf v1.3.2
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect
github.com/golang/mock v1.3.1
github.com/golang/protobuf v1.4.2

View File

@ -147,7 +147,7 @@ func TestFlowGraphDDNode_Operate(t *testing.T) {
startPos := []*internalpb.MsgPosition{
{
ChannelName: "aaa",
MsgID: "000",
MsgID: make([]byte, 0),
Timestamp: 0,
},
}

View File

@ -65,7 +65,7 @@ func genInsertMsg() insertMsg {
startPos := []*internalpb.MsgPosition{
{
ChannelName: "aaa",
MsgID: "000",
MsgID: make([]byte, 0),
Timestamp: 0,
},
}

View File

@ -397,12 +397,12 @@ func BuildSegment(collectionID UniqueID, partitionID UniqueID, segmentID UniqueI
State: commonpb.SegmentState_Growing,
StartPosition: &internalpb.MsgPosition{
ChannelName: channelName,
MsgID: "",
MsgID: make([]byte, 0),
Timestamp: 0,
},
EndPosition: &internalpb.MsgPosition{
ChannelName: channelName,
MsgID: "",
MsgID: make([]byte, 0),
Timestamp: 0,
},
}, nil

View File

@ -13,6 +13,9 @@ type Client interface {
// String to msg ID
StringToMsgID(string) (MessageID, error)
// Bytes to msg ID
BytesToMsgID([]byte) (MessageID, error)
// Close the client and free associated resources
Close()
}

View File

@ -81,6 +81,14 @@ func (pc *pulsarClient) StringToMsgID(id string) (client.MessageID, error) {
return &pulsarID{messageID: pID}, nil
}
func (pc *pulsarClient) BytesToMsgID(id []byte) (client.MessageID, error) {
pID, err := typeutil.DeserializePulsarMsgID(id)
if err != nil {
return nil, err
}
return &pulsarID{messageID: pID}, nil
}
func (pc *pulsarClient) Close() {
pc.client.Close()
}

View File

@ -3,10 +3,12 @@ package rocksmq
import (
"strconv"
"go.uber.org/zap"
"github.com/zilliztech/milvus-distributed/internal/log"
"github.com/zilliztech/milvus-distributed/internal/msgstream/client"
"github.com/zilliztech/milvus-distributed/internal/util/rocksmq/client/rocksmq"
"go.uber.org/zap"
"github.com/zilliztech/milvus-distributed/internal/util/typeutil"
)
type rmqClient struct {
@ -75,6 +77,14 @@ func (rc *rmqClient) StringToMsgID(id string) (client.MessageID, error) {
return &rmqID{messageID: rID}, nil
}
func (rc *rmqClient) BytesToMsgID(id []byte) (client.MessageID, error) {
rID, err := typeutil.DeserializeRmqID(id)
if err != nil {
return nil, err
}
return &rmqID{messageID: rID}, nil
}
func (rc *rmqClient) Close() {
rc.client.Close()
}

View File

@ -1,9 +1,8 @@
package rocksmq
import (
"strconv"
"github.com/zilliztech/milvus-distributed/internal/util/rocksmq/server/rocksmq"
"github.com/zilliztech/milvus-distributed/internal/util/typeutil"
)
type rmqID struct {
@ -11,5 +10,5 @@ type rmqID struct {
}
func (rid *rmqID) Serialize() []byte {
return []byte(strconv.Itoa((int(rid.messageID))))
return typeutil.SerializeRmqID(rid.messageID)
}

View File

@ -16,7 +16,6 @@ import (
"github.com/zilliztech/milvus-distributed/internal/proto/commonpb"
"github.com/zilliztech/milvus-distributed/internal/proto/internalpb"
"github.com/zilliztech/milvus-distributed/internal/util/trace"
"github.com/zilliztech/milvus-distributed/internal/util/typeutil"
"go.uber.org/zap"
)
@ -338,7 +337,7 @@ func (ms *msgStream) receiveMsg(consumer Consumer) {
tsMsg.SetPosition(&msgstream.MsgPosition{
ChannelName: filepath.Base(msg.Topic()),
//FIXME
MsgID: typeutil.MsgIDToString(msg.ID()),
MsgID: msg.ID().Serialize(),
})
sp, ok := trace.ExtractFromPulsarMsgProperties(tsMsg, msg.Properties())
@ -361,7 +360,7 @@ func (ms *msgStream) Chan() <-chan *MsgPack {
func (ms *msgStream) Seek(mp *internalpb.MsgPosition) error {
if _, ok := ms.consumers[mp.ChannelName]; ok {
consumer := ms.consumers[mp.ChannelName]
messageID, err := ms.client.StringToMsgID(mp.MsgID)
messageID, err := ms.client.BytesToMsgID(mp.MsgID)
if err != nil {
return err
}
@ -418,7 +417,7 @@ func (ms *TtMsgStream) addConsumer(consumer Consumer, channel string) {
ms.consumerChannels = append(ms.consumerChannels, channel)
ms.msgPositions[consumer] = &internalpb.MsgPosition{
ChannelName: channel,
MsgID: "",
MsgID: make([]byte, 0),
Timestamp: ms.lastTimeStamp,
}
stopConsumeChan := make(chan bool)
@ -609,7 +608,7 @@ func (ms *TtMsgStream) findTimeTick(consumer Consumer,
// set msg info to tsMsg
tsMsg.SetPosition(&msgstream.MsgPosition{
ChannelName: filepath.Base(msg.Topic()),
MsgID: typeutil.MsgIDToString(msg.ID()),
MsgID: msg.ID().Serialize(),
})
sp, ok := trace.ExtractFromPulsarMsgProperties(tsMsg, msg.Properties())
@ -698,7 +697,7 @@ func (ms *TtMsgStream) Seek(mp *internalpb.MsgPosition) error {
return errors.New("Consumer is nil")
}
seekMsgID, err := ms.client.StringToMsgID(mp.MsgID)
seekMsgID, err := ms.client.BytesToMsgID(mp.MsgID)
if err != nil {
return err
}
@ -739,7 +738,7 @@ func (ms *TtMsgStream) Seek(mp *internalpb.MsgPosition) error {
if tsMsg.BeginTs() > mp.Timestamp {
tsMsg.SetPosition(&msgstream.MsgPosition{
ChannelName: filepath.Base(msg.Topic()),
MsgID: typeutil.MsgIDToString(msg.ID()),
MsgID: msg.ID().Serialize(),
})
ms.unsolvedBuf[consumer] = append(ms.unsolvedBuf[consumer], tsMsg)
}

View File

@ -347,7 +347,7 @@ func (ms *PulsarMsgStream) receiveMsg(consumer Consumer) {
tsMsg.SetPosition(&msgstream.MsgPosition{
ChannelName: filepath.Base(pulsarMsg.Topic()),
MsgID: typeutil.PulsarMsgIDToString(pulsarMsg.ID()),
MsgID: pulsarMsg.ID().Serialize(),
})
sp, ok := trace.ExtractFromPulsarMsgProperties(tsMsg, pulsarMsg.Properties())
@ -451,7 +451,7 @@ func (ms *PulsarMsgStream) bufMsgPackToChannel() {
tsMsg.SetPosition(&msgstream.MsgPosition{
ChannelName: filepath.Base(pulsarMsg.Topic()),
MsgID: typeutil.PulsarMsgIDToString(pulsarMsg.ID()),
MsgID: pulsarMsg.ID().Serialize(),
})
tsMsgList = append(tsMsgList, tsMsg)
}
@ -471,7 +471,7 @@ func (ms *PulsarMsgStream) Chan() <-chan *MsgPack {
func (ms *PulsarMsgStream) Seek(mp *internalpb.MsgPosition) error {
if _, ok := ms.consumers[mp.ChannelName]; ok {
consumer := ms.consumers[mp.ChannelName]
messageID, err := typeutil.StringToPulsarMsgID(mp.MsgID)
messageID, err := typeutil.DeserializePulsarMsgID(mp.MsgID)
if err != nil {
return err
}
@ -528,7 +528,7 @@ func (ms *PulsarTtMsgStream) addConsumer(consumer Consumer, channel string) {
ms.consumerChannels = append(ms.consumerChannels, channel)
ms.msgPositions[consumer] = &internalpb.MsgPosition{
ChannelName: channel,
MsgID: "",
MsgID: make([]byte, 0),
Timestamp: ms.lastTimeStamp,
}
stopConsumeChan := make(chan bool)
@ -719,7 +719,7 @@ func (ms *PulsarTtMsgStream) findTimeTick(consumer Consumer,
// set pulsar info to tsMsg
tsMsg.SetPosition(&msgstream.MsgPosition{
ChannelName: filepath.Base(pulsarMsg.Topic()),
MsgID: typeutil.PulsarMsgIDToString(pulsarMsg.ID()),
MsgID: pulsarMsg.ID().Serialize(),
})
sp, ok := trace.ExtractFromPulsarMsgProperties(tsMsg, pulsarMsg.Properties())
@ -776,7 +776,7 @@ func (ms *PulsarTtMsgStream) Seek(mp *internalpb.MsgPosition) error {
if consumer == nil {
return errors.New("pulsar is not ready, consumer is nil")
}
seekMsgID, err := typeutil.StringToPulsarMsgID(mp.MsgID)
seekMsgID, err := typeutil.DeserializePulsarMsgID(mp.MsgID)
if err != nil {
return err
}
@ -814,7 +814,7 @@ func (ms *PulsarTtMsgStream) Seek(mp *internalpb.MsgPosition) error {
if tsMsg.BeginTs() > mp.Timestamp {
tsMsg.SetPosition(&msgstream.MsgPosition{
ChannelName: filepath.Base(pulsarMsg.Topic()),
MsgID: typeutil.PulsarMsgIDToString(pulsarMsg.ID()),
MsgID: pulsarMsg.ID().Serialize(),
})
ms.unsolvedBuf[consumer] = append(ms.unsolvedBuf[consumer], tsMsg)
}

View File

@ -11,13 +11,14 @@ import (
"go.uber.org/zap"
"github.com/gogo/protobuf/proto"
"github.com/golang/protobuf/proto"
"github.com/zilliztech/milvus-distributed/internal/log"
"github.com/zilliztech/milvus-distributed/internal/msgstream"
"github.com/zilliztech/milvus-distributed/internal/msgstream/util"
"github.com/zilliztech/milvus-distributed/internal/proto/commonpb"
"github.com/zilliztech/milvus-distributed/internal/proto/internalpb"
client "github.com/zilliztech/milvus-distributed/internal/util/rocksmq/client/rocksmq"
"github.com/zilliztech/milvus-distributed/internal/util/typeutil"
)
type TsMsg = msgstream.TsMsg
@ -300,7 +301,7 @@ func (rms *RmqMsgStream) receiveMsg(consumer Consumer) {
tsMsg.SetPosition(&msgstream.MsgPosition{
ChannelName: filepath.Base(consumer.Topic()),
MsgID: strconv.Itoa(int(rmqMsg.MsgID)),
MsgID: typeutil.SerializeRmqID(rmqMsg.MsgID),
})
msgPack := MsgPack{Msgs: []TsMsg{tsMsg}}
@ -316,7 +317,7 @@ func (rms *RmqMsgStream) Chan() <-chan *msgstream.MsgPack {
func (rms *RmqMsgStream) Seek(mp *msgstream.MsgPosition) error {
if _, ok := rms.consumers[mp.ChannelName]; ok {
consumer := rms.consumers[mp.ChannelName]
msgID, err := strconv.ParseInt(mp.MsgID, 10, 64)
msgID, err := typeutil.DeserializeRmqID(mp.MsgID)
if err != nil {
return err
}
@ -367,7 +368,7 @@ func (rtms *RmqTtMsgStream) addConsumer(consumer Consumer, channel string) {
rtms.unsolvedBuf[consumer] = make([]TsMsg, 0)
rtms.msgPositions[consumer] = &internalpb.MsgPosition{
ChannelName: channel,
MsgID: "",
MsgID: make([]byte, 0),
Timestamp: rtms.lastTimeStamp,
}
rtms.consumerChannels = append(rtms.consumerChannels, channel)
@ -543,7 +544,7 @@ func (rtms *RmqTtMsgStream) findTimeTick(consumer Consumer,
tsMsg.SetPosition(&msgstream.MsgPosition{
ChannelName: filepath.Base(consumer.Topic()),
MsgID: strconv.Itoa(int(rmqMsg.MsgID)),
MsgID: typeutil.SerializeRmqID(rmqMsg.MsgID),
})
rtms.unsolvedMutex.Lock()
@ -589,7 +590,7 @@ func (rtms *RmqTtMsgStream) Seek(mp *msgstream.MsgPosition) error {
if consumer == nil {
return errors.New("RocksMQ is not ready, consumer is nil")
}
seekMsgID, err := strconv.ParseInt(mp.MsgID, 10, 64)
seekMsgID, err := typeutil.DeserializeRmqID(mp.MsgID)
if err != nil {
return err
}
@ -628,7 +629,7 @@ func (rtms *RmqTtMsgStream) Seek(mp *msgstream.MsgPosition) error {
if tsMsg.BeginTs() > mp.Timestamp {
tsMsg.SetPosition(&msgstream.MsgPosition{
ChannelName: filepath.Base(consumer.Topic()),
MsgID: strconv.Itoa(int(rmqMsg.MsgID)),
MsgID: typeutil.SerializeRmqID(rmqMsg.MsgID),
})
rtms.unsolvedBuf[consumer] = append(rtms.unsolvedBuf[consumer], tsMsg)
}

View File

@ -208,7 +208,7 @@ message QueryNodeStats {
message MsgPosition {
string channel_name = 1;
string msgID = 2;
bytes msgID = 2;
string msgGroup = 3;
uint64 timestamp = 4;
}

View File

@ -1801,7 +1801,7 @@ func (m *QueryNodeStats) GetFieldStats() []*FieldStats {
type MsgPosition struct {
ChannelName string `protobuf:"bytes,1,opt,name=channel_name,json=channelName,proto3" json:"channel_name,omitempty"`
MsgID string `protobuf:"bytes,2,opt,name=msgID,proto3" json:"msgID,omitempty"`
MsgID []byte `protobuf:"bytes,2,opt,name=msgID,proto3" json:"msgID,omitempty"`
MsgGroup string `protobuf:"bytes,3,opt,name=msgGroup,proto3" json:"msgGroup,omitempty"`
Timestamp uint64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
@ -1841,11 +1841,11 @@ func (m *MsgPosition) GetChannelName() string {
return ""
}
func (m *MsgPosition) GetMsgID() string {
func (m *MsgPosition) GetMsgID() []byte {
if m != nil {
return m.MsgID
}
return ""
return nil
}
func (m *MsgPosition) GetMsgGroup() string {
@ -1898,102 +1898,102 @@ func init() {
func init() { proto.RegisterFile("internal.proto", fileDescriptor_41f4a519b878ee3b) }
var fileDescriptor_41f4a519b878ee3b = []byte{
// 1539 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x58, 0xcd, 0x6f, 0x1b, 0x45,
0x1b, 0x7f, 0xd7, 0x76, 0x62, 0xfb, 0x59, 0x27, 0x75, 0xb7, 0x5f, 0x9b, 0x36, 0x7d, 0xeb, 0xee,
0xfb, 0x02, 0x81, 0x8a, 0xa4, 0x4a, 0x11, 0x42, 0x5c, 0xda, 0x26, 0xa6, 0xc1, 0x6a, 0x13, 0x85,
0x75, 0x5a, 0x09, 0x2e, 0xab, 0xf1, 0xee, 0xc4, 0x9e, 0x76, 0x3f, 0xdc, 0x99, 0xd9, 0xa6, 0xce,
0x89, 0x03, 0x37, 0x04, 0x07, 0x24, 0xfe, 0x01, 0xfe, 0x00, 0xce, 0x9c, 0x00, 0x71, 0x42, 0xe2,
0x8e, 0x84, 0xc4, 0x5f, 0xc2, 0x09, 0xcd, 0xc7, 0xae, 0x3f, 0xea, 0xa4, 0xa9, 0xa1, 0x42, 0x08,
0x6e, 0x9e, 0xdf, 0xf3, 0xec, 0x33, 0xf3, 0xfc, 0x9e, 0xaf, 0x19, 0xc3, 0x22, 0x89, 0x39, 0xa6,
0x31, 0x0a, 0x57, 0xfb, 0x34, 0xe1, 0x89, 0x75, 0x2e, 0x22, 0xe1, 0x93, 0x94, 0xa9, 0xd5, 0x6a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0x57,
0xde, 0x46, 0x74, 0x97, 0xce, 0xd7, 0x22, 0x6c, 0xf9, 0xd8, 0xd3, 0xcd, 0x6a, 0x08, 0xbc, 0xf1,
0x0e, 0x54, 0xf3, 0x3f, 0xe0, 0xac, 0x3a, 0xd4, 0x5a, 0x31, 0xe1, 0x04, 0x85, 0xe4, 0x90, 0xc4,
0xdd, 0xfa, 0x7f, 0x2c, 0x13, 0xca, 0xef, 0x63, 0x14, 0xf2, 0xde, 0xa0, 0x6e, 0x58, 0x35, 0xa8,
0xdc, 0xee, 0xc4, 0x09, 0x8d, 0x50, 0x58, 0x2f, 0x6c, 0x34, 0x3f, 0xda, 0xe8, 0x12, 0xde, 0x4b,
0x3b, 0x82, 0xe1, 0xb5, 0x43, 0x12, 0x86, 0xe4, 0x90, 0x63, 0xbf, 0xb7, 0xa6, 0x28, 0x78, 0x33,
0x20, 0x8c, 0x53, 0xd2, 0x49, 0x39, 0x0e, 0xd6, 0x32, 0x22, 0xd6, 0x24, 0x2f, 0xf9, 0xb2, 0xdf,
0xe9, 0xcc, 0x4b, 0xe4, 0xc6, 0xef, 0x01, 0x00, 0x00, 0xff, 0xff, 0x54, 0x28, 0x8f, 0xa8, 0xa5,
0x14, 0x00, 0x00,
// 1541 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x58, 0x5d, 0x6f, 0x1b, 0x45,
0x17, 0x7e, 0xd7, 0x76, 0x62, 0xfb, 0xac, 0x93, 0xba, 0xdb, 0xaf, 0x4d, 0x9b, 0xbe, 0x75, 0xf7,
0x7d, 0x81, 0x40, 0x45, 0x52, 0xa5, 0x08, 0x21, 0x6e, 0xda, 0x26, 0xa6, 0xc1, 0x6a, 0x13, 0x85,
0x75, 0x5a, 0x09, 0x6e, 0x56, 0xe3, 0xdd, 0x89, 0x3d, 0xed, 0x7e, 0xb8, 0x33, 0xb3, 0x4d, 0x9d,
0x2b, 0x2e,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, 0x95, 0xae, 0xff, 0x7b, 0x7e, 0xba, 0x32, 0xb7, 0xc2, 0x74, 0x8a,
0x0a, 0x8a, 0xd5, 0x35, 0xfb, 0x24, 0x14, 0x0f, 0x85, 0x75, 0xd5, 0xe5, 0x5c, 0x51, 0xfc, 0xb1,
0x01, 0xe6, 0x48, 0x61, 0x8a, 0x9e, 0xa4, 0x1b, 0x98, 0xea, 0x7b, 0x86, 0x3c, 0x70, 0x4d, 0x8d,
0xc9, 0x23, 0xf7, 0x2c, 0xcc, 0x45, 0xac, 0xab, 0x15, 0xaf, 0xb9, 0x6a, 0x60, 0x5d, 0x84, 0x4a,
0xc4, 0xba, 0xf2, 0x36, 0xa2, 0x4f, 0xe9, 0x7c, 0x2c, 0x64, 0xcb, 0xdb, 0x9e, 0x3e, 0xac, 0x86,
0xc0, 0x1b, 0xef, 0x40, 0x35, 0xff, 0x03, 0xce, 0xaa, 0x43, 0xad, 0x15, 0x13, 0x4e, 0x50, 0x48,
0x0e, 0x49, 0xdc, 0xad, 0xff, 0xc7, 0x32, 0xa1, 0xfc, 0x3e, 0x46, 0x21, 0xef, 0x0d, 0xea, 0x86,
0x55, 0x83, 0xca, 0xed, 0x4e, 0x9c, 0xd0, 0x08, 0x85, 0xf5, 0xc2, 0x46, 0xf3, 0xa3, 0x8d, 0x2e,
0xe1, 0xbd, 0xb4, 0x23, 0x18, 0x5e, 0x3b, 0x24, 0x61, 0x48, 0x0e, 0x39, 0xf6, 0x7b, 0x6b, 0x8a,
0x82, 0x37, 0x03, 0xc2, 0x38, 0x25, 0x9d, 0x94, 0xe3, 0x60, 0x2d, 0x23, 0x62, 0x4d, 0xf2, 0x92,
0x0f, 0xfb, 0x9d, 0xce, 0xbc, 0x44, 0x6e, 0xfc, 0x1e, 0x00, 0x00, 0xff, 0xff, 0xfc, 0xcc, 0x9a,
0xd5, 0xa5, 0x14, 0x00, 0x00,
}

View File

@ -55,6 +55,24 @@ func StringToPulsarMsgID(msgString string) (pulsar.MessageID, error) {
return pulsar.DeserializeMessageID([]byte(msgString))
}
func SerializePulsarMsgID(messageID pulsar.MessageID) []byte {
return messageID.Serialize()
}
func DeserializePulsarMsgID(messageID []byte) (pulsar.MessageID, error) {
return pulsar.DeserializeMessageID(messageID)
}
func SerializeRmqID(messageID int64) []byte {
b := make([]byte, 8)
binary.LittleEndian.PutUint64(b, uint64(messageID))
return b
}
func DeserializeRmqID(messageID []byte) (int64, error) {
return int64(binary.LittleEndian.Uint64(messageID)), nil
}
func SliceRemoveDuplicate(a interface{}) (ret []interface{}) {
if reflect.TypeOf(a).Kind() != reflect.Slice {
fmt.Printf("input is not slice but %T\n", a)