Closed
Bug 1143714
Opened 10 years ago
Closed 10 years ago
Throttle environment changes
Categories
(Toolkit :: Telemetry, defect)
Toolkit
Telemetry
Tracking
()
RESOLVED
FIXED
mozilla40
Tracking | Status | |
---|---|---|
firefox38 | --- | unaffected |
firefox39 | --- | fixed |
firefox40 | --- | fixed |
People
(Reporter: benjamin, Assigned: gfritzsche)
References
Details
Attachments
(1 file, 1 obsolete file)
18.62 KB,
patch
|
vladan
:
review+
lmandel
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
If a user is disabling multiple addons quickly in a row, or making other changes, we will end up sending very short subsession pings for each change. This is not desirable.
I believe we should throttle environment changes so that they happen at most once every N minutes (suggest N=5). In detail this is how I think it should work:
* when we receive the "first" change notification, immediately reset/start a new subsession.
* Any subsequent change that happens within N minutes should not reset the subsession but should update the environment block of the existing subsession.
Assignee | ||
Updated•10 years ago
|
Assignee | ||
Updated•10 years ago
|
Version: unspecified → Trunk
Assignee | ||
Comment 2•10 years ago
|
||
This throttles the environment changes to only fire if there was no change in the last 5 minutes.
Most of the patch is test updates.
Attachment #8580811 -
Flags: review?(vdjeric)
Comment 3•10 years ago
|
||
Gonna wait for clarifications on the other patch https://bugzilla.mozilla.org/show_bug.cgi?id=1140558#c36
Assignee | ||
Comment 4•10 years ago
|
||
Rebased, part of this stack: https://pastebin.mozilla.org/8827100
Attachment #8580811 -
Attachment is obsolete: true
Attachment #8580811 -
Flags: review?(vdjeric)
Attachment #8583139 -
Flags: review?(vdjeric)
Comment 5•10 years ago
|
||
Comment on attachment 8583139 [details] [diff] [review]
Throttle environment changes
Review of attachment 8583139 [details] [diff] [review]:
-----------------------------------------------------------------
r+ once the test question is addressed
::: toolkit/components/telemetry/tests/unit/test_TelemetryEnvironment.js
@@ +937,5 @@
> + fakeNow(gNow);
> + Preferences.set(PREF_TEST, 3);
> + yield deferred.promise;
> +
> + Assert.equal(changeCount, 2);
will this be 2 because of the throttling happening in _onEnvironmentChange or in _checkForAddonChanges? i.e. which message gets printed to the console
Attachment #8583139 -
Flags: review?(vdjeric) → review+
Assignee | ||
Comment 6•10 years ago
|
||
(In reply to Vladan Djeric (:vladan) -- please needinfo! from comment #5)
> ::: toolkit/components/telemetry/tests/unit/test_TelemetryEnvironment.js
> @@ +937,5 @@
> > + fakeNow(gNow);
> > + Preferences.set(PREF_TEST, 3);
> > + yield deferred.promise;
> > +
> > + Assert.equal(changeCount, 2);
>
> will this be 2 because of the throttling happening in _onEnvironmentChange
> or in _checkForAddonChanges? i.e. which message gets printed to the console
Because of the throttling in _onEnvironmentChange:
> TelemetryEnvironment::_onEnvironmentChange - throttling changes, now: Mon Feb 01 2010 13:41:00 GMT+0100 (CET), last change: Mon Feb 01 2010 13:40:00 GMT+0100 (CET)
Pref changes are not discarded for pending addon updates, only the addon/plugin/experiment changes go through there.
Assignee | ||
Comment 7•10 years ago
|
||
Backed out for shutdown crashes:
https://hg.mozilla.org/integration/fx-team/rev/1d92657d70e5
Flags: needinfo?(gfritzsche)
Assignee | ||
Comment 10•10 years ago
|
||
This and everything else from that push is backed out in https://hg.mozilla.org/integration/fx-team/rev/6901a267f856 for Windows PGO XPCShell failures:
https://treeherder.mozilla.org/logviewer.html#?job_id=2520751&repo=fx-team
Flags: needinfo?(gfritzsche)
Assignee | ||
Comment 13•10 years ago
|
||
fx-team push: https://treeherder.mozilla.org/#/jobs?repo=fx-team&revision=cda9f6c087a6
pgo try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=9cb8ce2e0436
previous full try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=256df1f0f2f6
https://hg.mozilla.org/integration/fx-team/rev/911d0d7068d6
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox40:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
Updated•10 years ago
|
status-firefox38:
--- → unaffected
status-firefox39:
--- → affected
Comment 15•10 years ago
|
||
Comment on attachment 8583139 [details] [diff] [review]
Throttle environment changes
Approved for Aurora. For approval request see bug 1139460 comment 42. For approval comments see bug 1139460 comment 43.
Attachment #8583139 -
Flags: approval-mozilla-aurora+
Assignee | ||
Comment 16•10 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•