Uploaded image for project: 'Brooklyn'
  1. Brooklyn
  2. BROOKLYN-600

Failed blueprint deployment: entities not cleaned up under-the-covers

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.12.0
    • Fix Version/s: 1.0.0-M1
    • Labels:
      None

      Description

      When a blueprint deployment fails, it can leave partially-created entities behind. These are referenced under-the-covers in LocalEntityManager.preRegisteredEntitiesById and preManagedEntitiesById, so are entirely hidden from the user. However, it is bad that we leave them around, and it was a contributing factor to https://issues.apache.org/jira/browse/BROOKLYN-599.

      For example, deploying this blueprint fails (because QpidQueue entity expects to have as a parent a QpidBroker).

      ```
      services:

      • type: org.apache.brooklyn.entity.messaging.qpid.QpidQueue
        ```

      However, the failed app/entity is still held in memory.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                aled.sage Aled Sage
                Reporter:
                aled.sage Aled Sage
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: