Github user joewitt commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/430#discussion_r63237500
  
    --- Diff: 
nifi-api/src/main/java/org/apache/nifi/processor/ProcessSession.java ---
    @@ -109,6 +109,19 @@
         void rollback(boolean penalize);
     
         /**
    +     * Produces a listing of pertinent information about the session's
    +     * unacknowledged flowfiles that can be used for logging purposes.  If 
the
    +     * session fails for any reason this can help identify problem files 
with
    +     * minimal system impact.
    +     *
    +     * Because of testing dependencies and ot
    +     *
    +     * @return {@link String} listing pertinent information about the 
session's
    +     * unacknowledged flowfiles, primarily intended for logging purposes.
    +     */
    +    String getUnacknowledgedFlowfileInfo();
    --- End diff --
    
    When a session gets rolled back everything not committed (even things 
already transferred but not committed) are part of the list.  Also once a 
session is rolled back or committed it should generally be able to be used 
more.  Therefore the information about the session you want to capture needs to 
come back as a return of the rollback call itself most likely.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to