Skip to content

Commit

Permalink
enhance: fix skip msg log with empty position info (milvus-io#36626)
Browse files Browse the repository at this point in the history
All skiped message position info was nil, should print BeginTs or
MessageID instead.
relate: milvus-io#36569

Signed-off-by: aoiasd <[email protected]>
  • Loading branch information
aoiasd authored Oct 9, 2024
1 parent addced2 commit 2c3a8b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/mq/msgstream/mq_msgstream.go
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,8 @@ func (ms *MqTtMsgStream) Seek(ctx context.Context, msgPositions []*MsgPosition,
zap.Int64("source", tsMsg.SourceID()),
zap.String("type", tsMsg.Type().String()),
zap.Int("size", tsMsg.Size()),
zap.Any("position", tsMsg.Position()),
zap.Uint64("msgTs", tsMsg.BeginTs()),
zap.Uint64("posTs", mp.GetTimestamp()),
)
}
}
Expand Down

0 comments on commit 2c3a8b7

Please sign in to comment.