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

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

Commit 65ba4a2d9353b8a2038e45b1079739bf016d7b56 in nifi's branch 
refs/heads/master from Iván Rodriguez
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=65ba4a2 ]

NIFI-6853 - flowFileEvent combineCounters hashmap overwritten
- Added unit test to verify behavior of contribution

This closes #3875.

Signed-off-by: Mark Payne <[email protected]>


> flowFileEvent combineCounters hashmap overwritten
> -------------------------------------------------
>
>                 Key: NIFI-6853
>                 URL: https://issues.apache.org/jira/browse/NIFI-6853
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 1.10.0
>            Reporter: Iván Ezequiel Rodriguez
>            Assignee: Iván Ezequiel Rodriguez
>            Priority: Major
>              Labels: core, counters, framework, nifi, overwrite, 
> overwriteExisting
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> It is related to the bug I reported a few days ago +*NIFI-6800*+
> This is another problem in the StandardProcessSession.java, promptly in the 
> combination of the counters for the event repository-> flowFileEvent object.
> The putALL method is called and the values ​​are not being mixed when it 
> comes to existing keys
>  As we know hashmap does not allow duplicate keys. So when we merge the maps 
> in this way, for duplicate keys in map1 the value is overwitten by value for 
> same key in map2.
> *_The putAll method cannot be used to combine hashmasp if what is expected is 
> that the keys be summed_*.
>  



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

Reply via email to