MySQL Connector/J 5.1: NPE when executing SQL with QueryTimeout>0 on fabric connection
Posted by: Chengdong He
Date: January 30, 2023 02:08AM

When executing sql with QueryTimeout settings, getProperties() in class FabricMySQLConnectionProxy gets NULL when constructing CancelTask resulting in NPE.
And sql with QueryTimeout settings is a common connection availability detection method in connection pool (e.g. tomcat built-in connection pool, druid connection pool). So this may cause the connection availability detection to fail, resulting in unpredictable behavior such as connection pools abandoning available connections.

Options: ReplyQuote


Subject
Written By
Posted
MySQL Connector/J 5.1: NPE when executing SQL with QueryTimeout>0 on fabric connection
January 30, 2023 02:08AM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.