On Tue, 2017-01-10 at 19:11 -0700, lancedolan wrote: > Not sure if I've experienced an intermittent but severe defect, or if > I did > something wrong when attempting this yesterday. > > I followed the exact same steps today, and the new instance *did* > successfully join. Either I'm wrong, and I actually did something > differently yesterday, or this is an intermittent defect and a big > bummer. > I'll keep trying to reproduce.
OK, let's see if this happens again. By the way, did you - start up an instance - stop it - copy it to another directory to create a new instance ? This would mean that they would use the same sling.id and would probably confuse the discovery mechanism. Robert > > Here is the log output from one of the instances that was already in > the > cluster when the new one joined: > > ************************** > 09.01.2017 16:20:36.062 *INFO* > [DocumentDiscoveryLiteService-BackgroundWorker-[1]] > org.apache.jackrabbit.oak.plugins.document.DocumentDiscoveryLiteServi > ce > doCheckView: view has changed from: a ClusterView[valid=true, > viewSeqNum=2, > clusterViewId=ae406105-3c77-4498-b8fc-1557b012d46d, activeIds=1,2, > recoveringIds=null, inactiveIds=null] to: a ClusterView[valid=true, > viewSeqNum=3, clusterViewId=ae406105-3c77-4498-b8fc-1557b012d46d, > activeIds=1, recoveringIds=null, inactiveIds=2] - sending event... > 09.01.2017 16:20:36.063 *INFO* > [DocumentDiscoveryLiteService-BackgroundWorker-[1]] > org.apache.jackrabbit.oak.plugins.document.DocumentDiscoveryLiteServi > ce > checkView: view changed from: a > ClusterView[{"seq":2,"final":true,"id":"ae406105-3c77-4498-b8fc- > 1557b012d46d","me":1,"active":[1,2],"deactivating":[],"inactive":[]}] > , > to: a > ClusterView[{"seq":3,"final":false,"id":"ae406105-3c77-4498-b8fc- > 1557b012d46d","me":1,"active":[1],"deactivating":[2],"inactive":[]}], > hasInstancesWithBacklog: true > 09.01.2017 16:20:37.168 *INFO* [Thread-31] > org.apache.sling.discovery.impl.DiscoveryServiceImpl enqueueForAll: > sending > PROPERTIES_CHANGED to all listeners (oldView=TopologyViewImpl > [current=false, super.hashCode=1259039663, instances=[an > InstanceDescription[slindId=3d4f31d9-b3ba-4e32-aa10-36ef150a37f0, > isLeader=true, isOwn=true, > clusterViewId=20a0797b-e957-4b8e-845b-9b9e0b6a246d, > properties={org.apache.sling.instance.endpoints=, > org.apache.sling.event.jobs.consumer.topics=/,com/composum/sling/core > /pckgmgr/PackageJobExecutor,com/composum/sling/core/script/GroovyJobE > xecutor,org/apache/sling/event/impl/jobs/tasks/HistoryCleanUpTask,sli > ng/webconsole/test, > org.apache.sling.instance.name=Instance > 3d4f31d9-b3ba-4e32-aa10-36ef150a37f0, > org.apache.sling.instance.description=Instance with id > 3d4f31d9-b3ba-4e32-aa10-36ef150a37f0 and run modes [oak_mongo, > oak]}], an > InstanceDescription[slindId=cc9e3513-8f6c-460d-b27e-dd3844aa629d, > isLeader=false, isOwn=false, > clusterViewId=20a0797b-e957-4b8e-845b-9b9e0b6a246d, > properties={org.apache.sling.instance.endpoints=, > org.apache.sling.event.jobs.consumer.topics=/,com/composum/sling/core > /pckgmgr/PackageJobExecutor,com/composum/sling/core/script/GroovyJobE > xecutor,org/apache/sling/event/impl/jobs/tasks/HistoryCleanUpTask,sli > ng/webconsole/test, > org.apache.sling.instance.name=Instance > cc9e3513-8f6c-460d-b27e-dd3844aa629d, > org.apache.sling.instance.description=Instance with id > cc9e3513-8f6c-460d-b27e-dd3844aa629d and run modes [oak_mongo, > oak]}]]], > newView=TopologyViewImpl [current=true, super.hashCode=238080023, > instances=[an > InstanceDescription[slindId=3d4f31d9-b3ba-4e32-aa10-36ef150a37f0, > isLeader=true, isOwn=true, > clusterViewId=20a0797b-e957-4b8e-845b-9b9e0b6a246d, > properties={org.apache.sling.instance.endpoints=, > org.apache.sling.event.jobs.consumer.topics=/,com/composum/sling/core > /pckgmgr/PackageJobExecutor,com/composum/sling/core/script/GroovyJobE > xecutor,org/apache/sling/event/impl/jobs/tasks/HistoryCleanUpTask,sli > ng/webconsole/test, > org.apache.sling.instance.name=Instance > 3d4f31d9-b3ba-4e32-aa10-36ef150a37f0, > org.apache.sling.instance.description=Instance with id > 3d4f31d9-b3ba-4e32-aa10-36ef150a37f0 and run modes [oak_mongo, > oak]}], an > InstanceDescription[slindId=cc9e3513-8f6c-460d-b27e-dd3844aa629d, > isLeader=false, isOwn=false, > clusterViewId=20a0797b-e957-4b8e-845b-9b9e0b6a246d, > properties={org.apache.sling.instance.endpoints=, > org.apache.sling.event.jobs.consumer.topics=/,org/apache/sling/event/ > impl/jobs/tasks/HistoryCleanUpTask,sling/webconsole/test, > org.apache.sling.instance.name=Instance > cc9e3513-8f6c-460d-b27e-dd3844aa629d, > org.apache.sling.instance.description=Instance with id > cc9e3513-8f6c-460d-b27e-dd3844aa629d and run modes [oak_mongo, > oak]}]]]). > 09.01.2017 16:20:37.171 *INFO* > [DocumentDiscoveryLiteService-BackgroundWorker-[1]] > org.apache.jackrabbit.oak.plugins.document.DocumentDiscoveryLiteServi > ce > checkView: view changed from: a > ClusterView[{"seq":3,"final":false,"id":"ae406105-3c77-4498-b8fc- > 1557b012d46d","me":1,"active":[1],"deactivating":[2],"inactive":[]}], > to: a > ClusterView[{"seq":3,"final":true,"id":"ae406105-3c77-4498-b8fc- > 1557b012d46d","me":1,"active":[1],"deactivating":[],"inactive":[2]}], > hasInstancesWithBacklog: false > *************************** > From there onward, the log file is just the normal shut-down logs as > OSGI > unregisters bundles and the servlet container shuts down. > > > > -- > View this message in context: http://apache-sling.73963.n3.nabble.com > /Join-new-member-to-Sling-Oak-cluster-tp4069454p4069492.html > Sent from the Sling - Users mailing list archive at Nabble.com.