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

MockProcessSession#penalize does not update FlowFile version

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.4.0
    • None
    • None

    Description

      While testing a processor that penalizes a FlowFile, the MockProcessSession#penalize method does not create a new version of that FlowFile. This allows bugs like the following to creep in

      session.penalize(original);
      session.transfer(original, REL_FAILURE);
      // the call to "transfer" fails in production, passes in the test framework
      

      Attachments

        Activity

          People

            joewitt Joe Witt
            johnathan.gilday Johnathan Gilday
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: