mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
fix: panic when schema change (#42727)
issue: #42723 Signed-off-by: chyezh <chyezh@outlook.com>
This commit is contained in:
parent
d0eabf0807
commit
4f5409e1fe
@ -145,6 +145,7 @@ func NewDispatcher(
|
||||
pchannel: pchannel,
|
||||
targets: typeutil.NewConcurrentMap[string, *target](),
|
||||
stream: stream,
|
||||
includeSkipWhenSplit: includeSkipWhenSplit,
|
||||
}
|
||||
|
||||
metrics.NumConsumers.WithLabelValues(paramtable.GetRole(), fmt.Sprint(paramtable.GetNodeID())).Inc()
|
||||
@ -271,7 +272,6 @@ func (d *Dispatcher) work() {
|
||||
log.Debug("skip msg info",
|
||||
zap.String("vchannel", vchannel),
|
||||
zap.String("msgType", msg.Type().String()),
|
||||
zap.Int64("msgID", msg.ID()),
|
||||
zap.Uint64("msgBeginTs", msg.BeginTs()),
|
||||
zap.Uint64("msgEndTs", msg.EndTs()),
|
||||
zap.Uint64("packBeginTs", p.BeginTs),
|
||||
|
||||
@ -127,6 +127,10 @@ type SchemaChangeMessageBody struct {
|
||||
SchemaChangeMessage message.ImmutableSchemaChangeMessageV2
|
||||
}
|
||||
|
||||
func (s *SchemaChangeMessageBody) ID() msgstream.UniqueID {
|
||||
return 0
|
||||
}
|
||||
|
||||
func NewSchemaChangeMessageBody(msg message.ImmutableMessage) (msgstream.TsMsg, error) {
|
||||
schChgMsg, err := message.AsImmutableCollectionSchemaChangeV2(msg)
|
||||
if err != nil {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user