[
https://issues.apache.org/jira/browse/NIFI-3214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15817498#comment-15817498
]
Koji Kawamura commented on NIFI-3214:
-------------------------------------
Although the original proposal by [~bbende] here on
[NIFI-3216|https://issues.apache.org/jira/browse/NIFI-3216?focusedCommentId=15812529&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15812529]
suggested comparing cached value itself to guarantee that it's not updated by
others, I used a revision number instead.
Adding revision number took more effort, but it should use less network
bandwidth and provide better performance.
> Add a method to DistributedMapCacheClient to replace existing key only if it
> hasn't been changed
> ------------------------------------------------------------------------------------------------
>
> Key: NIFI-3214
> URL: https://issues.apache.org/jira/browse/NIFI-3214
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Extensions
> Reporter: Bryan Bende
> Assignee: Koji Kawamura
>
> It would be helpful for some processors to be able to -get a list of all the
> keys in the distributed map cache that match some pattern, or even to get a
> list of all the keys. We should update DistributedMapCacheClient to have a
> method like getKeys(String pattern).- replace an existing key in the
> distributed map cache with concurrency control so that the key will be
> replaced only if it hasn't been updated by other operations since updating
> client program fetched the key.
> Updated JIRA description as mentioned in
> [NIFI-3216|https://issues.apache.org/jira/browse/NIFI-3216?focusedCommentId=15812535&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15812535].
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)