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

Incorrect rollback of created FlowFiles MockProcessSession

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.12.1
    • Fix Version/s: None
    • Component/s: Tools and Build
    • Labels:
      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

          Activity

            People

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

              Dates

              • Created:
                Updated: