nifi-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philipp Leufke (Jira)" <j...@apache.org>
Subject [jira] [Updated] (NIFI-7249) [Regression] AvroReader: Could not parse incoming data
Date Thu, 12 Mar 2020 08:52:00 GMT

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

Philipp Leufke updated NIFI-7249:
---------------------------------
    Attachment: AvroReader_bug_MWE.xml

> [Regression] AvroReader: Could not parse incoming data
> ------------------------------------------------------
>
>                 Key: NIFI-7249
>                 URL: https://issues.apache.org/jira/browse/NIFI-7249
>             Project: Apache NiFi
>          Issue Type: Bug
>         Environment: Debian, Java 11 and Java 8
>            Reporter: Philipp Leufke
>            Priority: Major
>             Fix For: 1.11.3
>
>         Attachments: AvroReader_bug_MWE.xml
>
>
> Severe regression in Version 1.11.3, compared to 1.9.2:
> Record based processors cannot deserialize Avro messages any longer. Examples:
>  * ConsumeKafkaRecord: with embedded Avro schema or using Confluent Schema Registry
>  * ConvertRecord: with embedded Avro schema or using Confluent Schema Registry, too
>  * probably others as well...
> Error messages:
> {noformat}
> ConvertRecord[id=c3ed29c6-0170-1000-a960-809827e7654d] Failed to process StandardFlowFileRecord[uuid=b3869d82-6c50-484e-8d0c-b64b5d5a3ac3,claim=StandardContentClaim
[resourceClaim=StandardResourceClaim[id=1584002690648-1091, container=default, section=67],
offset=276387, length=3487],offset=0,name=b3869d82-6c50-484e-8d0c-b64b5d5a3ac3,size=3487];
will route to failure: Could not parse incoming data{noformat}
> {noformat}
> ConsumeKafkaRecord_2_0[id=d9ebdbda-51b7-38ce-b43e-3197322bd2e1] Failed to parse message
from Kafka using the configured Record Reader. Will route message as its own FlowFile to the
'parse.failure' relationship: org.apache.nifi.serialization.MalformedRecordException: Error
while getting next record. Root cause: java.lang.ClassCastException
> {noformat}
>  
> However, the messages with enmbedded schema can flawlessly be converted to JSON using
ConvertAvroToJson.
>  
> The behavior has been confirmed using various different flows and configurations with
different Java versions. A downgrade to Nifi 1.9.2 resolves the issue, a subsequent upgrade
to 1.11.3 brings it back.
>  
> I will attach a minimal example template, as soon as Jira allows me to do so...
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message