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 the replication...
Date Tue, 02 May 2017 17:51:22 GMT
Github user adamjshook commented on a diff in the pull request:
    --- Diff: server/tserver/src/main/java/org/apache/accumulo/tserver/replication/
    @@ -416,6 +444,12 @@ protected Status replicateLogs(ClientContext peerContext, final HostAndPort
         Status lastStatus = status, currentStatus = status;
         final AtomicReference<Exception> exceptionRef = new AtomicReference<>();
         while (true) {
    +      // Check if the thread has been interrupted prior to replicating data
    +      if (Thread.interrupted()) {
    --- End diff --
    I am seeing the interrupt being caught by this thread and properly handling the timeout.
 I can add a boolean regardless, though, if that is the consensus.

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