Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-12010

Handle auto-commit and commit based on driver capabilities in SQL components

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0-M1, 1.24.0
    • Extensions
    • 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

          Activity

            People

              mattyb149 Matt Burgess
              mattyb149 Matt Burgess
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m