Bug 1390144 - vendor.js called from paused DC page makes the browser run slowly
Summary: vendor.js called from paused DC page makes the browser run slowly
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: openshift-controller-manager
Version: 3.4.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Michal Fojtik
QA Contact: zhou ying
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-31 10:04 UTC by Xingxing Xia
Modified: 2017-03-08 18:43 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of:
Environment:
Last Closed: 2017-01-18 12:47:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Paused-dc-has-vendor-js-problem (130.77 KB, image/png)
2016-10-31 10:04 UTC, Xingxing Xia
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0066 0 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.4 RPM Release Advisory 2017-01-18 17:23:26 UTC

Description Xingxing Xia 2016-10-31 10:04:04 UTC
Created attachment 1215740 [details]
Paused-dc-has-vendor-js-problem

Description of problem:
On one DC page, pause the DC. Each time when coming to the paused DC page, the browser runs slowly, affecting any browser operations.
If do some click, the browser shows (see att):
                Warning: Unresponsive script
A script on this page may be busy, or it may have stopped responding. You can stop the script now, open the script in the debugger, or let the script continue.

Script: https://<master>:8443/console/scripts/vendor.js:5041


Version-Release number of selected component (if applicable):
openshift 3.4.0.17

How reproducible:
Always

Steps to Reproduce:
1. Create DC
$ oc new-app -f https://raw.githubusercontent.com/openshift/origin/master/examples/sample-app/application-template-stibuild.json

On "database" DC page, pause the DC

2. Try going to that DC page, do some click, e.g. click "Show annotations", scroll down/up mouse.
3.

Actual results:
2. Browser runs slowly and shows up the "Warning: Unresponsive script" modal.

Expected results:
2. Browser should run smoothly.

Additional info:

Comment 1 Samuel Padgett 2016-10-31 15:40:36 UTC
I can't reproduce, but I suspect it might be the same as

https://github.com/openshift/origin/issues/11656

mkargaki -- the problem would cause many updates to the DC, which would trigger watch updates in the web console? If so, it would explain why the web console gets slow. Each watch update will cause an AngularJS digest loop, reevaluating the expressions in view.

Comment 2 Samuel Padgett 2016-10-31 15:42:37 UTC
Assigning to Michail. If this isn't fixed by

https://github.com/openshift/origin/pull/11658

we can send it back to the web console.

Comment 3 Xingxing Xia 2016-11-01 03:30:39 UTC
(In reply to Samuel Padgett from comment #1)
> I can't reproduce

FYI, the "Warning: Unresponsive script" window can be easily reproduced using Firefox (I used v49.0.2). I also tried Chrome. Though I didn't see that warning window with Chrome, I could see Chrome speed became slow too (and could hear the notebook CPU noise shoots up)

Comment 4 Michal Fojtik 2016-11-02 08:39:41 UTC
(In reply to Xingxing Xia from comment #3)
> (In reply to Samuel Padgett from comment #1)
> > I can't reproduce
> 
> FYI, the "Warning: Unresponsive script" window can be easily reproduced
> using Firefox (I used v49.0.2). I also tried Chrome. Though I didn't see
> that warning window with Chrome, I could see Chrome speed became slow too
> (and could hear the notebook CPU noise shoots up)

Can you try to reproduce with https://github.com/openshift/origin/pull/11658?
If it doesn't help, we will move this back to console component.

Comment 5 Xingxing Xia 2016-11-02 10:46:27 UTC
Checked with Origin env (openshift v1.4.0-alpha.0+90d8c62-1000 [devenv-centos7_5294] which includes https://github.com/openshift/origin/pull/11658)
Firefox and Chrome don't become slow and don't have the warning window of vendor.js.
Latest puddle v3.4.0.18 does not include that PR yet. Waiting for next puddle for verification.

Comment 6 Michal Fojtik 2016-11-02 11:23:47 UTC
(In reply to Xingxing Xia from comment #5)
> Checked with Origin env (openshift v1.4.0-alpha.0+90d8c62-1000
> [devenv-centos7_5294] which includes
> https://github.com/openshift/origin/pull/11658)
> Firefox and Chrome don't become slow and don't have the warning window of
> vendor.js.
> Latest puddle v3.4.0.18 does not include that PR yet. Waiting for next
> puddle for verification.

Thanks! Moving this ON_QA so you can set it to verified when latest puddle comes out.

Comment 7 Yadan Pei 2016-11-03 05:52:19 UTC
Checked against v3.4.0.19 with PR 11658 merged,

After Pausing Deployment, the error didn't came any more. Browser works normally

Move to VERIFIED

Comment 9 errata-xmlrpc 2017-01-18 12:47:57 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:0066


Note You need to log in before you can comment on or make changes to this bug.