Karaf Cellar sync issue and NullPointerException

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Karaf Cellar sync issue and NullPointerException

imranrazakhan
I am new to cellar and trying to do POC, I did following steps

 - Install Karaf(4.1.5) on two instances.
 - feature:repo-add
mvn:org.apache.karaf.cellar/apache-karaf-cellar/4.1.1/xml/features (On both
instances)
 - feature:install cellar (On both instances)
 - Edit hazelcast.xml on both instances and set following section (On both
instances)

>     <tcp-ip enabled="true">
>         <interface>10.10.10.11</interface>
>         <interface>10.10.10.12</interface>
>     </tcp-ip>

 - When i check cluster status(cluster:node-list) following is output

 

    │Id              │Alias│Host Name  │Port

    ┼────────────────┼─────┼───────────┼────

    │10.10.10.12:5701│     │10.10.10.12│5701

    │10.10.10.11:5701│     │10.10.10.11│5701

As auto sync is not enabled i installed camel-scr bundle on one instance and
on running cluster-sync i am getting below error and now it also removing
some features and camel-scr goes back to uninstall state

    2018-06-06T10:25:34,165 | INFO  | pipe-feature:install camel-scr |
FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
4.1.5 | Adding
    features: camel-scr/[2.19.5,2.19.5]
    2018-06-06T10:25:35,806 | INFO  | features-2-thread-1 |
FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
4.1.5 | Changes to perform
    :
    2018-06-06T10:25:35,825 | INFO  | features-2-thread-1 |
FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
4.1.5 |   Region: root
    2018-06-06T10:25:35,825 | INFO  | features-2-thread-1 |
FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
4.1.5 |     Bundles to ins
    tall:
    2018-06-06T10:25:35,826 | INFO  | features-2-thread-1 |
FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
4.1.5 |       mvn:org.apac
    he.camel/camel-scr/2.19.5
    2018-06-06T10:25:35,828 | INFO  | features-2-thread-1 |
FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
4.1.5 | Installing bundles
    :
    2018-06-06T10:25:35,828 | INFO  | features-2-thread-1 |
FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
4.1.5 |   mvn:org.apache.c
    amel/camel-scr/2.19.5
    2018-06-06T10:25:35,846 | INFO  | features-2-thread-1 |
FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
4.1.5 | Starting bundles:
    2018-06-06T10:25:35,847 | INFO  | features-2-thread-1 |
FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
4.1.5 |   org.apache.camel
    .camel-scr/2.19.5
    2018-06-06T10:25:35,866 | INFO  | features-2-thread-1 |
FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
4.1.5 | Done.

****************** Here i run cluster:sync *****************

    2018-06-06T10:26:01,936 | INFO  | pipe-cluster:sync |
FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
4.1.5 | Removing features: f
    eature:service/[4.1.5,4.1.5], feature:wrapper/[4.1.5,4.1.5],
feature:eventadmin/[4.1.5,4.1.5], feature:config/[4.1.5,4.1.5],
feature:jaas/[4.1.5,4.1.5], fe
    ature:aries-blueprint/[4.1.5,4.1.5], feature:ssh/[4.1.5,4.1.5],
feature:framework/[4.1.5,4.1.5], feature:feature/[4.1.5,4.1.5],
feature:shell/[4.1.5,4.1.5]
    , feature:camel-scr/[2.19.5,2.19.5], feature:shell-compat/[4.1.5,4.1.5],
feature:kar/[4.1.5,4
    .1.5], feature:webconsole/[4.1.5,4.1.5], feature:system/[4.1.5,4.1.5],
feature:diagnostic/[4.1.5,4.1.5], feature:management/[4.1.5,4.1.5],
feature:deployer
    /[4.1.5,4.1.5], feature:wrap/[0,0.0.0], feature:bundle/[4.1.5,4.1.5],
feature:instance/[4.1.5,4.1.5], feature:log/[4.1.5,4.1.5]
    2018-06-06T10:26:02,062 | WARN  | pipe-cluster:sync |
