Closed Bug 1891788 Opened 1 month ago Closed 22 days ago

Local dumps from production can replace downloads from stage

Categories

(Firefox :: Remote Settings Client, defect)

defect

Tracking

()

RESOLVED FIXED
127 Branch
Tracking Status
firefox127 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

Details

Attachments

(2 files)

Sometimes dumps can replace the staging data - for instance, if staging is older than the dump, then the newer timestamp of the dump will take priority over that of the staging data.

This isn't an issue a lot of the time, but for attachments it means that we try and load the attachment data with the production ids from the staging server, which isn't going to work.

STR

  1. Set up a Firefox nightly build, with remote settings devtools.
  2. Ensure that the search-config-icons collection on stage is older than that of production.
  3. Set the preference services.settings.loglevel to all and restart.
  4. Open the devtools interface and choose to clear local data on main-preview/search-config-icons
  5. Restart Nightly, and open the browser console.
  6. Search the browser console for search-config-icons. At this stage, you'll find messages like:
services.settings: Instantiated new client main-preview/search-config-icons
services.settings: main-preview/search-config-icons Local DB is empty, pull data from server
services.settings: main-preview/search-config-icons Fetch changes from server (expected=1707263524486, since=undefined)
services.settings: main-preview/search-config-icons local timestamp: null, remote: 1707263524486
 services.settings: main-preview/search-config-icons 0 to delete, 43 to insert
  1. Restart nightly again.
  2. Search the browser console again.

Actual Results

services.settings: Instantiated new client main-preview/search-config-icons
services.settings: main-preview/search-config-icons Local DB is stale (1707263524486), using dump instead (1707330724491)
services.settings: main-preview/search-config-icons try to restore dump
services.settings: main-preview/search-config-icons imported 43 records from dump
Assignee: nobody → standard8
Status: NEW → ASSIGNED
Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ba874af8581d
Create a head file for services/settings/test/unit/. r=leplatrem
https://hg.mozilla.org/integration/autoland/rev/650dda918743
Don't load the remote settings dump when it is newer if we are not on production. r=leplatrem
Status: ASSIGNED → RESOLVED
Closed: 22 days ago
Resolution: --- → FIXED
Target Milestone: --- → 127 Branch
Regressions: 1894227
Blocks: 1894272
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: