rocketmq icon indicating copy to clipboard operation
rocketmq copied to clipboard

NettyRemotingAbstract#invokeAsyncImpl will not release semaphore if invoke timeout.

Open ymwneu opened this issue 7 years ago • 0 comments

BUG REPORT

  1. Please describe the issue you observed:
  • What did you do (The steps to reproduce)? image

If NettyRemotingAbstract#invokeAsyncImpl invoke timeout, the semaphoreAsync will not be released. In extreme case, it will occupy all semaphore and cause all asynchronous request send failed. In addition, if timeout, the program should throw RemotingTimeoutException instead of RemotingTooMuchRequestException.

  • What did you expect to see?

Semaphore be released if timeout.

  • What did you see instead?

Semaphore not be released, if timeout.

  1. Please tell us about your environment:

From RocketMQ 4.3.0 to current version.

  1. Other information (e.g. detailed explanation, logs, related issues, suggestions how to fix, etc):

ymwneu avatar Dec 13 '18 09:12 ymwneu