[ https://issues.apache.org/jira/browse/FELIX-6633?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tom Watson updated FELIX-6633: ------------------------------ Fix Version/s: scr-2.2.10 > Dynamic references may miss events while causing deactivation > ------------------------------------------------------------- > > Key: FELIX-6633 > URL: https://issues.apache.org/jira/browse/FELIX-6633 > Project: Felix > Issue Type: Bug > Components: Declarative Services (SCR) > Affects Versions: scr-2.2.6 > Reporter: Tom Watson > Assignee: Tom Watson > Priority: Major > Fix For: scr-2.2.8, scr-2.2.10 > > > This issue sounds similar to issue FELIX-6616 but the cause is much > different. It still involves multiple threads that are > registering/unregistering services that are referenced by a dynamic reference > using 1..1 or m..n where m is >0 (set through configuration admin). > The scenario involves one thread unregistering a service that causes > deactivation while at the same time another thread is registering a service > that would again satisfy the cardinality of the reference. When this > happens the tracker can get into a state where it misses the registration > event while deactivating. > There are probably several ways to fix this, but the most simple seems to be > to add a call to recheck the dependency manager after deactivation. This is > similar to the other reference types that are not dynamic. -- This message was sent by Atlassian Jira (v8.20.10#820010)