accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joshelser <...@git.apache.org>
Subject [GitHub] accumulo pull request #254: [ACCUMULO-4506] Add a timeout to a replication R...
Date Wed, 03 May 2017 17:28:24 GMT
Github user joshelser commented on a diff in the pull request:

    https://github.com/apache/accumulo/pull/254#discussion_r114604524
  
    --- Diff: server/tserver/src/main/java/org/apache/accumulo/tserver/replication/AccumuloReplicaSystem.java
---
    @@ -161,7 +164,16 @@ public void configure(String configuration) {
       @Override
       public Status replicate(final Path p, final Status status, final ReplicationTarget
target, final ReplicaSystemHelper helper) {
         final Instance localInstance = HdfsZooInstance.getInstance();
    -    final AccumuloConfiguration localConf = new ServerConfigurationFactory(localInstance).getConfiguration();
    +    AccumuloConfiguration instanceConf = new ServerConfigurationFactory(localInstance).getConfiguration();
    +
    +    // Overwrite RPC timeout value used by ClientContext with the replication timeout
value
    +    Map<String,String> confMap = new HashMap<>();
    +    instanceConf.getProperties(confMap, Predicates.<String> alwaysTrue());
    +    confMap.put(Property.GENERAL_RPC_TIMEOUT.getKey(), instanceConf.get(Property.REPLICATION_RPC_TIMEOUT));
    --- End diff --
    
    Hrm, that's annoying. I was just expecting the timeout value to be passed in as an argument
to `ThriftUtil`.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message