Bug 1833217

Summary: Monitoring: Silence Form: "Can't perform a React state update on an unmounted component" warning
Product: OpenShift Container Platform Reporter: Andrew Pickering <anpicker>
Component: Management ConsoleAssignee: Andrew Pickering <anpicker>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.5CC: aos-bugs, jokerman, yapei
Target Milestone: ---   
Target Release: 4.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-07-13 17:36:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Andrew Pickering 2020-05-08 05:29:52 UTC
After saving the silence, you get the following JavaScript warning.

Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in a useEffect cleanup function.

Comment 3 Yadan Pei 2020-05-09 07:01:54 UTC
1. Confirm 4.5.0-0.nightly-2020-05-09-003922 has included bug fix
# oc adm release info registry.svc.ci.openshift.org/ocp/release:4.5.0-0.nightly-2020-05-09-003922 --pullspecs | grep console
  console                                        quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:b4b07b50a9b4ac8695c445d76df6e8bbbfd8a0972988e87db2955a50ed9be90a
  console-operator                               quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:3e7658b9eed326c33e271547c4c3622a8b505b04502014bacc9cedb71e7edbb0
# oc image info quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:b4b07b50a9b4ac8695c445d76df6e8bbbfd8a0972988e87db2955a50ed9be90a | grep commit
             io.openshift.build.commit.id=b818091c904b3e0dc27290142a982e36ed36222a
             io.openshift.build.commit.url=https://github.com/openshift/console/commit/b818091c904b3e0dc27290142a982e36ed36222a
# git log b818091c904b3e0dc27290142a982e36ed36222a | grep '#5357'
    Merge pull request #5357 from kyoto/monitoring-silence-set-state-warnings

2. Go to silence form page /monitoring/silences/~new, press F12 to open developer console
3. Toggle changes such as Start Immediately, add Labels and other info
4. Save the changes by click at 'Silence' button, the error in bug description doesn't appear

Moving to VERIFIED

Comment 4 Yadan Pei 2020-05-09 07:02:33 UTC
typo in comment 3, it should be 
# git log b818091c904b3e0dc27290142a982e36ed36222a | grep '#5356'
    Merge pull request #5356 from kyoto/monitoring-silence-save-warning

Comment 5 errata-xmlrpc 2020-07-13 17:36:10 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-2020:2409