FeaturesSynchronizer             | 262 - org.apache.karaf.cellar.features -
4.1.1 | Can't get local f
    eatures repositories
    org.osgi.service.resolver.ResolutionException: Unable to resolve root:
missing requirement [root] osgi.identity; osgi.identity=cellar;
type=karaf.feature;
    version="[4.1.1,4.1.1]";
filter:="(&(osgi.identity=cellar)(type=karaf.feature)(version>=4.1.1)(version<=4.1.1))"
[caused by: Unable to resolve cellar/4.1.1
    : missing requirement [cellar/4.1.1] karaf.cellar.provider [caused by:
Unable to resolve cellar-hazelcast/4.1.1: missing requirement
[cellar-hazelcast/4.1.
    1] osgi.identity; osgi.identity=org.apache.karaf.cellar.hazelcast;
type=osgi.bundle; version="[4.1.1,4.1.1]"; resolution:=mandatory [caused by:
Unable to r
    esolve org.apache.karaf.cellar.hazelcast/4.1.1: missing requirement
[org.apache.karaf.cellar.hazelcast/4.1.1] osgi.wiring.package;
filter:="(&(osgi.wiring.
    package=org.apache.aries.proxy)(version>=1.0.0)(!(version>=2.0.0)))"
[caused by: Unable to resolve org.apache.aries.proxy/1.1.1: missing
requirement [org.a
    pache.aries.proxy/1.1.1] osgi.wiring.package;
filter:="(&(osgi.wiring.package=org.slf4j)(version>=1.7.0)(!(version>=2.0.0)))"]]]]
            at
org.apache.felix.resolver.ResolutionError.toException(ResolutionError.java:42)
~[?:?]
            at
org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:391)
~[?:?]
            at
org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:377) ~[?:?]
            at
org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:349) ~[?:?]
            at
org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:218)
~[?:?]
            at
org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:291)
~[?:?]
            at
org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1248)
~[?:?]
            at
org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$1(FeaturesServiceImpl.java:1147)
~[?:?]
            at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[?:?]
            at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[?:?]
            at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[?:?]
            at java.lang.Thread.run(Thread.java:748) [?:?]
    2018-06-06T10:26:02,413 | INFO  | pipe-cluster:sync |
FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
4.1.5 | Removing features: f
    eature:camel-scr/[2.19.5,2.19.5]
    2018-06-06T10:26:03,790 | INFO  | features-2-thread-1 |
FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
4.1.5 | No deployment chan
    ge.
    2018-06-06T10:26:03,796 | INFO  | features-2-thread-1 |
FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
4.1.5 | Done.
    2018-06-06T10:26:03,841 | WARN  | pipe-cluster:sync |
FeaturesSynchronizer             | 262 - org.apache.karaf.cellar.features -
4.1.1 | CELLAR FEATURE: c
    an't add repository
    java.lang.NullPointerException: Null value is not allowed!
            at
com.hazelcast.util.Preconditions.checkNotNull(Preconditions.java:59)
[256:com.hazelcast:3.8.5]
            at
com.hazelcast.map.impl.proxy.MapProxyImpl.put(MapProxyImpl.java:125)
[256:com.hazelcast:3.8.5]
            at
com.hazelcast.map.impl.proxy.MapProxyImpl.put(MapProxyImpl.java:119)
[256:com.hazelcast:3.8.5]
            at
org.apache.karaf.cellar.features.FeaturesSynchronizer.push(FeaturesSynchronizer.java:249)
[262:org.apache.karaf.cellar.features:4.1.1]
            at
org.apache.karaf.cellar.features.FeaturesSynchronizer.sync(FeaturesSynchronizer.java:89)
[262:org.apache.karaf.cellar.features:4.1.1]
            at
org.apache.karaf.cellar.shell.SyncCommand.doSync(SyncCommand.java:130)
[265:org.apache.karaf.cellar.shell:4.1.1]
            at
org.apache.karaf.cellar.shell.SyncCommand.doExecute(SyncCommand.java:92)
[265:org.apache.karaf.cellar.shell:4.1.1]
            at
org.apache.karaf.cellar.core.shell.CellarCommandSupport.execute(CellarCommandSupport.java:62)
[261:org.apache.karaf.cellar.core:4.1.1]
            at
org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84)
[171:org.apache.karaf.shell.core:4.1.5]
            at
org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
[171:org.apache.karaf.shell.core:4.1.5]
            at
org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
[171:org.apache.karaf.shell.core:4.1.5]
            at
org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:571)
[171:org.apache.karaf.shell.core:4.1.5]
            at
org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:497)
[171:org.apache.karaf.shell.core:4.1.5]
            at
org.apache.felix.gogo.runtime.Closure.execute(Closure.java:386)
[171:org.apache.karaf.shell.core:4.1.5]
            at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417)
[171:org.apache.karaf.shell.core:4.1.5]
            at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229)
[171:org.apache.karaf.shell.core:4.1.5]
            at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59)
[171:org.apache.karaf.shell.core:4.1.5]
            at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[?:?]
            at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[?:?]
            at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[?:?]
            at java.lang.Thread.run(Thread.java:748) [?:?]

 




--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
Reply | Threaded
Open this post in threaded view
|

Re: Karaf Cellar sync issue and NullPointerException

jbonofre
Hi,

I gonna check but it seems that a refresh has been triggered, upgrading
proxy which breaks Cellar itself, probably due to camel-scr feature.

By the way, you can use cluster:feature-install, cluster-sync is not
required, it's only used when you have a split brain.

Regards
JB

On 11/06/2018 22:44, imranrazakhan wrote:

> I am new to cellar and trying to do POC, I did following steps
>
>  - Install Karaf(4.1.5) on two instances.
>  - feature:repo-add
> mvn:org.apache.karaf.cellar/apache-karaf-cellar/4.1.1/xml/features (On both
> instances)
>  - feature:install cellar (On both instances)
>  - Edit hazelcast.xml on both instances and set following section (On both
> instances)
>
>>     <tcp-ip enabled="true">
>>         <interface>10.10.10.11</interface>
>>         <interface>10.10.10.12</interface>
>>     </tcp-ip>
>
>  - When i check cluster status(cluster:node-list) following is output
>
>  
>
>     │Id              │Alias│Host Name  │Port
>
>     ┼────────────────┼─────┼───────────┼────
>
>     │10.10.10.12:5701│     │10.10.10.12│5701
>
>     │10.10.10.11:5701│     │10.10.10.11│5701
>
> As auto sync is not enabled i installed camel-scr bundle on one instance and
> on running cluster-sync i am getting below error and now it also removing
> some features and camel-scr goes back to uninstall state
>
>     2018-06-06T10:25:34,165 | INFO  | pipe-feature:install camel-scr |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.1.5 | Adding
>     features: camel-scr/[2.19.5,2.19.5]
>     2018-06-06T10:25:35,806 | INFO  | features-2-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.1.5 | Changes to perform
>     :
>     2018-06-06T10:25:35,825 | INFO  | features-2-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.1.5 |   Region: root
>     2018-06-06T10:25:35,825 | INFO  | features-2-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.1.5 |     Bundles to ins
>     tall:
>     2018-06-06T10:25:35,826 | INFO  | features-2-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.1.5 |       mvn:org.apac
>     he.camel/camel-scr/2.19.5
>     2018-06-06T10:25:35,828 | INFO  | features-2-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.1.5 | Installing bundles
>     :
>     2018-06-06T10:25:35,828 | INFO  | features-2-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.1.5 |   mvn:org.apache.c
>     amel/camel-scr/2.19.5
>     2018-06-06T10:25:35,846 | INFO  | features-2-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.1.5 | Starting bundles:
>     2018-06-06T10:25:35,847 | INFO  | features-2-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.1.5 |   org.apache.camel
>     .camel-scr/2.19.5
>     2018-06-06T10:25:35,866 | INFO  | features-2-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.1.5 | Done.
>
> ****************** Here i run cluster:sync *****************
>
>     2018-06-06T10:26:01,936 | INFO  | pipe-cluster:sync |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.1.5 | Removing features: f
>     eature:service/[4.1.5,4.1.5], feature:wrapper/[4.1.5,4.1.5],
> feature:eventadmin/[4.1.5,4.1.5], feature:config/[4.1.5,4.1.5],
> feature:jaas/[4.1.5,4.1.5], fe
>     ature:aries-blueprint/[4.1.5,4.1.5], feature:ssh/[4.1.5,4.1.5],
> feature:framework/[4.1.5,4.1.5], feature:feature/[4.1.5,4.1.5],
> feature:shell/[4.1.5,4.1.5]
>     , feature:camel-scr/[2.19.5,2.19.5], feature:shell-compat/[4.1.5,4.1.5],
> feature:kar/[4.1.5,4
>     .1.5], feature:webconsole/[4.1.5,4.1.5], feature:system/[4.1.5,4.1.5],
> feature:diagnostic/[4.1.5,4.1.5], feature:management/[4.1.5,4.1.5],
> feature:deployer
>     /[4.1.5,4.1.5], feature:wrap/[0,0.0.0], feature:bundle/[4.1.5,4.1.5],
> feature:instance/[4.1.5,4.1.5], feature:log/[4.1.5,4.1.5]
>     2018-06-06T10:26:02,062 | WARN  | pipe-cluster:sync |
> FeaturesSynchronizer             | 262 - org.apache.karaf.cellar.features -
> 4.1.1 | Can't get local f
>     eatures repositories
>     org.osgi.service.resolver.ResolutionException: Unable to resolve root:
> missing requirement [root] osgi.identity; osgi.identity=cellar;
> type=karaf.feature;
>     version="[4.1.1,4.1.1]";
> filter:="(&(osgi.identity=cellar)(type=karaf.feature)(version>=4.1.1)(version<=4.1.1))"
> [caused by: Unable to resolve cellar/4.1.1
>     : missing requirement [cellar/4.1.1] karaf.cellar.provider [caused by:
> Unable to resolve cellar-hazelcast/4.1.1: missing requirement
> [cellar-hazelcast/4.1.
>     1] osgi.identity; osgi.identity=org.apache.karaf.cellar.hazelcast;
> type=osgi.bundle; version="[4.1.1,4.1.1]"; resolution:=mandatory [caused by:
> Unable to r
>     esolve org.apache.karaf.cellar.hazelcast/4.1.1: missing requirement
> [org.apache.karaf.cellar.hazelcast/4.1.1] osgi.wiring.package;
> filter:="(&(osgi.wiring.
>     package=org.apache.aries.proxy)(version>=1.0.0)(!(version>=2.0.0)))"
> [caused by: Unable to resolve org.apache.aries.proxy/1.1.1: missing
> requirement [org.a
>     pache.aries.proxy/1.1.1] osgi.wiring.package;
> filter:="(&(osgi.wiring.package=org.slf4j)(version>=1.7.0)(!(version>=2.0.0)))"]]]]
>             at
> org.apache.felix.resolver.ResolutionError.toException(ResolutionError.java:42)
> ~[?:?]
>             at
> org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:391)
> ~[?:?]
>             at
> org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:377) ~[?:?]
>             at
> org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:349) ~[?:?]
>             at
> org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:218)
> ~[?:?]
>             at
> org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:291)
> ~[?:?]
>             at
> org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1248)
> ~[?:?]
>             at
> org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$1(FeaturesServiceImpl.java:1147)
> ~[?:?]
>             at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> [?:?]
>             at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> [?:?]
>             at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> [?:?]
>             at java.lang.Thread.run(Thread.java:748) [?:?]
>     2018-06-06T10:26:02,413 | INFO  | pipe-cluster:sync |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.1.5 | Removing features: f
>     eature:camel-scr/[2.19.5,2.19.5]
>     2018-06-06T10:26:03,790 | INFO  | features-2-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.1.5 | No deployment chan
>     ge.
>     2018-06-06T10:26:03,796 | INFO  | features-2-thread-1 |
> FeaturesServiceImpl              | 11 - org.apache.karaf.features.core -
> 4.1.5 | Done.
>     2018-06-06T10:26:03,841 | WARN  | pipe-cluster:sync |
> FeaturesSynchronizer             | 262 - org.apache.karaf.cellar.features -
> 4.1.1 | CELLAR FEATURE: c
>     an't add repository
>     java.lang.NullPointerException: Null value is not allowed!
>             at
> com.hazelcast.util.Preconditions.checkNotNull(Preconditions.java:59)
> [256:com.hazelcast:3.8.5]
>             at
> com.hazelcast.map.impl.proxy.MapProxyImpl.put(MapProxyImpl.java:125)
> [256:com.hazelcast:3.8.5]
>             at
> com.hazelcast.map.impl.proxy.MapProxyImpl.put(MapProxyImpl.java:119)
> [256:com.hazelcast:3.8.5]
>             at
> org.apache.karaf.cellar.features.FeaturesSynchronizer.push(FeaturesSynchronizer.java:249)
> [262:org.apache.karaf.cellar.features:4.1.1]
>             at
> org.apache.karaf.cellar.features.FeaturesSynchronizer.sync(FeaturesSynchronizer.java:89)
> [262:org.apache.karaf.cellar.features:4.1.1]
>             at
> org.apache.karaf.cellar.shell.SyncCommand.doSync(SyncCommand.java:130)
> [265:org.apache.karaf.cellar.shell:4.1.1]
>             at
> org.apache.karaf.cellar.shell.SyncCommand.doExecute(SyncCommand.java:92)
> [265:org.apache.karaf.cellar.shell:4.1.1]
>             at
> org.apache.karaf.cellar.core.shell.CellarCommandSupport.execute(CellarCommandSupport.java:62)
> [261:org.apache.karaf.cellar.core:4.1.1]
>             at
> org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84)
> [171:org.apache.karaf.shell.core:4.1.5]
>             at
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
> [171:org.apache.karaf.shell.core:4.1.5]
>             at
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
> [171:org.apache.karaf.shell.core:4.1.5]
>             at
> org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:571)
> [171:org.apache.karaf.shell.core:4.1.5]
>             at
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:497)
> [171:org.apache.karaf.shell.core:4.1.5]
>             at
> org.apache.felix.gogo.runtime.Closure.execute(Closure.java:386)
> [171:org.apache.karaf.shell.core:4.1.5]
>             at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417)
> [171:org.apache.karaf.shell.core:4.1.5]
>             at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229)
> [171:org.apache.karaf.shell.core:4.1.5]
>             at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59)
> [171:org.apache.karaf.shell.core:4.1.5]
>             at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> [?:?]
>             at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> [?:?]
>             at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> [?:?]
>             at java.lang.Thread.run(Thread.java:748) [?:?]
>
>  
>
>
>
>
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
>

