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

change AllocPage.ReadContainerInfo to catch ArrayIndexOutOfBoundsException and turn it into Derby error.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.6.1.0, 10.8.2.2
    • 10.10.2.1, 10.11.1.1
    • Store
    • None
    • High Value Fix

    Description

      Users have reported databases that will not boot with stack traces showing:
      Caused by: java.lang.ArrayIndexOutOfBoundsException
      at java.lang.System.arraycopy(Native Method)
      at org.apache.derby.impl.store.raw.data.AllocPage.ReadContainerInfo(Unknown Source)
      at org.apache.derby.impl.store.raw.data.FileContainer.readHeader(Unknown Source)

      I suggest the code be changed to catch the out of bounds and turn it
      into a StandardException and include as much runtime information as
      possible so that the underlying problem can be diagnosed. Information
      should include sizes of both arrays, the amount of data being copied ("N"),
      and possibly a hex dump of the source array.

      Attachments

        1. DERBY-6504.diff
          4 kB
          Myrna van Lunteren
        2. derby.logtry1
          19 kB
          Myrna van Lunteren
        3. derby.logtry2
          42 kB
          Myrna van Lunteren
        4. derby.logtry4
          35 kB
          Myrna van Lunteren
        5. DERBY-6504_3.diff
          4 kB
          Myrna van Lunteren
        6. DERBY-6504_errorcodetst.diff
          2 kB
          Myrna van Lunteren

        Issue Links

          Activity

            People

              myrna Myrna van Lunteren
              mikem Mike Matrigali
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: