Issue
Database deadlocks occur in the pr_operators table when applying customizations to the table’s activity logic. These deadlocks might also occur when using the model operator in an OAuth2 configuration.
The following symptoms occur as part of this issue:
-
Users are unable to access their production environments during updates and migration.
-
Deadlocks occur in the pr_operators table.
-
Requestors (operators who are logging) experience abnormal spikes.
-
High volume of inserts in the pr_operators table.
-
Nodes become unhealthy and go down.
-
Spikes in the CPU usage.
Root Cause
The database deadlocks occur in the pr_operators table as customizations to the table’s activity logic overrides the DSS operator/stateless/skipDBSave. For example, when an authentication API calls a custom CustomAuthentication activity, the activity updates the Operator page, which invokes the clearLLCache declare trigger and saves the Data-Admin-Operator-ID record on every call. At high API volumes, this saturates the pySASIncrementalIndexer queue processor and causes system latency.
Solution
The skipDBsave DSS is set to False by default. A bug has been raised to set the DSS settings to True by default in the upcoming release. This change will resolve the database spikes in the pr_operators table when using the model operator in the OAuth2 configuration. This Known Issue document will be updated with release details when the fix for this issue is available.
Workaround
As a workaround, you can set the DSS settings to True. However, if customizations override the skipDBsave setting, changing the DSS value to true does not resolve the issue; update the custom activity logic instead.
As a best practice, avoid making customizations to the pr_operators table.