New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NIFI-4046: If we are unable to parse out any records from a Kafka Mes… #1906
Conversation
…aage with ConsumeKafkaRecord, then we should route all of the bytes received to 'parse.failure'
Reviewing... |
I tested with following schema: {
"type": "record", "name": "test",
"fields": [
{ "name": "id", "type": "long" },
{ "name": "name", "type": [ "null", "string" ] }
]
} And this message: {"name": "does not have ID"} Then I got following exception, the message was not routed to 'failure':
Probably we need to wrap There is the template file that I used. @markap14 Can you take a look? |
@ijokarumawak that's a great catch! Pushed a new commit to address. Thanks! |
@markap14 Thanks for the updates. All LGTM, +1! Merging to master.. |
…aage with ConsumeKafkaRecord, then we should route all of the bytes received to 'parse.failure' NIFI-4046: Addressed issue of Record Writer failing with ConsumeKafkaRecord This closes apache#1906. Signed-off-by: Koji Kawamura <ijokarumawak@apache.org>
…aage with ConsumeKafkaRecord, then we should route all of the bytes received to 'parse.failure'
Thank you for submitting a contribution to Apache NiFi.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:
Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?
Does your PR title start with NIFI-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.
Has your PR been rebased against the latest commit within the target branch (typically master)?
Is your initial contribution a single, squashed commit?
For code changes:
For documentation related changes:
Note:
Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible.