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

Error messages for deadlocks contain less information than in 10.2

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.3.1.4
    • 10.3.1.4
    • Services
    • None
    • Regression

    Description

      In 10.2, an error message for a deadlock would look like this:

      ERROR 40001: A lock could not be obtained due to a deadlock, cycle of locks and waiters is:
      Lock : ROW, T, (1,8)
      Waiting XID :

      {235, S}

      , APP, select * from t where id = 2
      Granted XID :

      {238, X}


      Lock : ROW, T, (1,7)
      Waiting XID :

      {238, S}

      , APP, select * from t where id = 1
      Granted XID :

      {235, X}


      . The selected victim is XID : 235.

      On trunk, the same deadlock would be reported as

      java.sql.SQLException: A lock could not be obtained due to a deadlock, cycle of locks and waiters is:
      Lock : ROW, T, (1,8)
      Waiting XID :

      {org.apache.derby.impl.services.locks.LockSpace@94884d, S}


      Granted XID :

      {org.apache.derby.impl.services.locks.LockSpace@da6bf4, X}


      Lock : ROW, T, (1,7)
      Waiting XID :

      {org.apache.derby.impl.services.locks.LockSpace@da6bf4, S}


      Granted XID :

      {org.apache.derby.impl.services.locks.LockSpace@94884d, X}


      . The selected victim is XID : org.apache.derby.impl.services.locks.LockSpace@94884d.

      That is, the transaction id and the failing statement are not shown.

      Attachments

        1. timeout.diff
          0.9 kB
          Knut Anders Hatlen
        2. deadlock.diff
          0.8 kB
          Knut Anders Hatlen

        Issue Links

          Activity

            People

              knutanders Knut Anders Hatlen
              knutanders Knut Anders Hatlen
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: