aramatev commented on issue #3538: NIFI-6385 Add option to penalize waiting 
FlowFiles
URL: https://github.com/apache/nifi/pull/3538#issuecomment-503719932
 
 
   I suppose that Prioritizer at the success relationship level could work for 
some scenarios. 
   
   But if we're setting releasableFlowFileCount =1, then only 1 item would 
match our signal and fall and we're already consume it, its not like we request 
for signal =aa, twice and then we only use the flowfile with higher priority. 
   
   The situation that your solution doesnt solve is if we have several signals 
with same id with different priorities.
   
   Say you have these 2 in your queue, and you send a Notify for signal=a.
   signal=a, priority=2 and signal=a, priority=1, 
   You'd incorrectly get the signal=a with priority=2 out, and youd already 
consume that, and it would be too late to have them wait in another success 
relationship to get sorted out. 

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to