Mark,

It should definitely be a CREATE event, not an UPDATE. This is creating a new 
FlowFile. I'm going to take a look at this today.

Thanks
-Mark

On 2021/09/28 15:54:05, Mark Bean <[email protected]> wrote: 
> I'm working on NIFI-8727 [1] to fix incorrect increment/decrement of
> claimant counts on content claims. The problem seems to be with cloning a
> flowfile. When doing so, a new StandardRepositoryRecord is created for the
> clone. See [2]. The current constructor will generate the record with a
> type of CREATE. [3] However, per the recommendation in NIFI-8727, a
> different constructor for cloning is called which sets the type to UPDATE.
> [4]
> 
> Is CREATE the correct type for a cloned flowfile and its RepositoryRecord?
> Or would it be an UPDATE since we're updating an existing record?
> 
> [1] https://issues.apache.org/jira/browse/NIFI-8727
> [2]
> https://github.com/apache/nifi/blob/fa2be2ee63f0e6e62ac35593e0d7540648f72363/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/controller/repository/StandardProcessSession.java#L1952
> [3]
> https://github.com/apache/nifi/blob/fa2be2ee63f0e6e62ac35593e0d7540648f72363/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-repository-models/src/main/java/org/apache/nifi/controller/repository/StandardRepositoryRecord.java#L50
> [4]
> https://github.com/apache/nifi/blob/fa2be2ee63f0e6e62ac35593e0d7540648f72363/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-repository-models/src/main/java/org/apache/nifi/controller/repository/StandardRepositoryRecord.java#L61
> 
> Thanks,
> Mark
> 

Reply via email to