Cocoon
  1. Cocoon
  2. COCOON-2168

ResourceReader produces Java Heap Overflow when reading a huge resource

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.11, 2.2
    • Fix Version/s: 2.1.12, 2.2.1
    • Component/s: * Cocoon Core
    • Labels:
      None
    • Urgency:
      Normal
    • Affects version (Component):
      Components: Pipeline - 1.0.0-RC1
    • Fix version (Component):
      Components: Pipeline

      Description

      When reading a huge resource (i.e. 700MB file) the ResourceReader produces an overflow due to the BufferedOutputStream which is used (and forced to be used via AbstractReader). The BufferedOutputStream flushes only at the end (or when forced to), but overwrites the flush method to do nothing.

      As I don't know exactly where the BufferedOutputStream is used and what kind of impacts it will have to change it there I'm just going to fix the ResourceReader.
      1. ResourceReader.diff
        6 kB
        Felix Knecht
      2. test-case.tar.gz
        2 kB
        Felix Knecht

        Activity

          People

          • Assignee:
            Jörg Heinicke
            Reporter:
            Felix Knecht
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development