markap14 commented on code in PR #11815:
URL: https://github.com/apache/nifi/pull/11815#discussion_r4340853933


##########
nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/controller/repository/StandardProcessSession.java:
##########
@@ -1453,9 +1454,9 @@ protected void rollbackRecord(final 
StandardRepositoryRecord record, final boole
                 if (penalize) {
                     final long expirationEpochMillis = 
System.currentTimeMillis() + 
context.getConnectable().getPenalizationPeriod(TimeUnit.MILLISECONDS);
                     final FlowFileRecord newFile = new 
StandardFlowFileRecord.Builder().fromFlowFile(record.getOriginal()).penaltyExpirationTime(expirationEpochMillis).build();
-                    originalQueue.put(newFile);
+                    originalQueue.putToActive(newFile);

Review Comment:
   No need, in Stateless, we use a StatelessFlowFileQueue which does not 
support swapping. So the put vs putToActive is irrelevant there.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to