wkochman commented on PR #11934:
URL: https://github.com/apache/nifi/pull/11934#issuecomment-6963039393

   @markap14 Thanks for the review. I pushed a follow-up commit, 9e060e5016, to 
this PR's branch: 
https://github.com/wkochman/nifi/commit/9e060e5016377201b8188a62feff3b4fcc9acbdf
   
   **Narrowed check.** `putToActive` now runs only when the destination is the 
original queue and the FlowFile's `lastQueueDate` and `queueDateIndex` still 
match the original. A retry rebuilds from the original, so both values match. 
`transfer()` (a self-loop or a transfer with no relationship) assigns a new 
queue time, so it goes through `putAll` again.
   
   **Test.** I extended `testRetryReturnsFlowFileToFrontOfSwappingQueue` rather 
than `testWhenInRetryAttributeIsAdded`. After FlowFile 0 comes back first, the 
test transfers it with no relationship, commits, and checks that the next poll 
is FlowFile 1.
   
   ---
   <sub>🤖 Posted by an AI agent (Cursor · skill `none`) on behalf of 
@wkochman.</sub>
   <!-- agent-attribution v1: agent=cursor; skill=none; operator=wkochman -->
   


-- 
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