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-6673) Expression language multiply operation doesn't check for overflow
Date Mon, 25 May 2020 11:07:00 GMT

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

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

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

NIFI-6673 MultiplyEvaluator 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 or NEGATIVE_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

This closes #3739

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


> Expression language multiply operation doesn't check for overflow
> -----------------------------------------------------------------
>
>                 Key: NIFI-6673
>                 URL: https://issues.apache.org/jira/browse/NIFI-6673
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 1.9.2
>            Reporter: Alessandro D'Armiento
>            Priority: Major
>         Attachments: image-2019-09-14-17-38-19-397.png
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> To reproduce the bug, create a FF with an attribute equals to Long.MAX, then multiply
it by 2 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-38-19-397.png!



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

Mime
View raw message