Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-8082

Incorrect rollback of created FlowFiles MockProcessSession

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 1.12.1
    • None
    • Tools and Build
    • None

    Description

      When using TestRunner, MockProcessSession.rollback() is incorrectly placing new flow files on the input queue.

       

      The example testcase is attached.

      FlowFile output = session.create();
      session.transfer(output, REL_CREATED);

      session.rollback(); // flowFile output ends up on the input queue.

      Attachments

        1. MyProcessorTest.java
          2 kB
          Nick Lawrence

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ntlawrence Nick Lawrence
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: