Cellar Feature Synchronization Issue: Service/Route fail to restart automatically after restarting Cellar node.

Overview

The following scenarios can be observed due to synchronization failure.

  1. Routes that are deployed on a TalendESB configured in Cellar node do not restart automatically after restarting Cellar node. The feature associated to the Route needs to be manually installed to start the Route. This means that you need to type the feature install command to manually reinstall the route's feature that installs and starts the Route.

  2. When you have the same feature name installed on a cluster group (but with different version), restarting a Cellar node causes overlap between the two features. This causes failure in starting the Service/Route associated to the feature.

 

Environment

TalendESB, Cellar

 

Symptoms/Description

There are two different symptoms of the same problem.

 

Symptom/Description 1:

An environment consists of three TalendESBs, each on a distinct physical server, and grouped in a single Cellar Cluster.

 

Steps to reproduce this scenario:

  1. Restart one of the three TalendESBs that are currently active. Some of the Routes that are currently deployed do not restart automatically.
  2. Type the command camel:context-list. You will observe that contexts have been destroyed for these Routes.
  3. You need to type the feature install command to manually reinstall the feature. This installs and starts the associated Routes.

 

Symptom/Description 2:

An environment consists of three TalendESBs (server1, server2, server3), each on a distinct physical server, and grouped in a single Cellar Cluster, Cluster1.

A feature, for example XXXYYService-feature is published and available in the Artifact Repository in two versions, namely 0.1.1 and 0.1.2

 

Steps to reproduce this scenario:

  1. Feature version 0.1.2, deployed on a fresh Cluster1, works correctly. The Route/Service associated to this feature is up and running. Restarting one node of the cluster doesn’t cause any issues.

  2. Deploy feature version 0.1.1 onto Cluster1. Restart server1.

  3. The Route/Service associated with the feature version is not more available in server1 or server2.

 

Resolution

The problem is linked to the synchronization of the TalendESB when it starts in Cellar Node.

The resolution is to disable the Cellar features sync. This can be done by editing the file in container/etc/org.apache.karaf.cellar.groups.cfg.

Change the following entry:

default.features.sync = false
Version history
Revision #:
2 of 2
Last update:
‎06-22-2017 11:16 PM
Updated by:
 
Labels (1)
Tags (1)