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

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

    XMLWordPrintableJSON

Details

    • Low
    • 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.

      Attachments

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

        Issue Links

          Activity

            People

              myrna Myrna van Lunteren
              kmarsden Katherine Marsden
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: