Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-4506

AbstractMessageSplitter does not close java.util.Stream payloads

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 5.0.6
    • Fix Version/s: 5.0.7
    • Component/s: Core
    • Labels:

      Description

      From what I can tell, streams are handled by converting them to iterators, and then closing the iterator if it's Closeable.

      However, by that point the information about the underlying stream is lost, and the returned iterator isn't closeable, so the stream is never closed.

      This effectively means there's no support for e.g. streaming results from a database where the underlying connection is released when the stream is closed.

        Attachments

          Activity

            People

            • Assignee:
              grussell Gary Russell
              Reporter:
              timurstrekalov Timur Strekalov
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: