[
https://issues.apache.org/jira/browse/KARAF-4698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15465180#comment-15465180
]
ASF GitHub Bot commented on KARAF-4698:
---------------------------------------
GitHub user shyrkov opened a pull request:
https://github.com/apache/karaf-cellar/pull/34
KARAF-4698 - proper handling of uninstalling bundle in cluster when one of
the nodes is offline
Ticket: https://issues.apache.org/jira/browse/KARAF-4698
Resolution: now the bundle state is not removed from the cluster map on
uninstall, but rather updated with the state Bundle.UNINSTALLED. The
BundleSynchronizer is also handling that state properly on cluster pull
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/shyrkov/karaf-cellar KARAF-4698
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/karaf-cellar/pull/34.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 #34
----
commit 8a1774a8d10fb08bc9ca7602b030a2d465db2a38
Author: Sergiy Shyrkov <[email protected]>
Date: 2016-09-05T14:32:00Z
KARAF-4698 - proper handling of uninstalling bundle in cluster when one of
the nodes is offline
Now the bundle state is not removed from the cluster map on uninstall, but
rather updated with the state Bundle.UNINSTALLED. The BundleSynchronizer is
also handling that state properly on cluster pull
----
> Cellar handling of cluster:bundle-uninstall when one of the cluster nodes is
> offline
> ------------------------------------------------------------------------------------
>
> Key: KARAF-4698
> URL: https://issues.apache.org/jira/browse/KARAF-4698
> Project: Karaf
> Issue Type: Bug
> Components: cellar-bundle
> Affects Versions: cellar-4.0.1
> Reporter: Sergiy Shyrkov
>
> My setup: two Karaf 4.0.6 + Cellar 4.0.1 (same with the latest
> 4.0.2-SNAPSHOT) instances, say "root" and "child"
> Scenario:
> 1) Both instances are started
> 2) Install and start say commons-math bundle in cluster
> {{cluster:bundle-install -s default mvn:org.apache.commons/commons-math/2.2}}
> 3) The state of the bundle on both nodes is correct: Active
> {{cluster:bundle-list default | grep 'Commons Math'}}
> 4) I stop the second instance
> {{instance:stop child}}
> 5) Uninstall commons-math from cluster
> {{cluster:bundle-uninstall default commons-math/2.2}}
> 6) Start child instance
> {{instance:start child}}
> On startup of the child instance it "pushes" the commons-math to the cluster
> and thus the bundle is again installed across the cluster
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)