Wasn't HTTP 400 Bad Request meant for that? 500 only means the server
failed, not necessarily due to user input.

Andrew

On Wed, Aug 31, 2016, 10:16 AM Mark Payne <marka...@hotmail.com> wrote:

> Hey Chris,
>
> I think it is reasonable to penalize when we receive a 500 response. 500
> means Internal Server Error, and it is
> very reasonable to believe that the Internal Server Error occurred due to
> the specific input (i.e., that it may not
> always occur with different input). So penalizing the FlowFile so that it
> can be retried after a little bit is reasonable
> IMO.
>
> When using the prioritizers, any FlowFile that is penalized will not hold
> up other FlowFiles. They are always at the
> bottom of the queue until the penalization expires.
>
> Thanks
> -Mark
>
>
> > On Aug 31, 2016, at 10:06 AM, McDermott, Chris Kevin (MSDU -
> STaTS/StorefrontRemote) <chris.mcderm...@hpe.com> wrote:
> >
> > I wanted to ask if it would be at all sane to have the PostHTTP
> processor penalize a flowfile on 5xx response.  5xx indicates that the
> request may be good but it cannot be handle by the server Currently it
> seems the processor routes files eliciting this response to the failure
> output but does not penalize them.  What do we think of adding such
> penalization?
> >
> > On a related note.  If a file penalized file is routed to a funnel that
> is connect to a processor via a connection with the OldestFlowFileFirst
> prioritizer will the consumption of files from that connection be blocked
> until penalization period is over?
> >
> > What I am trying to accomplish is this: I am using PostHTTP to send
> files to web service that is throttling incoming data by returning a 500
> response.  When that happens I want to slow down files being to that that
> service.
> >
> > Thanks,
> >
> > Chris McDermott.
> >
> > Remote Business Analytics
> > STaTS/StoreFront Remote
> > HPE Storage
> > Hewlett Packard Enterprise
> > Mobile: +1 978-697-5315
> >
> >
>
>

Reply via email to