Reloaded components are not started

When components get reloaded they will stay in activated state and will not get started.

The problem seems to be in ComponentManagerImpl.applyStashWhenRunning () where new components are activated in one loop, and then in the next “isStandby()” loop when new components should be added to standby list, components are already in activated state instead of resolved, so they will not be added to the list.

Because components are not added to the standby list, they will not be started when resumed.

// 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);
        }
    }
}
0 votes

1 answers

1282 views

ANSWER



Hello,

Thanks for reporting this issue.

I created NXP-25318 to fix it.

Thanks

0 votes



Thank you for looking into this.
07/05/2018