GitHub user vladimirfx opened a pull request:
https://github.com/apache/karaf/pull/291
[KARAF-4701] forcing deterministic heuristic of capbillities comparison for
Subsystem Resolver
When some bundle exactly duplicated in two or more installing features
Felix Resolver may randomly chose one that not already installed.
Karaf already use some hack for deterministic resolution in
CandidateComparator. But as now it can't produce stable result for absolutly
identical bundles.
This patch expand deterministic resolution hack to use Requirement identity
in comparison, ie compare from witch feature/subsystem/region bundle is coming.
Steps to reproduce described in bug report. All version from 4.0.6 up to
current master is affected. But with Felix Resolver 1.12.0 it is harder to
reproduce.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/cit-consulting/karaf KARAF-4701
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/karaf/pull/291.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #291
----
commit 847ea3366093d463c13e5796363f9a5231af2fdc
Author: Vladimir Konkov <[email protected]>
Date: 2017-03-24T09:50:23Z
[KARAF-4701] forcing deterministic heuristic of capbillities comparison for
Subsystem Resolver
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---