Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-161

Complex metadata dependency relationships behaving inconsistently between identical execution runs

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0.A1, 1.0.0.A2, 1.0.0.M1, 1.0.0.M2
    • Fix Version/s: 1.0.0.RC1
    • Component/s: @ CORE
    • Labels:
      None

      Description

      Repeated execution of the following command will occasionally result in an exception:

      rm -rf * .*; roo-dev script wedding.roo

      An exception resulted on an intermittent basis. Research showed the WebScaffoldMetadata was reacting to an upstream dependency change and acquiring a particular instance of EntityMetadata. It would then iterate the dynamic finders declared by EntityMetadata and request a FinderMetadata instance. The FinderMetadata instance would be using a different instance of EntityMetadata (this was confirmed via System.identityHashCode(Object) calls). The problem is that EntityMetadata was not eagerly evicted from the cache. The intermittent nature of the problem was due to unordered Collection instances (specifically HashSet and HashMap) being used to store metadata dependency information, and the different ordering for notifications that subsequently resulted.

        Attachments

          Activity

            People

            Assignee:
            balex Ben Alex
            Reporter:
            balex Ben Alex
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: