We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
user set setDelayLevelWhenNextConsume ,which is delayLevel
private void sendMessageBack(MessageExt msg, int delayLevel, final String brokerName, final MessageQueue mq) throws RemotingException, MQBrokerException, InterruptedException, MQClientException { boolean needRetry = true; try { if (brokerName != null && brokerName.startsWith(MixAll.LOGICAL_QUEUE_MOCK_BROKER_PREFIX) || mq != null && mq.getBrokerName().startsWith(MixAll.LOGICAL_QUEUE_MOCK_BROKER_PREFIX)) { needRetry = false; sendMessageBackAsNormalMessage(msg); } else { String brokerAddr = (null != brokerName) ? this.mQClientFactory.findBrokerAddressInPublish(brokerName) : RemotingHelper.parseSocketAddressAddr(msg.getStoreHost()); this.mQClientFactory.getMQClientAPIImpl().consumerSendMessageBack(brokerAddr, brokerName, msg, this.defaultMQPushConsumer.getConsumerGroup(), delayLevel, 5000, getMaxReconsumeTimes()); } } catch (Throwable t) { log.error("Failed to send message back, consumerGroup={}, brokerName={}, mq={}, message={}", this.defaultMQPushConsumer.getConsumerGroup(), brokerName, mq, msg, t); if (needRetry) { sendMessageBackAsNormalMessage(msg); } } finally { msg.setTopic(NamespaceUtil.withoutNamespace(msg.getTopic(), this.defaultMQPushConsumer.getNamespace())); } }
when send as normal, use the delayLevel user provided
no
No response
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Is Your Feature Request Related to a Problem?
user set setDelayLevelWhenNextConsume ,which is delayLevel
Describe the Solution You'd Like
when send as normal, use the delayLevel user provided
Describe Alternatives You've Considered
no
Additional Context
No response
The text was updated successfully, but these errors were encountered: