You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@nifi.apache.org by Alan Jackoway <al...@cloudera.com> on 2017/01/03 21:04:45 UTC
Prioritizing Penalized Files Last
Hello,
I am looking for a good way to move penalized flow files to the end of a
queue so they don't block other files waiting for a processor. I want to
handle the case where the penalization happens due to an uncaught error, so
I can't modify the priority attribute before penalizing.
My first thought was to use FirstInFirstOutPrioritizer, but I tried this,
and it looked like penalized flow files were returned to the front of the
queue rather than being put at the back after penalization.
For now I am using NewestFlowFileFirstPrioritizer, but what I really want
is the oldest flow file that has not been penalized to go first. Is this
possible?
Thanks,
Alan
Re: Prioritizing Penalized Files Last
Posted by Mark Payne <ma...@hotmail.com>.
Hey Alan,
The FlowFile Queue uses an 'implicit prioritizer' that always pushes penalized FlowFiles to the bottom of
the queue. If you are not seeing that behavior, then there may be a bug of some sort. If you right-click on
the connection and List Queue, do you see any FlowFiles that are shown with Penalized = Y that are not
at the bottom of the queue?
Thanks
-Mark
> On Jan 3, 2017, at 4:04 PM, Alan Jackoway <al...@cloudera.com> wrote:
>
> Hello,
>
> I am looking for a good way to move penalized flow files to the end of a queue so they don't block other files waiting for a processor. I want to handle the case where the penalization happens due to an uncaught error, so I can't modify the priority attribute before penalizing.
>
> My first thought was to use FirstInFirstOutPrioritizer, but I tried this, and it looked like penalized flow files were returned to the front of the queue rather than being put at the back after penalization.
>
> For now I am using NewestFlowFileFirstPrioritizer, but what I really want is the oldest flow file that has not been penalized to go first. Is this possible?
>
> Thanks,
> Alan