-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Labels
Description
Software Versions
OS: Linux
JVM: Oracle Corporation 1.8.0_161 AMD64
Version: 4.8.0
Expected behavior
When a Java-tron API call reaches the rate limit, it should immediately return to inform the client that it has been rate-limited, rather than waiting for an extended period.
Actual behavior
When the Java-tron API call reaches the rate limit, it will enter a queue waiting state and will not return until the items are processed. This will cause the request delay time to be uncontrollable, and the delay time may be very long in high-concurrency scenarios.
Frequency
100% appearance
Steps to reproduce the behavior
- Limit the rate of a certain interface. You can set a smaller threshold to facilitate problem reproduction, as shown below.

- After the first request, the system will enter the rate limit state. When the second request is made, the result will not be returned for a rather long time, as shown below.

Metadata
Metadata
Assignees
Labels
Type
Projects
Status
To Do