Derby
  1. Derby
  2. DERBY-555

Unable to restart after disk is full

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 10.2.1.6
    • Fix Version/s: 10.1.3.3, 10.2.1.6
    • Component/s: Store
    • Labels:
      None
    • Environment:
      Sun Sparc Solaris, 1.4 JDK, Derby Client/Server

      Description

      1. Inserted data into the database until the disk was full. (5 clients inserting into 5 different tables in parallel.)
      2. Shut down the server
      3. Start the database again without freeing any disk space.

      When I try to start the database again, I get Null-pointer-exception, regardless of how I connect (have tried embedded, client server, ij, jdbc applications). I have not tried to free some space on the disk before starting.

      The call stack is not available right now (the computer I used had to be shut down due to problems with our cooling system), but the exception comes from the following line in RawStore.java:
      properties.put(Attribute.LOG_DEVICE, logFactory.getCanonicalLogPath());

      getCanonicalLogPath() returns null which results in a NPE in the hash table.
      A quick debug before the computer was stopped, showed that the logFactory was an instance of org.apache.derby.impl.store.raw.log.ReadOnly which always returns null in its getCanonicalLogPath().

      I suspect this may be related to the fact that I ran with the log in a non-default location.

      1. derby-555a.diff
        10 kB
        Øystein Grøvlen

        Issue Links

          Activity

          Øystein Grøvlen created issue -
          Øystein Grøvlen made changes -
          Field Original Value New Value
          Attachment derby-555.diff [ 12314493 ]
          Øystein Grøvlen made changes -
          Attachment derby-555a.diff [ 12314706 ]
          Øystein Grøvlen made changes -
          Attachment derby-555.diff [ 12314493 ]
          Øystein Grøvlen made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Øystein Grøvlen made changes -
          Fix Version/s 10.2.0.0 [ 11187 ]
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Øystein Grøvlen made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Kathey Marsden made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Kathey Marsden made changes -
          Resolution Fixed [ 1 ]
          Fix Version/s 10.1.3.3 [ 12313478 ]
          Status Reopened [ 4 ] Closed [ 6 ]
          Myrna van Lunteren made changes -
          Link This issue relates to DERBY-5686 [ DERBY-5686 ]
          Gavin made changes -
          Workflow jira [ 12324131 ] Default workflow, editable Closed status [ 12801796 ]

            People

            • Assignee:
              Øystein Grøvlen
              Reporter:
              Øystein Grøvlen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development