mirror of
https://github.com/apache/rocketmq.git
synced 2026-10-29 17:25:35 +08:00
* Update .travis.yml
Depracated MODERATE noisy mail for dev@rocketmq.apache.org. Still Failing: apache/rocketmq#5670 (5.0.0-alpha-static-topic - 5ebc327) @dongeforever
* Updated Notice file to 2022 (#3735)
* Unnecessary_null_check_before_method_call
Co-authored-by: von gosling <vongosling@apache.org>
Co-authored-by: ZhangJian He <shoothzj@gmail.com>
Co-authored-by: tigerweili <tigerweili@tencent.com>
This commit is contained in:
co-authored by
von gosling
ZhangJian He
tigerweili
parent
14042fa96a
commit
7973f9ee5e
@@ -314,7 +314,7 @@ public class SendMessageProcessor extends AbstractSendMessageProcessor implement
|
||||
|
||||
CompletableFuture<PutMessageResult> putMessageResult = null;
|
||||
String transFlag = origProps.get(MessageConst.PROPERTY_TRANSACTION_PREPARED);
|
||||
if (transFlag != null && Boolean.parseBoolean(transFlag)) {
|
||||
if (Boolean.parseBoolean(transFlag)) {
|
||||
if (this.brokerController.getBrokerConfig().isRejectTransactionMessage()) {
|
||||
response.setCode(ResponseCode.NO_PERMISSION);
|
||||
response.setRemark(
|
||||
@@ -445,7 +445,7 @@ public class SendMessageProcessor extends AbstractSendMessageProcessor implement
|
||||
PutMessageResult putMessageResult = null;
|
||||
Map<String, String> oriProps = MessageDecoder.string2messageProperties(requestHeader.getProperties());
|
||||
String traFlag = oriProps.get(MessageConst.PROPERTY_TRANSACTION_PREPARED);
|
||||
if (traFlag != null && Boolean.parseBoolean(traFlag)
|
||||
if (Boolean.parseBoolean(traFlag)
|
||||
&& !(msgInner.getReconsumeTimes() > 0 && msgInner.getDelayTimeLevel() > 0)) { //For client under version 4.6.1
|
||||
if (this.brokerController.getBrokerConfig().isRejectTransactionMessage()) {
|
||||
response.setCode(ResponseCode.NO_PERMISSION);
|
||||
|
||||
Reference in New Issue
Block a user