rocketmq
rocketmq copied to clipboard
NettyRemotingAbstract#invokeAsyncImpl will not release semaphore if invoke timeout.
BUG REPORT
- Please describe the issue you observed:
- What did you do (The steps to reproduce)?

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.
- Please tell us about your environment:
From RocketMQ 4.3.0 to current version.
- Other information (e.g. detailed explanation, logs, related issues, suggestions how to fix, etc):