Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-25318

ComponentManager doesn't start new components after hot reload

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 9.10
    • Fix Version/s: 10.10
    • Component/s: Runtime

      Description

      When doing a hot reload with new components, component manager doesn't start them when using the standby strategy (default one).

      This is an issue when reloading new java components.

      Here the culprit code:

      // activate the new components
      for (RegistrationInfo ri : stash.toAdd) {
          if (ri.isResolved()) {
              activateComponent(ri);
          }
      }
      if (isStandby()) {
          // activate the new components
          for (RegistrationInfo ri : stash.toAdd) {
              if (ri.isResolved()) {
                  activateComponent(ri);
                  // add new components to standby list
                  this.standby.add(ri);
              }
          }
      }
      

        Attachments

          Activity

            People

            • Assignee:
              kleturc Kevin Leturc
              Reporter:
              kleturc Kevin Leturc
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 45 minutes
                45m