Closed
Bug 1148470
Opened 10 years ago
Closed 10 years ago
Intermittent ratelimit failures
Categories
(Socorro :: Webapp, task)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: peterbe, Assigned: peterbe)
Details
Sometimes, we get a test assertion error on::
for i in range(ratelimit_limit):
self.client.get(url_protected_by_ratelimit)
response = self.client.get(url_protected_by_ratelimit)
eq_(response.status_code, 429)
The only explanation for why this might happen is if some of those self.client.get() calls happen at MM:59 and some happen at MM+1:01 thus spreading the load over two minutes.
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → peterbe
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•10 years ago
|
||
Comment 2•10 years ago
|
||
Commits pushed to master at https://github.com/mozilla/socorro
https://github.com/mozilla/socorro/commit/a693111a9eb88d88a6b4b74bebb80c492323a83a
fixes bug 1148470 - Intermittent ratelimit failures
https://github.com/mozilla/socorro/commit/2b2fc1c1a83005bb8df4679121b27581756eff04
Merge pull request #2693 from peterbe/bug-1148470-intermittent-ratelimit-failures
fixes bug 1148470 - Intermittent ratelimit failures
Updated•10 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•