You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2018/05/10 15:51:00 UTC

[jira] [Commented] (NIFI-4395) GenerateTableFetch can't fetch column type by state after instance reboot

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

ASF subversion and git services commented on NIFI-4395:
-------------------------------------------------------

Commit fd8f1bf9083d2baf4d43e0666c774a8d5f83e2d8 in nifi's branch refs/heads/HDF-3.1-maint from [~Deon]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=fd8f1bf ]

NIFI-4395 GenerateTableFetch can't fetch column type by state after instance reboot

Add multiple states recover

Signed-off-by: Matthew Burgess <ma...@apache.org>

This closes #2442


> GenerateTableFetch can't fetch column type by state after instance reboot
> -------------------------------------------------------------------------
>
>                 Key: NIFI-4395
>                 URL: https://issues.apache.org/jira/browse/NIFI-4395
>             Project: Apache NiFi
>          Issue Type: Bug
>            Reporter: Deon Huang
>            Assignee: Deon Huang
>            Priority: Major
>             Fix For: 1.6.0
>
>         Attachments: GenerateTableFetch_Exception.png
>
>
> The problem can easily be reproduce.
> Once GenerateTableFetch store state and encounter NiFi instance reboot.
> (Dynamic naming table by expression language)
> The exception will occur.
> The error in source code is list below.
> ```
>     if (type == null) {
>     // This shouldn't happen as we are populating columnTypeMap when the processor is scheduled or when the first maximum is observed
>     throw new IllegalArgumentException("No column type found for: " + colName);
>     }
> ```
> When this situation happened. The FlowFile will also be grab and can't release or observed.
> Processor can't grab existing  column type from *columnTypeMap* through instance reboot.
> Hence will inevidible get this exception, rollback FlowFile and never success.
> QueryDatabaseTable processor will not encounter this exception due to it setup(context) every time,
> While GenerateTableFetch will not pass the condition and thus try to fetch column type from 0 length columnTypeMap.
> ---
>     if (!isDynamicTableName && !isDynamicMaxValues) {
>     super.setup(context);
>     }
> ---
> I can take the issue if it is recognize as bug.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)