Derby
  1. Derby
  2. DERBY-5775

Upgrade tests should print full IOException stack trace when it fails to access old versions

    Details

    • Urgency:
      Low
    • Issue & fix info:
      Known fix, Newcomer

      Description

      When the Upgrade tests fail to access the oldVersions due to an IOException the message is not very clear as to what the IOException was. e,g. can output
      ALARM: IOException msg: 'svn.apache.org'. Upgrade tests can NOT be run!
      ALARM: IOException msg: 'svn.apache.org'. Upgrade tests can NOT be run!
      ALARM: IOException msg: 'svn.apache.org'. Upgrade tests can NOT be run!
      ALARM: IOException msg: 'svn.apache.org'. Upgrade tests can NOT be run!
      ALARM: IOException msg: 'svn.apache.org'. Upgrade tests can NOT be run!
      ALARM: IOException msg: 'svn.apache.org'. Upgrade tests can NOT be run!
      ALARM: IOException msg: 'svn.apache.org'. Upgrade tests can NOT be run!
      ALARM: IOException msg: 'svn.apache.org'. Upgrade tests can NOT be run!
      ALARM: IOException msg: 'svn.apache.org'. Upgrade tests can NOT be run!
      ALARM: IOException msg: 'svn.apache.org'. Upgrade tests can NOT be run!
      ALARM: IOException msg: 'svn.apache.org'. Upgrade tests can NOT be run!
      ALARM: IOException msg: 'svn.apache.org'. Upgrade tests can NOT be run!
      ALARM: IOException msg: 'svn.apache.org'. Upgrade tests can NOT be run!
      ALARM: IOException msg: 'svn.apache.org'. Upgrade tests can NOT be run!
      ALARM: IOException msg: 'svn.apache.org'. Upgrade tests can NOT be run!

      Time: 0.008

      OK (0 tests)

      The code in OldVersions.getVersions()

      }
      } catch (IOException ioe)

      { alarm("Error reading from file: " + oldVersionsPath + ioe.getMessage()); }

      should print the exception stack trace or possibly even fail on IOException.

      1. DERBY-5775.diff
        0.9 kB
        Myrna van Lunteren

        Issue Links

          Activity

            People

            • Assignee:
              Myrna van Lunteren
              Reporter:
              Kathey Marsden
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development