Re: PostHTTP Penalize file on HTTP 5xx response

2016-09-01 Thread McDermott, Chris Kevin (MSDU - STaTS/StorefrontRemote)
Hmmm, given this I wonder penalizing the flow file is going to help. I’d like maintain delivery order as best I can. If the web service is having intermittent problems some files might be penalized but others, added to the flow later, don’t get penalized and are sent out of order. It might be

Re: PostHTTP Penalize file on HTTP 5xx response

2016-08-31 Thread Joe Witt
It will not be blocked by penalized things. The queues are setup to basically put those aside and move on to other things until their penalty period passes. If you're seeing different behavior please advise. Thanks Joe On Thu, Sep 1, 2016 at 1:11 PM, McDermott, Chris Kevin (MSDU - STaTS/Storefro

Re: PostHTTP Penalize file on HTTP 5xx response

2016-08-31 Thread McDermott, Chris Kevin (MSDU - STaTS/StorefrontRemote)
Thanks, everyone for the feedback. I’ll file a JIRA for this and see if I can find some time to address it. Does anyone have any thoughts on my related question? (with spelling and grammar corrections:) ➢ If a penalized file is routed to a funnel that’s s connect to a processor via a connectio

Re: PostHTTP Penalize file on HTTP 5xx response

2016-08-31 Thread Matt Burgess
Adam, A PenalizeFlowFile processor could be pretty useful, please feel free to file a New Feature Jira for this if you like. In the meantime you could use ExecuteScript (with Groovy for this example) and the following: def flowFile = session.get() if(!flowFile) return flowFile = session.penalize

Re: PostHTTP Penalize file on HTTP 5xx response

2016-08-31 Thread Adam Taft
In the wild west of HTTP response codes, a 500 Server Error could mean practically anything. In my experience, you can't infer any semantic meaning for what a 500 status code could mean, unless you're very familiar with the server application. I'd even go so far as to suggest, if a modification i

Re: PostHTTP Penalize file on HTTP 5xx response

2016-08-31 Thread Andrew Grande
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 wrote: > Hey Chris, > > I think it is reasonable to penalize when we receive a 500 response. 500 > means Internal Server Error, and i

Re: PostHTTP Penalize file on HTTP 5xx response

2016-08-31 Thread Mark Payne
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 Flo

PostHTTP Penalize file on HTTP 5xx response

2016-08-31 Thread McDermott, Chris Kevin (MSDU - STaTS/StorefrontRemote)
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 no