--
Jean-Baptiste Onofré
[hidden email]
http://blog.nanthrax.net
Talend - http://www.talend.com
Reply | Threaded
Open this post in threaded view
|

Re: Karaf Cellar sync issue and NullPointerException

imranrazakhan
Hi,

I tried cluster-sync with other camel feature and behavior was same.

cluster:feature-install is working as expected.

Can you please elaborate about below statement with example ?

"/cluster-sync is not required, it's only used when you have a split brain/"

Regards,



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
Reply | Threaded
Open this post in threaded view
|

Re: Karaf Cellar sync issue and NullPointerException

jbonofre
Hi,

When you do cluster:feature-install, the node send an event to the other
nodes (and himself) to update as well.

cluster:sync does the same but reading the features/bundles/configs
state from the distributed map. So, if you use cluster:feature-install,
no need to use cluster:sync, the sync is already done.

I gonna check if the read from the distributed map doesn't have an issue.

Regards
JB

On 12/06/2018 11:59, imranrazakhan wrote:

> Hi,
>
> I tried cluster-sync with other camel feature and behavior was same.
>
> cluster:feature-install is working as expected.
>
> Can you please elaborate about below statement with example ?
>
> "/cluster-sync is not required, it's only used when you have a split brain/"
>
> Regards,
>
>
>
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
>

--
Jean-Baptiste Onofré
[hidden email]
http://blog.nanthrax.net
Talend - http://www.talend.com