codersfarm commented on issue #5380:
URL: https://github.com/apache/rocketmq/issues/5380#issuecomment-1288280929

   Thanks. Main thead is blocked by countDownLatch  until sub thead complete. 
The countDownLatch will goes zero, `countDownLatch.await(timeoutMillis * 4, 
TimeUnit.MILLISECONDS)` execute immediately. The query 
`this.mQClientFactory.getMQClientAPIImpl().queryMessage(addr, requestHeader, 
timeoutMillis * 3` is `timeoutMillis * 3`,and the `countDownLatch.await` is 
`timeoutMillis * 4`.
   
![2022-10-24_090335](https://user-images.githubusercontent.com/38873832/197429810-3535156a-d1cf-4f51-bee6-3e1c22e528b4.png)
   
![2022-10-24_090408](https://user-images.githubusercontent.com/38873832/197429813-d20b5e6d-9416-45df-bb69-629bd973af66.png)
   


-- 
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