Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public partial class ZooKeeperBasedMembershipTable : IMembershipTable
{
private readonly ILogger logger;

private const int ZOOKEEPER_CONNECTION_TIMEOUT = 2000;
private const int ZOOKEEPER_SESSION_TIMEOUT = 10_000;

private readonly ZooKeeperWatcher watcher;

Expand Down Expand Up @@ -297,12 +297,12 @@ private static async Task<Tuple<MembershipEntry, string>> GetRow(ZooKeeper zk, S

private static Task<T> UsingZookeeper<T>(Func<ZooKeeper, Task<T>> zkMethod, string deploymentConnectionString, ZooKeeperWatcher watcher, bool canBeReadOnly = false)
{
return ZooKeeper.Using(deploymentConnectionString, ZOOKEEPER_CONNECTION_TIMEOUT, watcher, zkMethod, canBeReadOnly);
return ZooKeeper.Using(deploymentConnectionString, ZOOKEEPER_SESSION_TIMEOUT, watcher, zkMethod, canBeReadOnly);
}

private Task UsingZookeeper(string connectString, Func<ZooKeeper, Task> zkMethod)
{
return ZooKeeper.Using(connectString, ZOOKEEPER_CONNECTION_TIMEOUT, watcher, zkMethod);
return ZooKeeper.Using(connectString, ZOOKEEPER_SESSION_TIMEOUT, watcher, zkMethod);
}

private static string ConvertToRowPath(SiloAddress siloAddress)
Expand Down
Loading