Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-5383

Support parallel bundle starting

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: fileinstall-3.5.4
    • Fix Version/s: fileinstall-3.7.0
    • Component/s: File Install
    • Labels:
      None

      Description

      I have an application that uses Felix File Install to start a set of bundles that use Blueprint configuration extensively, but with the poll time disabled (felix.fileinstall.poll = 0) because I only want the bundles started at application startup time. Sometimes one bundle might have a Blueprint service dependency provided by another bundle such that when started and that other bundle has not been started yet causes a service timeout. The ordering File Install uses to start bundles is indeterminate (a HashSet is passed to startBundles(Collection<Bundle> bundles)) so I thought a good solution would be to start bundles in parallel, so if one bundle gets stuck when starting, waiting for a Blueprint service to become available, other bundles can continue to be started under the assumption one of them will be providing that service "soon".

        Attachments

          Activity

            People

            • Assignee:
              gnodet Guillaume Nodet
              Reporter:
              msqr Matt Magoffin
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: