brave / brave-browser

Brave browser for Android, iOS, Linux, macOS, Windows.
https://brave.com
Mozilla Public License 2.0
18k stars 2.36k forks source link

Subdivision is fetched too frequently #42680

Closed btlechowski closed 1 hour ago

btlechowski commented 7 hours ago

Description

Subdivision should be fetched on browser start and every 0.5-1.5 days. It is fetched every hour.

Steps to reproduce

  1. Clean profile
  2. Enable rewards
  3. Check subdivision fetch frequency

Actual result

Subdivision is fetched on browser start and every hour.

    Line  124: [36703:36703:1204/161143.720835:VERBOSE1:subdivision_url_request.cc(104)] Fetch subdivision in 0 hours, 56 minutes, 37 seconds at 17:08:21.043
    Line 1931: [36703:36703:1204/170821.773279:VERBOSE1:subdivision_url_request.cc(104)] Fetch subdivision in 0 hours, 33 minutes, 18 seconds at 17:41:39.998
    Line 2077: [36703:36703:1204/174140.248288:VERBOSE1:subdivision_url_request.cc(104)] Fetch subdivision in 1 hour, 12 minutes, 2 seconds at 18:53:41.778

Expected result

Subdivision should be fetched on browser start and every 0.5-1.5 days.

Reproduces how often

Easily reproduced

Brave version (brave://version info)

Brave 1.75.66 Chromium: 131.0.6778.85 (Official Build) nightly (64-bit)
Revision 14bc24f2abfa4a9106607039dae171771a231d80
OS Linux

cc @tmancey @aseren @iambrianfung

tmancey commented 6 hours ago

@btlechowski bug affects all backoff timers as listed in previous issue.