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

The toString() of a FlowFile is too verbose for bulletins

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.16.0
    • Core Framework
    • None

    Description

      When a bulletin is generated, it typically includes the FlowFile that is contained within the bulletin. The output looks something like this:

      Unable to decompress StandardFlowFileRecord[uuid=c8d3f008-d6b4-481a-a765-8fbe32d28613,claim=StandardContentClaim [resourceClaim=StandardResourceClaim[id=1645815873003-83, container=default, section=83], offset=5242880, length=1048576],offset=0,name=c8d3f008-d6b4-481a-a765-8fbe32d28613,size=1048576] using gzip compression format due to org.apache.nifi.processor.exception.ProcessException: IOException thrown from CompressContent[id=b35630ab-81fc-1a66-ffff-fffff2856e8a]: java.io.IOException: java.io.IOException: Input is not in the .gz format; routing to failure: java.io.IOException: Input is not in the .gz format 

      The syntax StandardFlowFileRecord[uuid=...,claim=..., size=...] can be useful in logs and should remain as it is. However, in a bulletin, it is too verbose and makes the bulletin difficult to read. The UUID is unlikely to be helpful in a bulletin, either, as it can't really be copied & pasted. We should instead use an output such as:

      FlowFile[filename=abc.txt] 

       

      Attachments

        Issue Links

          Activity

            People

              markap14 Mark Payne
              markap14 Mark Payne
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m