• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Unleash / unleash-client-java / #1510

08 Nov 2023 10:19AM UTC coverage: 85.708% (+0.2%) from 85.519%
#1510

push

web-flow
feat: Obey HTTP Status codes from upstream. (#221)

* feat: Obey HTTP Status codes from upstream.

Previously we have treated any status code as equal. This PR changes
that to allow 429 and 50x status codes to incrementally increase the
interval between each time we call. And then gradually decrease once it
starts succeeding.

With 401,403 and 404 we immediately backoff to at minimum 300 seconds of interval as well as log at error level that we were not authorized or the URL did not exist.


Co-authored-by: Gastón Fournier <gaston@getunleash.io>

105 of 112 new or added lines in 7 files covered. (93.75%)

4 existing lines in 1 file now uncovered.

1949 of 2274 relevant lines covered (85.71%)

0.86 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/io/getunleash/metric/OkHttpMetricsSender.java


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc