curator-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jordan Zimmerman <jor...@jordanzimmerman.com>
Subject Re: Curator Method calls are blocking when zookeeper is down
Date Fri, 09 Oct 2015 12:16:47 GMT
Perform the operations in the background. E.g.

client.create().inBackground().forPath(p);

> On Oct 9, 2015, at 6:23 AM, pratap k <pratap_sms@yahoo.com> wrote:
> 
> Hi All,
> 
> We are using Curator Framework with exponential backoff retry policy, assuming that the
retry policy is specific to connection retry logic. But, when the zookeeper is down, the transaction
method calls ( like create, getData, create) are blocking. 
> CuratorFrameworkFactory.newClient(zookeeperConnectionString, retryPolicy)
> 
> We don't want to block the application threads when the zookeeper is not available, But
don't want to change the connection retry policy.
> Is there anyway we can do this ?
> 
> Regards,
> Pratap
> 
> 


Mime
View raw message