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

intermittent SQLException in test jdbcapi/testRelative.java

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.0.2.1
    • 10.0.2.2
    • Test
    • None

    Description

      There is an intermittent failure in the test jdbcapi/testRelative.java.
      The diff is similar to the following:

      6a7
      > SQL Exception: Invalid cursor state - no current row.
      9 del
      < SQL Exception: Invalid cursor state - no current row.
      Test Failed.

      It might be a timing issue related to doing a sqle.printStackTrace() in the case of an expected exception.

      The issue maybe with more than the test - but the test also has a problem:
      the master shows that we have an unexpected exception which doesn't make
      sense in the master.
      Generally only expected exceptions would be checked into the master and
      would not print a stack trace.
      Unexpected exceptions should cause the test to fail and should print a
      stack trace.

      Further analysis is necessary to identify why there is an exception & why it /its timing is intermittent.

      Attachments

        Activity

          People

            shreyas Shreyas
            myrna Myrna van Lunteren
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: