Skip to content

OAK-9840: wait for all required MountInfoConfigs#623

Merged
kwin merged 2 commits intotrunkfrom
bugfix/mountinfoproviderservice-race-condition
Jul 18, 2022
Merged

OAK-9840: wait for all required MountInfoConfigs#623
kwin merged 2 commits intotrunkfrom
bugfix/mountinfoproviderservice-race-condition

Conversation

@kwin
Copy link
Member

@kwin kwin commented Jul 15, 2022

also consider later configs by making the reference greedy

also consider later configs by making the reference greedy
@kwin kwin requested review from mreutegg and smiroslav July 15, 2022 14:40
@jelmini
Copy link
Contributor

jelmini commented Jul 18, 2022

Thanks for catching this.

}

@Reference(cardinality = ReferenceCardinality.MULTIPLE)
@Reference(cardinality = ReferenceCardinality.MULTIPLE, policyOption = ReferencePolicyOption.GREEDY)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably this was thought to be dynamic (not static) as it is threadsafe (CopyOnWriteArrayList) and leads to less reactivation of this service. Also dynamic makes the greedy part obsolete: https://docs.osgi.org/specification/osgi.cmpn/8.0.0/service.component.html#d0e30480

@kwin kwin merged commit 455080d into trunk Jul 18, 2022
@kwin kwin deleted the bugfix/mountinfoproviderservice-race-condition branch July 18, 2022 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants