[
https://issues.apache.org/jira/browse/NIFI-5671?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Koji Kawamura resolved NIFI-5671.
---------------------------------
Resolution: Not A Problem
Assignee: Koji Kawamura
Hello [~renedlog], thanks for reporting this JIRA.
I'm closing this as 'Not A Problem' because the reported EnforceOrder usage is
not supported.
The reason you got 'NumberFormatException' is that because EnforceOrder tried
to parse the attribute as Integer. But the string attribute value exceeds max
Integer value. 2 ^31^-1. EnforceOrder doesn't support long numbers.
Also, EnforceOrder is a processor to enforce ordering based on consecutive
numbers. The processor can not be applied to skipping numbers such as
timestamps. If you need to process FlowFiles in first-in-first-out manner, then
FirstInFirstOutPrioritizer can be useful.
https://nifi.apache.org/docs/nifi-docs/html/user-guide.html#prioritization
Please feel free to re-open if we need more discussion, or send your questions
to NiFi user mailing list.
https://nifi.apache.org/mailing_lists.html
> EnforceOrder Processor - Order Attribute Invalid
> ------------------------------------------------
>
> Key: NIFI-5671
> URL: https://issues.apache.org/jira/browse/NIFI-5671
> Project: Apache NiFi
> Issue Type: Bug
> Components: Extensions
> Affects Versions: 1.7.1
> Reporter: Stefan Goldener
> Assignee: Koji Kawamura
> Priority: Major
> Labels: EnforceOrder
> Attachments: image-2018-10-09-07-36-32-097.png,
> image-2018-10-09-07-39-32-520.png
>
>
> EnforceOrder Processor cannot handle the Attributes due to the fact that all
> attributes are always strings!
> !image-2018-10-09-07-36-32-097.png!
>
> The attribute was created this way (regex is just additional, the processor
> doesn't work with toNumber() aswell):
> !image-2018-10-09-07-39-32-520.png!
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)