rocketmq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zho...@apache.org
Subject [rocketmq-spring] branch master updated: [ISSUE #365] WAIT_STORE_MSG_OK property parsing error (#388)
Date Tue, 14 Sep 2021 11:28:51 GMT
This is an automated email from the ASF dual-hosted git repository.

zhoubo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/rocketmq-spring.git


The following commit(s) were added to refs/heads/master by this push:
     new d1a4b54  [ISSUE #365] WAIT_STORE_MSG_OK property parsing error (#388)
d1a4b54 is described below

commit d1a4b546be4664b75c1e9571c5f3e4d3793f0b4c
Author: rongtong <jinrongtong5@163.com>
AuthorDate: Tue Sep 14 19:28:46 2021 +0800

    [ISSUE #365] WAIT_STORE_MSG_OK property parsing error (#388)
    
    * [ISSUE #365]The response results of rocketmq template and defaultmq producer send status
are inconsistent
    
    * [ISSUE #365] Remove useless code
---
 .../src/main/java/org/apache/rocketmq/spring/support/RocketMQUtil.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rocketmq-spring-boot/src/main/java/org/apache/rocketmq/spring/support/RocketMQUtil.java
b/rocketmq-spring-boot/src/main/java/org/apache/rocketmq/spring/support/RocketMQUtil.java
index e8fbc94..dc65110 100644
--- a/rocketmq-spring-boot/src/main/java/org/apache/rocketmq/spring/support/RocketMQUtil.java
+++ b/rocketmq-spring-boot/src/main/java/org/apache/rocketmq/spring/support/RocketMQUtil.java
@@ -196,7 +196,7 @@ public class RocketMQUtil {
             }
             rocketMsg.setFlag(flag);
             Object waitStoreMsgOkObj = headers.getOrDefault("WAIT_STORE_MSG_OK", "true");
-            rocketMsg.setWaitStoreMsgOK(Boolean.TRUE.equals(waitStoreMsgOkObj));
+            rocketMsg.setWaitStoreMsgOK(!waitStoreMsgOkObj.equals("false"));
             headers.entrySet().stream()
                 .filter(entry -> !Objects.equals(entry.getKey(), "FLAG")
                     && !Objects.equals(entry.getKey(), "WAIT_STORE_MSG_OK")) // exclude
"FLAG", "WAIT_STORE_MSG_OK"

Mime
View raw message