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

NonFlushableOutputStream should override all write() methods

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 1.16.0, 1.15.3
    • Core Framework
    • None

    Description

      The NonFlushableOutputStream that is used when ProcessSession.append is called extends from FilterOutputStream but does not override the write methods. As a result, calls to NonFlushableOutputStream.write(byte[]) or NonFlushableOutputStream.write(byte[], int, int) will not delegate those calls to the underlying OutputStream but will instead iterate over every byte in the given array calling OutputStream.write(int) for each byte individually, which is inefficient.

      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 - 20m
                  20m