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)
Firefox
Remote Settings Client
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
- Set up a Firefox nightly build, with remote settings devtools.
- Ensure that the
search-config-icons
collection on stage is older than that of production. - Set the preference
services.settings.loglevel
toall
and restart. - Open the devtools interface and choose to clear local data on
main-preview/search-config-icons
- Restart Nightly, and open the browser console.
- 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
- Restart nightly again.
- 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 | ||
Comment 1•1 month ago
|
||
Updated•1 month ago
|
Assignee: nobody → standard8
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•28 days ago
|
||
Also switch tests to add_setup.
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
Comment 4•22 days ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/ba874af8581d
https://hg.mozilla.org/mozilla-central/rev/650dda918743
Status: ASSIGNED → RESOLVED
Closed: 22 days ago
status-firefox127:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 127 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•