add control message to data message

This commit is contained in:
chrislu
2024-03-31 16:35:46 -07:00
parent 546ae87c39
commit 66a878af39
5 changed files with 502 additions and 427 deletions

View File

@@ -140,6 +140,9 @@ func (b *MessageQueueBroker) PublishMessage(stream mq_pb.SeaweedMessaging_Publis
continue
}
// The control message should still be sent to the follower
// to avoid timing issue when ack messages.
// send to the local partition
if err = localTopicPartition.Publish(dataMessage); err != nil {
return fmt.Errorf("topic %v partition %v publish error: %v", initMessage.Topic, initMessage.Partition, err)