ni-ze commented on issue #3933:
URL: https://github.com/apache/rocketmq/issues/3933#issuecomment-1061341593


   > I reproduce this bug, the root cause is that producer is blocked when it 
receive a reply message . The blocking code is as fellow: 
![image](https://user-images.githubusercontent.com/31175234/156995063-bbc550e3-1c30-4719-8b1a-c2e3125f9f78.png)
 There are relationships with bornHost and storeHost of reply message.
   > 
   > ```
   > bornHost=/127.0.0.1:59653, storeHost=/127.0.0.1:10911
   > ```
   > 
   > will be blocked.
   > 
   > ```
   > bornHost=127.0.0.1:59653, storeHost=127.0.0.1:10911
   > ```
   > 
   > will not.
   
   ```xml
   Consumer Started.
   ConsumeMessageThread_please_rename_unique_group_name_1 Receive New Messages: 
[MessageExt [brokerName=broker-a, queueId=0, storeSize=291, queueOffset=1, 
sysFlag=0, bornTimestamp=1646706163408, bornHost=/127.0.0.1:64310, 
storeTimestamp=1646706163423, storeHost=/127.0.0.1:10911, 
msgId=7F00000100002A9F000000000000ABF8, commitLogOffset=44024, 
bodyCRC=198614610, reconsumeTimes=0, preparedTransactionOffset=0, 
toString()=Message{topic='RequestTopic', flag=0, properties={MIN_OFFSET=0, 
REPLY_TO_CLIENT=30.250.200.36@78996#328339814781694, MAX_OFFSET=2, 
CONSUME_START_TIME=1646706163449, UNIQ_KEY=1EFAC824349418B4AAC22646A2CF0000, 
CLUSTER=DefaultCluster, TTL=3000, 
CORRELATION_ID=adabf809-ba1a-4187-a6ba-2bbba81439a2}, body=[72, 101, 108, 108, 
111, 32, 119, 111, 114, 108, 100], transactionId='null'}]] 
   handle message: MessageExt [brokerName=broker-a, queueId=0, storeSize=291, 
queueOffset=1, sysFlag=0, bornTimestamp=1646706163408, 
bornHost=/127.0.0.1:64310, storeTimestamp=1646706163423, 
storeHost=/127.0.0.1:10911, msgId=7F00000100002A9F000000000000ABF8, 
commitLogOffset=44024, bodyCRC=198614610, reconsumeTimes=0, 
preparedTransactionOffset=0, toString()=Message{topic='RequestTopic', flag=0, 
properties={MIN_OFFSET=0, REPLY_TO_CLIENT=30.250.200.36@78996#328339814781694, 
MAX_OFFSET=2, CONSUME_START_TIME=1646706163449, 
UNIQ_KEY=1EFAC824349418B4AAC22646A2CF0000, CLUSTER=DefaultCluster, TTL=3000, 
CORRELATION_ID=adabf809-ba1a-4187-a6ba-2bbba81439a2}, body=[72, 101, 108, 108, 
111, 32, 119, 111, 114, 108, 100], transactionId='null'}] 
   reply to 30.250.200.36@78996#328339814781694 , SendResult 
[sendStatus=SEND_OK, msgId=1EFAC824348718B4AAC22646A3070000, 
offsetMsgId=7F00000100002A9F000000000000AD1B, messageQueue=MessageQueue 
[topic=DefaultCluster_REPLY_TOPIC, brokerName=broker-a, queueId=0], 
queueOffset=14] 
   
   ```
   I change my location from home to  work place, then I can not reproduce this 
block. example seems work right.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to