Announcement Announcement Module
No announcement yet.
How does dm-server resolve fragment bundles? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • How does dm-server resolve fragment bundles?


    I would like to figure out the way dm-server loads fragment bundles.

    For example:

    Fragment Host is deployed from within a plan. Fragment bundle is not included in the plan but sits in repository/usr.

    Will that fragment be attached to the host or it has to be included in the Fragment Host plan?

    How does it behave on:
    1. Clean start
    2. restart of the server without -clean

  • #2
    dm Server provisions fragments from the repository when deploying hosts which the fragments refer to. See com.springsource.kernel.userregion.internal.quasi. DependencyCalculator.satisfyHosts.

    -clean deletes the work directory including the deployer's recovery log which means that deployments are not replayed automatically. Artifacts in pickup are processed but programmatic deployments have to be repeated.

    When -clean is not specified, we replay the deployment of the artifacts listed in the deployer's recovery log. Note that we clean start Equinox on every restart because we don't trust the contents of Equinox storage if there has been a crash (we tried this for a period in 1.0 but found that it was subject to corruption).

    This should be the behaviour for the plan+fragments scenario you describe. The restart behaviour should simply depend on whether the plan is deployed or not. Dependency calculation will be repeated if the plan is deployed.