You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have created DynoJedisClient with ConnectionPoolConfiguration and trying to store and retrieve value. Client is created but it is failing while setting and getting any value.
Client is working fine when I do not provide ConnectionPoolConfiguration for building client
Exception in thread "main" com.netflix.dyno.connectionpool.exception.NoAvailableHostsException: NoAvailableHostsException: [host=Host [hostname=UNKNOWN, ipAddress=UNKNOWN, port=0, rack: UNKNOWN, datacenter: UNKNOW, status: Down, hashtag=null], latency=0(0), attempts=0]Could not find any remote Racks for fallback
at com.netflix.dyno.connectionpool.impl.lb.HostSelectionWithFallback.getFallbackHostPool(HostSelectionWithFallback.java:195)
at com.netflix.dyno.connectionpool.impl.lb.HostSelectionWithFallback.getConnection(HostSelectionWithFallback.java:135)
at com.netflix.dyno.connectionpool.impl.lb.HostSelectionWithFallback.getConnectionUsingRetryPolicy(HostSelectionWithFallback.java:122)
at com.netflix.dyno.connectionpool.impl.ConnectionPoolImpl.executeWithFailover(ConnectionPoolImpl.java:292)
at com.netflix.dyno.jedis.DynoJedisClient.d_set(DynoJedisClient.java:1399)
at com.netflix.dyno.jedis.DynoJedisClient.set(DynoJedisClient.java:1394)
at com.agnity.dynomite.DynoTest.main(DynoTest.java:104)
I am using cluster with 4 nodes in 2 DCs, with 2 racks in each DC with 1 server each. Here is my dynomite config from one of the nodes :
Hi,
I have created DynoJedisClient with ConnectionPoolConfiguration and trying to store and retrieve value. Client is created but it is failing while setting and getting any value.
Client is working fine when I do not provide ConnectionPoolConfiguration for building client
Exception in thread "main" com.netflix.dyno.connectionpool.exception.NoAvailableHostsException: NoAvailableHostsException: [host=Host [hostname=UNKNOWN, ipAddress=UNKNOWN, port=0, rack: UNKNOWN, datacenter: UNKNOW, status: Down, hashtag=null], latency=0(0), attempts=0]Could not find any remote Racks for fallback
at com.netflix.dyno.connectionpool.impl.lb.HostSelectionWithFallback.getFallbackHostPool(HostSelectionWithFallback.java:195)
at com.netflix.dyno.connectionpool.impl.lb.HostSelectionWithFallback.getConnection(HostSelectionWithFallback.java:135)
at com.netflix.dyno.connectionpool.impl.lb.HostSelectionWithFallback.getConnectionUsingRetryPolicy(HostSelectionWithFallback.java:122)
at com.netflix.dyno.connectionpool.impl.ConnectionPoolImpl.executeWithFailover(ConnectionPoolImpl.java:292)
at com.netflix.dyno.jedis.DynoJedisClient.d_set(DynoJedisClient.java:1399)
at com.netflix.dyno.jedis.DynoJedisClient.set(DynoJedisClient.java:1394)
at com.agnity.dynomite.DynoTest.main(DynoTest.java:104)
I am using cluster with 4 nodes in 2 DCs, with 2 racks in each DC with 1 server each. Here is my dynomite config from one of the nodes :
dyn_o_mite:
datacenter: dc-a
rack: rack1
dyn_listen: 10.32.18.131:7379
dyn_seeds:
listen: 0.0.0.0:8379
servers:
tokens: '2147483647'
secure_server_option: datacenter
pem_key_file: conf/dynomite.pem
data_store: 0
stats_listen: 127.0.0.1:22222
read_consistency : DC_QUORUM
write_consistency : DC_QUORUM
Java Code:
package com.agnity.dynomite;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import org.apache.log4j.BasicConfigurator;
import com.netflix.dyno.connectionpool.ConnectionPoolConfiguration.LoadBalancingStrategy;
import com.netflix.dyno.connectionpool.Host;
import com.netflix.dyno.connectionpool.Host.Status;
import com.netflix.dyno.connectionpool.HostSupplier;
import com.netflix.dyno.connectionpool.OperationResult;
import com.netflix.dyno.connectionpool.TokenMapSupplier;
import com.netflix.dyno.connectionpool.impl.ConnectionPoolConfigurationImpl;
import com.netflix.dyno.connectionpool.impl.lb.HostToken;
import com.netflix.dyno.jedis.DynoJedisClient;
public class DynoTest {
}
Please suggest
The text was updated successfully, but these errors were encountered: