Github user joewitt commented on the issue:

    https://github.com/apache/nifi/pull/2767
  
    With the changes made it isn't really a recommended way to do it.  What the 
change does is look for specific runtime exceptions that the framework could 
throw and which the user code of this processor couldn't really do anything 
meaningful and causes the normal behavior that will happen if these exceptions 
leak out which is yield/rollback.  But that was done so that 'other' exceptions 
besides those could then be handled in a way specific to what is desired here 
and that is to treat the flowfile as a failure and route it appropriately.  
Typically, you'd not want to be treating general exceptions as the reason for 
'failure' routing and instead you'd be looking for specific conditions.  So the 
change here I think is just dealing with the reality of the limited options 
this processor must have (i didnt' look into the details but that is what makes 
sense to me).


---

Reply via email to