Closed Bug 843762 Opened 11 years ago Closed 11 years ago

Settings can read DB multiple times on startup, again

Categories

(Firefox OS Graveyard :: Gaia::Settings, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(blocking-b2g:tef+, b2g18 fixed, b2g18-v1.0.0 wontfix, b2g18-v1.0.1 fixed)

RESOLVED FIXED
blocking-b2g tef+
Tracking Status
b2g18 --- fixed
b2g18-v1.0.0 --- wontfix
b2g18-v1.0.1 --- fixed

People

(Reporter: cjones, Assigned: cjones)

References

Details

(Whiteboard: [target 28/2] QARegressExclude, [qa-])

Attachments

(1 file)

Bug 840322 pretty carefully set things up so there could only be one pending request for the settings DB, but attachment 715842 [details] [diff] [review] regressed this.

We now consistently see two getAll() requests, which is going to contribute the problem in bug 842215 and regress memory usage as well.
Attached patch Fix regressionSplinter Review
Assignee: nobody → jones.chris.g
Attachment #716711 - Flags: review?(timdream)
Attachment #716711 - Flags: review?(etienne)
Attachment #716711 - Flags: review?(alive)
Attachment #716711 - Flags: review?(21)
blocking-b2g: --- → tef?
Comment on attachment 716711 [details] [diff] [review]
Fix regression

I tried the same way to prevent multiple query on bug 842215, and verified it works.
Attachment #716711 - Flags: review+
Attachment #716711 - Flags: review?(timdream)
Attachment #716711 - Flags: review?(kaze)
Attachment #716711 - Flags: review?(etienne)
Attachment #716711 - Flags: review?(alive)
Attachment #716711 - Flags: review?(21)
(You'll want to grab this one, if you haven't already.)
(In reply to Tim Guan-tin Chien [:timdream] (MoCo-TPE) from comment #3)
> CC'ing offender :-/

BTW, no worries; the invariant maintained by the original code was fairly subtle (sorry! my fault), and we don't have any performance tests that would have caught regressions from violating it.
blocking-b2g: tef? → tef+
Whiteboard: [target 28/2]
Can this land in preparation for uplift?
(There was a small typo in the commit.  [sic])
Flags: in-moztrap-
Whiteboard: [target 28/2] → [target 28/2] QARegressExclude
Cannot verify, need steps to blackbox test this issue.
Whiteboard: [target 28/2] QARegressExclude → [target 28/2] QARegressExclude, [qa-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: