Derby
  1. Derby
  2. DERBY-4130

Using large stream with 'values cast(? as clob)' causes OutOfMemoryError

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 10.6.1.0
    • Fix Version/s: None
    • Component/s: Store
    • Urgency:
      Normal
    • Issue & fix info:
      Repro attached
    • Bug behavior facts:
      Crash

      Description

      Inserting a stream though a values clause and casting the value to a Clob causes the stream to be materialized in memory.
      If the stream is sufficiently large, this will result in an OutOfMemoryError.

        Issue Links

          Activity

          Gavin made changes -
          Workflow jira [ 12459443 ] Default workflow, editable Closed status [ 12799535 ]
          Kathey Marsden made changes -
          Labels CLOB derby_triage10_5_2
          Kristian Waagan made changes -
          Labels CLOB
          Dag H. Wanvik made changes -
          Issue & fix info [Repro attached]
          Rick Hillegas made changes -
          Bug behavior facts [Crash]
          Urgency Normal
          Hide
          Rick Hillegas added a comment -

          Triaged July 2, 2009: Marked as Crash and assigned normal urgency.

          Show
          Rick Hillegas added a comment - Triaged July 2, 2009: Marked as Crash and assigned normal urgency.
          Kristian Waagan made changes -
          Link This issue relates to DERBY-4102 [ DERBY-4102 ]
          Kristian Waagan made changes -
          Field Original Value New Value
          Attachment ClobInValuesClauseOOME.java [ 12404128 ]
          Hide
          Kristian Waagan added a comment -

          Attached a repro for the issue. Remember to run Java with a heap of less than 64 MB.
          Also include the Derby test jar/classes in the classpath when compiling.

          Show
          Kristian Waagan added a comment - Attached a repro for the issue. Remember to run Java with a heap of less than 64 MB. Also include the Derby test jar/classes in the classpath when compiling.
          Kristian Waagan created issue -

            People

            • Assignee:
              Unassigned
              Reporter:
              Kristian Waagan
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Development