Skip to content
This repository has been archived by the owner on May 10, 2022. It is now read-only.

fix: use operation_timeout as socket connect timeout #73

Merged
merged 1 commit into from
Nov 19, 2019
Merged
Show file tree
Hide file tree
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
3 changes: 0 additions & 3 deletions src/main/java/com/xiaomi/infra/pegasus/rpc/Cluster.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
import java.util.Properties;

public abstract class Cluster {
public static final int SOCK_TIMEOUT = 1000;
public static final int QUERY_META_TIMEOUT = 1000;

public static final String PEGASUS_META_SERVERS_KEY = "meta_servers";

public static final String PEGASUS_OPERATION_TIMEOUT_KEY = "operation_timeout";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public ReplicaSession getReplicaSession(rpc_address address) {
synchronized (this) {
ss = replicaSessions.get(address);
if (ss != null) return ss;
ss = new ReplicaSession(address, replicaGroup, Cluster.SOCK_TIMEOUT);
ss = new ReplicaSession(address, replicaGroup, operationTimeout);
replicaSessions.put(address, ss);
return ss;
}
Expand Down