nifi-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (Jira)" <j...@apache.org>
Subject [jira] [Commented] (NIFI-6672) Expression language plus operation doesn't check for overflow
Date Mon, 25 May 2020 11:07:00 GMT

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

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

Commit b0251178243650e3256a8b0649f0196c6868fcba in nifi's branch refs/heads/master from Alessandro
D'Armiento
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=b025117 ]

NIFI-6672 PlusEvaluator throws an Arithmetic Exception in case of Long overflow.
TestQuery checks that Long overflow is detected and Double overflow is correctly promoted
to POSITIVE_INFINITY

The behaviour change is reverted until further investigations.
The overflow behaviour is still enforced by unit tests and documented in the expression language
doc
NIFI-6672 Removed test code.

This closes #3738

Signed-off-by: Mike Thomsen <mthomsen@apache.org>


> Expression language plus operation doesn't check for overflow
> -------------------------------------------------------------
>
>                 Key: NIFI-6672
>                 URL: https://issues.apache.org/jira/browse/NIFI-6672
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 1.9.2
>            Reporter: Alessandro D'Armiento
>            Priority: Major
>         Attachments: image-2019-09-14-17-32-58-740.png
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> To reproduce the bug, create a FF with an attribute equals to Long.MAX, then add 100
to that attribute in a following UpdateAttribute processor. The property will overflow to
a negative number without throwing any exception
> !image-2019-09-14-17-32-58-740.png!



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

Mime
View raw message