[ 
https://issues.apache.org/jira/browse/NIFI-2674?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bryan Rosander updated NIFI-2674:
---------------------------------
    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
{code}
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
{code}

  was: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.


> QueryDatabaseTable should catch avro exceptions
> -----------------------------------------------
>
>                 Key: NIFI-2674
>                 URL: https://issues.apache.org/jira/browse/NIFI-2674
>             Project: Apache NiFi
>          Issue Type: Bug
>            Reporter: Bryan Rosander
>
> 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
> {code}
> 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
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to