Skip to content

Deactivation order of components can be wrong #1108

In review

Description

@paulquiring

Description

Scenario that does not match expected behavior: When A and B both depend on D, D could already be sent SIGTERM as soon as A had finished deactivation, while B was still in its graceful shutdown.

Problem notifications

No response

Analysis results

The IComponent only has a single "active()" method which returns false as soon as the component starts deactivation. !active() is interpreted as stopped by the Transition

Solution

Proposed immediate solution:
The active() state should only be used during setting up of the transition. From then on the transition state should only be updated via the information received with onNodeFinished

Long term solution:
The component state should live on the main thread (out of scope here)

Error Occurrence Rate

Reproducible

How to reproduce

Test will be added to check for regression.

Supporting Information

No response

Classification

Major

First Affected Release

0.6

Last Affected Release

not released (main)

Expected Fixed Release

before release (main)

Category

  • Safety Relevant
  • Security Relevant

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions