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

need to test getting appropriate error message when os files are read-only

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.5.1.1
    • 10.5.1.1
    • Test
    • None

    Description

      We don't currently have a way to test what happens when a database is on read-only media (e.g. a cd, floppy).

      Without user involvement (i.e. inserting a disk somewhere etc) it's hard to fully test, but a test that simulates this by making the files on the OS read-only would give some coverage.

      Attachments

        1. DERBY-3837.diff
          21 kB
          Myrna van Lunteren

        Activity

          attaching a patch that creates test store/OSReadOnlyTest and adds this to the store/_Suite.

          I've tested the test itself on win, linux, iseries, with a variety of ibm and sun jvms (incl. weme6.1), and the _Suite on win with jdk1.5. and weme6.1.
          The one platform I'm curious about is ibm zseries; I'll see if I can do this, and will attempt to run derbyall; after that I intend to commit this.

          review comments are welcome.

          myrna Myrna van Lunteren added a comment - attaching a patch that creates test store/OSReadOnlyTest and adds this to the store/_Suite. I've tested the test itself on win, linux, iseries, with a variety of ibm and sun jvms (incl. weme6.1), and the _Suite on win with jdk1.5. and weme6.1. The one platform I'm curious about is ibm zseries; I'll see if I can do this, and will attempt to run derbyall; after that I intend to commit this. review comments are welcome.
          mkutty Manjula Kutty added a comment -

          I ran this particular test on Z series and it passed...

          mkutty Manjula Kutty added a comment - I ran this particular test on Z series and it passed...

          suites.All also showed no unexpected failures. I committed the patch with revision 685173.

          myrna Myrna van Lunteren added a comment - suites.All also showed no unexpected failures. I committed the patch with revision 685173.

          People

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

            Dates

              Created:
              Updated:
              Resolved: