Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-3970

PositionedStoreStream doesn't initialize itself properly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.3.3.0, 10.4.2.0, 10.5.1.1
    • 10.4.2.1, 10.5.1.1
    • JDBC
    • None

    Description

      When a PositionedStoreStream is created on top of a stream from store, it must properly initialize itself.
      Proper initialization consists of initializing and resetting the stream to make sure the states of the streams are in sync.

      A case of out of sync stream states was detected in a test where the Clob reference wasn't kept, but a new Clob object was created for each operation, i.e:
      rs.getClob(1).length();
      rs.getClob(1).getSubString(...);

      A symptom of out of sync stream states is EOFException on a valid request.
      I don't think the access style above is supposed to work, but the proper initialization should be performed anyway.

      Attachments

        Issue Links

          Activity

            People

              kristwaa Kristian Waagan
              kristwaa Kristian Waagan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: