Yuri,

All sessions get rolled back when they are garbage collected. Just in case the 
session wasn't properly handled.
It looks like you've got DEBUG logging turned on for StandardProcessSession,
so it is logging a stack trace just to show you exactly how rollback() was 
called. You'll get some pretty verbose
logging about the internal workings of NiFi so you may want to not have DEBUG 
logging on for framework components
if not debugging the framework itself :)

Thanks
-Mark

> On May 23, 2017, at 4:57 PM, Yuri Krysko <[email protected]> wrote:
> 
> Hi Devs,
> 
> I am developing a custom processor for nifi. My first one. I am seeing the 
> below periodically in the app log. To my knowledge, there should not be any 
> rollbacks, as my events are processed as expected. Overall, the code seems to 
> work fine. I would like to understand how to t-shoot this better. Thanks!
> 
> 
> 
> 2017-05-23 16:51:01,931 INFO [Provenance Repository Rollover Thread-1] 
> o.a.n.p.PersistentProvenanceRepository Successfully Rolled over Provenance 
> Event file containing 2 records. In the past 5 minutes, 1 events have been 
> written to the Provenance Repository, totaling 1.13 KB
> 
> 2017-05-23 16:51:20,046 DEBUG [Finalizer] o.a.n.c.r.StandardProcessSession 
> StandardProcessSession[id=0] session rollback called, FlowFile records are 
> [none] {}
> 
> java.lang.Throwable: Stack Trace on rollback
> 
> at 
> org.apache.nifi.controller.repository.StandardProcessSession.rollback(StandardProcessSession.java:900)
> 
> at 
> org.apache.nifi.controller.repository.StandardProcessSession.rollback(StandardProcessSession.java:894)
> 
> at 
> org.apache.nifi.controller.repository.StandardProcessSession.rollback(StandardProcessSession.java:889)
> 
> at 
> org.apache.nifi.controller.repository.StandardProcessSession.finalize(StandardProcessSession.java:3021)
> 
> at java.lang.System$2.invokeFinalize(System.java:1270)
> 
> at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:98)
> 
> at java.lang.ref.Finalizer.access$100(Finalizer.java:34)
> 
> at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:210)
> 
> ________________________________
> 
> LEGAL DISCLAIMER: M.C. Dean, Inc. and its subsidiaries considers this e-mail 
> and any files transmitted with it to be protected, proprietary or privileged 
> information intended solely for the use of the named recipient(s). Any 
> disclosure of this material or the information contained herein, in whole or 
> in part, to anyone outside of the intended recipient or affiliates is 
> strictly prohibited. M. C. Dean, Inc. accepts no liability for the content of 
> this e-mail or for the consequences of any actions taken on the basis of the 
> information contained in it, unless that information is subsequently 
> confirmed in writing. Employees of M.C. Dean, Inc. are instructed not to 
> infringe on any rights of the recipient; any such communication violates 
> company policy. If you are not the intended recipient, any disclosure, 
> copying, distribution, or action taken or omitted in reliance on this 
> information is strictly prohibited by M.C. Dean, Inc.; please notify the 
> sender immediately by return e-mail, delete this communication and destroy 
> all copies.

Reply via email to