Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Some JDBC drivers throw an exception when calling setAutoCommit(false), even if the auto-commit setting for the driver is already false. Although unfortunate, I'm not sure it is a violation of the JDBC API. The SQL components in NiFi that use the JDBC API should catch SQLFeatureNotSupportedException and perhaps log a debug message but otherwise proceed.
Same goes for connection.commit() and connection.rollback(), these should not be explicitly called if auto-commit is true for the connection.
Attachments
Issue Links
- is a clone of
-
NIFI-11898 Handle auto-commit and commit based on driver capabilities in PutDatabaseRecord
- Resolved
- is related to
-
NIFI-8605 ExecuteSQLRecord processor consumes a large heap volume when use with PostgreSQL JDBC driver
- Resolved
- links to