intuit / Tank

Tank is a downloadable application that can be used to load test websites
Eclipse Public License 1.0
84 stars 61 forks source link

[SRE-31553] Fix APIMonitor Retry Loop Bug #331

Closed Zakaria-Kofiro closed 4 months ago

Zakaria-Kofiro commented 4 months ago

The placement of the Thread.sleep within the try-catch block instead of in a finally block of the APIMonitor run() method leads to a retry loop whenever any exception is thrown - resulting in an explosion of calls from the affected agent to the controller, spiking CPU and memory for both. This fixes this bug by moving the sleep to where it needs to be.

Please make sure these check boxes are checked before submitting

PR review process