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

QueryDatabaseTable should catch avro exceptions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.0.0
    • None
    • None

    Description

      If avro throws an org.apache.avro.file.DataFileWriter$AppendWriteException during JdbcCommon.convertToAvroStream(), the exception is uncaught and the error in the log looks like the processor doesn't have a selected relationship for the flowfile rather than the real cause.

      Was able to repro this using https://github.com/brosander/dev-dockerfiles/tree/master/sample-data/nyc_traffic_violations/mysql

      docker build -t nyc_traffic_violations_mysql .
      docker run --name nyc_traffic_violations_mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -e MYSQL_DATABASE=test -d -p 3306:3306 nyc_traffic_violations_mysql
      

      Attachments

        Issue Links

          Activity

            People

              bryanrosander@gmail.com Bryan Rosander
              bryanrosander@gmail.com Bryan Rosander
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: