Hi,

We are trying to create tables on one particular ClusterGroup with 3 server
nodes: Node1, Node2, Node3. On all these 3 nodes we have set the following
configuration in default-config.xml.

<property name="userAttributes">
        <map>
                <entry key="ROLE" value="data.compute"/>
        </map>
</property>

On the client side code, we are trying to setNodeFilter for the
cacheConfiguration as follows:

CacheConfiguration<?, ?> cacheCfg = new
CacheConfiguration<>(this.tableName).setSqlSchema("PUBLIC");
cacheCfg.setNodeFilter(new DataNodeFilter()); 
IgniteCache<?, ?> cache = ignite.getOrCreateCache(cacheCfg);   
//IgniteTable.java:50

The DataNodeFilter has the following code: 

public class DataNodeFilter implements IgnitePredicate<ClusterNode> {
  @Override public boolean apply(ClusterNode node) {
    // The service will be deployed on non client nodes
    // that have the attribute 'data.compute'.
    return !node.isClient() &&
        node.attributes().containsValue("data.compute");
  }
}

Inspite of all these configuration setting, it still throws a
CacheExaception as follows:
Exception in thread "main" javax.cache.CacheException: class
org.apache.ignite.IgniteClientDisconnectedException: Failed to execute
dynamic cache change request, client node disconnected.
        at
org.apache.ignite.internal.processors.cache.GridCacheUtils.convertToCacheException(GridCacheUtils.java:1287)
        at
org.apache.ignite.internal.IgniteKernal.getOrCreateCache0(IgniteKernal.java:2937)
        at
org.apache.ignite.internal.IgniteKernal.getOrCreateCache(IgniteKernal.java:2906)
        at
net.aline.cloudedh.inmemorydb.ignite.IgniteTable.<init>(IgniteTable.java:50)

Can anyone please tell if we are missing any other configuration setting?

Regards,
Shravya Nethula.



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Reply via email to