[ 
https://issues.apache.org/jira/browse/NIFI-2674?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15438212#comment-15438212
 ] 

ASF GitHub Bot commented on NIFI-2674:
--------------------------------------

GitHub user brosander opened a pull request:

    https://github.com/apache/nifi/pull/953

    NIFI-2674 - Always adding flow files to result set flowfiles, catchin…

    …g runtime exceptions while converting to avro

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/brosander/nifi NIFI-2674

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/nifi/pull/953.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #953
    
----
commit f53ce41e952b999bed8e4069318375b68dbf4768
Author: Bryan Rosander <[email protected]>
Date:   2016-08-25T23:52:55Z

    NIFI-2674 - Always adding flow files to result set flowfiles, catching 
runtime exceptions while converting to avro

----


> 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