Skip to content

Commit 8cfa33a

Browse files
authored
[ISSUE apache#1139] should use BrokerName for send back since the StoreHost in msg may not reachable in cloud env (apache#1138)
1 parent 0422997 commit 8cfa33a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

consumer/push_consumer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1376,7 +1376,7 @@ func (pc *pushConsumer) checkReconsumeTimes(msgs []*primitive.MessageExt) bool {
13761376
if msg.ReconsumeTimes > maxReconsumeTimes {
13771377
rlog.Warning(fmt.Sprintf("msg will be send to retry topic due to ReconsumeTimes > %d, \n", maxReconsumeTimes), nil)
13781378
msg.WithProperty("RECONSUME_TIME", strconv.Itoa(int(msg.ReconsumeTimes)))
1379-
if !pc.sendMessageBack("", msg, -1) {
1379+
if !pc.sendMessageBack(msg.Queue.BrokerName, msg, -1) {
13801380
suspend = true
13811381
msg.ReconsumeTimes += 1
13821382
}

0 commit comments

Comments
 (0)