Browse Source

adjust logs

mq-subscribe
chrislu 10 months ago
parent
commit
d6a066495b
  1. 5
      weed/mq/broker/broker_grpc_pub.go

5
weed/mq/broker/broker_grpc_pub.go

@ -101,14 +101,14 @@ func (b *MessageQueueBroker) PublishMessage(stream mq_pb.SeaweedMessaging_Publis
for {
ack, err := localTopicPartition.FollowerStream.Recv()
if err != nil {
glog.Errorf("Error receiving response: %v", err)
glog.Errorf("Error receiving follower ack: %v", err)
return
}
println("recv ack", ack.AckTsNs)
if err := stream.Send(&mq_pb.PublishMessageResponse{
AckSequence: ack.AckTsNs,
}); err != nil {
glog.Errorf("Error sending response %v: %v", ack, err)
glog.Errorf("Error sending publisher ack %v: %v", ack, err)
return
}
}
@ -139,6 +139,7 @@ func (b *MessageQueueBroker) PublishMessage(stream mq_pb.SeaweedMessaging_Publis
localTopicPartition.GrpcConnection.Close()
}
b.localTopicManager.RemoveTopicPartition(t, p)
glog.V(0).Infof("Removed local topic %v partition %v", initMessage.Topic, initMessage.Partition)
}
}()

Loading…
Cancel
Save