未验证 提交 a9ae546b 编写于 作者: youlixishia's avatar youlixishia 提交者: GitHub

Merge pull request #2437 from maixiaohai/DLQ_perm

[ISSUE #2436] DLQ topic default perm change
......@@ -193,7 +193,8 @@ public class SendMessageProcessor extends AbstractSendMessageProcessor implement
topicConfig = this.brokerController.getTopicConfigManager().createTopicInSendMessageBackMethod(newTopic,
DLQ_NUMS_PER_GROUP,
PermName.PERM_WRITE, 0);
PermName.PERM_WRITE | PermName.PERM_READ, 0);
if (null == topicConfig) {
response.setCode(ResponseCode.SYSTEM_ERROR);
response.setRemark("topic[" + newTopic + "] not exist");
......@@ -357,7 +358,7 @@ public class SendMessageProcessor extends AbstractSendMessageProcessor implement
int queueIdInt = ThreadLocalRandom.current().nextInt(99999999) % DLQ_NUMS_PER_GROUP;
topicConfig = this.brokerController.getTopicConfigManager().createTopicInSendMessageBackMethod(newTopic,
DLQ_NUMS_PER_GROUP,
PermName.PERM_WRITE, 0
PermName.PERM_WRITE | PermName.PERM_READ, 0
);
msg.setTopic(newTopic);
msg.setQueueId(queueIdInt);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册