Github user bbende commented on the issue:
https://github.com/apache/nifi/pull/2726
@zenfenan the getAndPutIfAbsent method needs to be an atomic operation
which is the reason we are using the watch and multi step operation so we can't
remove that---
