Uploaded image for project: 'JBoss Cache'
  1. JBoss Cache
  2. JBCACHE-1096

UpgradeException should print IdentityLock instances

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 2.0.0.CR2, 1.4.1.SP3
    • Fix Version/s: 2.0.0.CR3, 1.4.1.SP4
    • Component/s: None
    • Labels:
      None
    • Estimated Difficulty:
      Low

      Description

      When a TimeoutException is reported, the exception prints lock information (IdentityLock.toString(true)), ie.

      Read lock owners: []
      Write lock owner: GlobalTransaction:<172.26.250.183:35277>:13350
      , lock info: write owner=GlobalTransaction:<172.26.250.183:35277>:13350 (activeReaders=0, activeWriter=Thread[http-172.26.250.183-8180-10,5,jboss], waitingReaders=0, waitingWriters=0, waitingUpgrader=0)

      This is quite useful for debugging purpouses because it reports which thread is holding the lock as well
      as the transaction id.

      However, when an UpgradeException is reported, this information is not provided:

      Read lock owners: [GlobalTransaction:<adrxww03:32804>:1628]
      Write lock owner: null

      It'd be nice if UpgradeException could print IdentityLock information as it would help debugging which thread is holding the locks

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                manik Manik Surtani
                Reporter:
                galder.zamarreno Galder ZamarreƱo
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: