[
https://issues.apache.org/jira/browse/NIFI-3141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15715055#comment-15715055
]
ASF subversion and git services commented on NIFI-3141:
-------------------------------------------------------
Commit 8da38acf31688569bcc0a1d79c2f90d2e4e535d4 in nifi's branch
refs/heads/master from [~ijokarumawak]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=8da38ac ]
NIFI-3141: Fixed TailFile ArrayIndexOutOfBounds.
- Added unit test cases to simulate NiFi version update which fails without
this fix.
- Added state object migration code, add file.0. prefix to state keys,
and add length from stored position.
This closes #1289
> TailFile failed with ArrayIndexOutOfBoundsException after updating NiFi to
> 1.1.0
> --------------------------------------------------------------------------------
>
> Key: NIFI-3141
> URL: https://issues.apache.org/jira/browse/NIFI-3141
> Project: Apache NiFi
> Issue Type: Bug
> Affects Versions: 1.1.0
> Reporter: Koji Kawamura
> Assignee: Koji Kawamura
> Attachments: NiFi 1.0.0 TailFile status.png, NiFi 1.1.0 TailFile
> status.png
>
>
> TailFile with NiFi 1.0.0 or earlier only handles single file. So it doesn't
> have index in state key name. But the updated TailFile expects stored state
> key has index in it, tried to extract the index and failed.
> {code}
> Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
> at
> org.apache.nifi.processors.standard.TailFile.initStates(TailFile.java:365)
> ~[na:na]
> at
> org.apache.nifi.processors.standard.TailFile.recoverState(TailFile.java:348)
> ~[na:na]
> ... 16 common frames omitted
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)