Closed flauschie closed 4 months ago
Ok, we found the root cause.
When migrating to RDS MySQL 8, we added XA_RECOVER_ADMIN privileges to the user.
However, somewhere along the way, this permission was removed. We still wonder how.
Anyway, after having granted the permission again, the error is gone.
As an additional info for those who may stumble across the same issue:
Apparently, AWS removed the user privilege ( XA_RECOVER_ADMIN ) during an RDS maintenance window - without any notice that is ...
XA_RECOVER_ADMIN is required for JTA transaction recovery.
The errors in our various instances coincided with the AWS maintenance windows in the different regions.
Describe the bug
The issue started out of the blue a couple of days ago (May 5th).
The NodeMonitoringConnectionPlugin produces periodic exception logs in 2 of our 6 production instances on AWS. According to the stacktrace it relates to the HA plugin of the AWS MySQL driver. The issue is periodically due to Wildfly's JTA Recovery procedure.
The application execution is NOT affected by this as far as we can tell.
The logging started almost concurrently on all connected microservices (20 of them). A restart of the application servers made no difference. We did not restart RDS MySQL because there was no reason to do so so far.
Each service pod is consistently producing about 4000 of these exceptions per day.
There was no DB-related application error logged within several hours before these logs.
We tried to investigate the problem but to no avail.
Our XA transactions do potentially span across multiple RDS MySQL 8.0.33 schemas as well as a schema in Aurora Serverless MySQL v2.
The RDS MySQL and Aurora DB logs show no errors that match with the start of these exceptions.
Expected Behavior
Unclear ...
Current Behavior
Reproduction Steps
The root cause of this issue is unclear thus ...
Possible Solution
No response
Additional Information/Context
No response
The AWS JDBC Driver for MySQL version used
1.1.14
JDK version used
11
Operating System and version
Amazon Linux 2