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

Missing/broken synchronization in BasicDependencyManager.getDependents()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.8.1.2
    • 10.8.1.2
    • SQL
    • None
    • Regression Test Failure

    Description

      The method getDependents(Provider) in BasicDependencyManager isn't using proper synchronization in cases where a list has to be compiled by combining in-memory and on-disk dependencies. Returning a reference to the list obtained from the shared map is also a bug.
      The test lang.XplainStatisticsTest.testSimpleQueryMultiWithInvalidation failed due to this issue (see [1]).

      [1] http://dbtg.foundry.sun.com/derby/test/Daily/jvm1.5/testing/testlog/lin/1050670-suitesAll_diff.txt

      Attachments

        1. derby-4947-1a-sync_fix.diff
          2 kB
          Kristian Waagan

        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: