Description of problem:
There is an intermittent issue where the OpenShift Console will re-evaluate and update elements when nothing has changed locally. It rarely happens, but when it does it spams the console, in dev mode, with details about feature availability.
This could potentially lead to a performance issue.
Version-Release number of selected component (if applicable):
OpenShift Console 4.4
Low, it doesn't seem to happen on all clusters. But once it happens it's always happening it seems.
Steps to Reproduce:
1. Login to a cluster that has the issue
2. Open the developer console
See the constant echoing of the features.
Only when changes happen should it echo the features and re-render the app.
Sam believes it is related to the watcher on API Service: https://github.com/spadgett/console/blob/e57533e6891bf9b28753550de18dac93c0e01192/frontend/public/actions/k8s.ts#L281-L304
The Cluster (for the next day or so) that is having the issue is:
Can you tell me how can I verify this bug? Didn't figure out a way to verify, sorry
Can you tell me how to verify the bug?
This ticket came to be when Sam and I were discussing issues around how the cluster would constantly retrigger itself. I am not sure how to test this as it was a hugely intermittent issue - we went several weeks in between conversations about it before it showed up again.
Testing it via the UI might actually be quite difficult as well, as the main tell was a console spam in dev-mode. Not sure if Sam has a better stance... the code change to make this "fixed" was a minor diff change to the update logic so it didn't retrigger on every update; even when there are not changes to propagate.
Since the cluster that was having the issue is now gone, I am unsure if we can effectively test this.
There was a minor flicker in the UI when the app reloaded the feature flags (as a result of the update logic triggering), but it's hardly a test-case I can provide with any detail.
In my opinion, I think just looking at any specific Pipeline Details Page and for a brief moment or two to see if the UI flickers is our best test-case. If it does not than we can assume it's fixed. If it happens again, we'll just open another bug as it's really an intermittent issue.
Thank you so much Andrew,
I checked Pipeline Details page in developer console & admin console, even after we triggered pipeline runs. Also I monitored some other pages as well I don't see flickers happen.
Will move to VERIFIED
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.