Skip to content

Commit

Permalink
[ISSUE alibaba#1901] Fix bug in sending request/reply message using b…
Browse files Browse the repository at this point in the history
…roker 4.7.0

fix(broker):fix bug sending request message using broker 4.7.0 (alibaba#1902)
  • Loading branch information
RongtongJin authored Apr 3, 2020
1 parent 0a9822e commit 276536e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,10 @@ private CompletableFuture<RemotingCommand> asyncSendMessage(ChannelHandlerContex
msgInner.setBornHost(ctx.channel().remoteAddress());
msgInner.setStoreHost(this.getStoreHost());
msgInner.setReconsumeTimes(requestHeader.getReconsumeTimes() == null ? 0 : requestHeader.getReconsumeTimes());
String clusterName = this.brokerController.getBrokerConfig().getBrokerClusterName();
MessageAccessor.putProperty(msgInner, MessageConst.PROPERTY_CLUSTER, clusterName);
msgInner.setPropertiesString(MessageDecoder.messageProperties2String(msgInner.getProperties()));

CompletableFuture<PutMessageResult> putMessageResult = null;
Map<String, String> origProps = MessageDecoder.string2messageProperties(requestHeader.getProperties());
String transFlag = origProps.get(MessageConst.PROPERTY_TRANSACTION_PREPARED);
Expand Down

0 comments on commit 276536e

Please sign in to comment.