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

Deadlock-prone synchronization in BasicDependencyManager

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.8.1.2
    • 10.8.1.2
    • SQL
    • None

    Description

      The synchronization in BasicDependencyManager is prone to deadlock, because database locks are obtained while holding the monitor on "this".
      Problem observed when testing the automatic index statistics update prototype.

      There are comments in the file suggesting that in-memory dependencies should be accessed while holding the Java monitor, but the monitor should not be held when accessing stored dependencies. The implementation is breaking this rule/suggestion.

      Attachments

        Issue Links

          Activity

            People

              kristwaa Kristian Waagan
              kristwaa Kristian Waagan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: