You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/07/21 09:59:11 UTC
[GitHub] [rocketmq-client-go] ShannonDing commented on issue #797: consumeMessageCurrently maybe cause data lost if retry queue not Available
ShannonDing commented on issue #797:
URL: https://github.com/apache/rocketmq-client-go/issues/797#issuecomment-1191289532
yes, it seems something error here. remove Messages consumer succ from pq is right. like this.
```
for i := 0; i < len(subMsgs); i++ {
msg := subMsgs[i]
if !pc.sendMessageBack(mq.BrokerName, msg, concurrentCtx.DelayLevelWhenNextConsume) {
msg.ReconsumeTimes += 1
msgBackFailed = append(msgBackFailed, msg)
}else {
msgBackSucc =append(msgBackSucc,msg)
}
}
offset := pq.removeMessage(msgBackSucc...)
if offset >= 0 && !pq.IsDroppd() {
pc.storage.update(mq, int64(offset), true)
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org