You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Dennis Jaheruddin (Jira)" <ji...@apache.org> on 2020/06/20 22:22:00 UTC

[jira] [Commented] (NIFI-5682) There are unexpected content from another distinct flow in the result.

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

Dennis Jaheruddin commented on NIFI-5682:
-----------------------------------------

I just tried to reproduce this with two GenerateFlowFile processors with the relevant messages inside as custom text. I first ran the first one with this message format:
<extract>
  <SNMPSCANNER>
    <line>
      <ip>127.0.0.1</ip>
      <port>10001</port>
      <protocol>udp</protocol>
      <address>udp:127.0.0.1/10001</address>
      <community>airos</community>
      <status>0</status>
      <sysName>sysName</sysName>
    </line>
  </SNMPSCANNER>
</extract>
And afterwards I stopped it and ran the second one with this format:
{  "address": "127.0.0.1/100010",  "community": "airos",  "snmpVersion": "V2c",  "transportProtocol": "UDP"}
The resulting messages looked completely normal.

If this is still relevant, please consider sharing a reproducible example. As you mention custom processors those are almost certainly doing something they should not be doing, but without knowing exactly how they are built, it seems impossible to troubleshoot this issue further.

> There are unexpected content from another distinct flow in the result.
> ----------------------------------------------------------------------
>
>                 Key: NIFI-5682
>                 URL: https://issues.apache.org/jira/browse/NIFI-5682
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 1.7.1
>         Environment: CentOS
>            Reporter: Artem Anokhin
>            Priority: Critical
>         Attachments: 91674-capture.png, 91675-capture.png, Capture.PNG, Capture.PNG
>
>
> We have a very strange situation in our NiFi flow. The problem is that the result was with an unexpectable content from flow files that existing in the distinct flow.
> 1. The flow above generates in the first GenerateFlowFile processor the next content:
> {code:java}
> <extract>
>   <SNMPSCANNER>
>     <line>
>       <ip>127.0.0.1</ip>
>       <port>10001</port>
>       <protocol>udp</protocol>
>       <address>udp:127.0.0.1/10001</address>
>       <community>airos</community>
>       <status>0</status>
>       <sysName>sysName</sysName>
>     </line>
>   </SNMPSCANNER>
> </extract>
> {code}
> and it falls into the result of the below flow after our custom SnmpProcessor. How can it be? The above flow was turned off during the execution of below.
> 2. The GenerateFlowFile generates something like 
> {code:java}
> munity": "airos",
>   "snmpVersion": "V2c",
>   "transportProtocol": "UDP"
> }{
>   "address": "127.0.0.1/10001",
>   "comm
> {code}
> rather than was specified in it:
> {code:java}
> {
>   "address": "127.0.0.1/100010",
>   "community": "airos",
>   "snmpVersion": "V2c",
>   "transportProtocol": "UDP"
> }
> {code}



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