accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adamjshook <>
Subject [GitHub] accumulo pull request #254: [ACCUMULO-4506] Add a timeout to a replication R...
Date Wed, 03 May 2017 17:29:32 GMT
Github user adamjshook commented on a diff in the pull request:
    --- Diff: server/tserver/src/main/java/org/apache/accumulo/tserver/replication/
    @@ -161,7 +164,16 @@ public void configure(String configuration) {
       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
    +    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 --
    Yeah, that'd be nice :)  It gets it from the `ClientContext` and the context returns the
value of `GENERAL_RPC_TIMEOUT`.  No way to change it except through copying the configuration.

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 or file a JIRA ticket
with INFRA.

View raw message