Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 99F71200D4A for ; Tue, 28 Nov 2017 08:07:15 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 988F0160C07; Tue, 28 Nov 2017 07:07:15 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 11508160C01 for ; Tue, 28 Nov 2017 08:07:14 +0100 (CET) Received: (qmail 96873 invoked by uid 500); 28 Nov 2017 07:07:13 -0000 Mailing-List: contact notifications-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@apache.org Delivered-To: mailing list notifications@accumulo.apache.org Received: (qmail 96862 invoked by uid 99); 28 Nov 2017 07:07:13 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Nov 2017 07:07:13 +0000 From: GitBox To: notifications@accumulo.apache.org Subject: [GitHub] jomach commented on a change in pull request #325: ACCUMULO-2341? Message-ID: <151185283296.1844.11461956106017569820.gitbox@gitbox.apache.org> archived-at: Tue, 28 Nov 2017 07:07:15 -0000 jomach commented on a change in pull request #325: ACCUMULO-2341? URL: https://github.com/apache/accumulo/pull/325#discussion_r153409112 ########## File path: server/base/src/main/java/org/apache/accumulo/server/util/Admin.java ########## @@ -354,12 +354,8 @@ public void run() { } private static void stopServer(final ClientContext context, final boolean tabletServersToo) throws AccumuloException, AccumuloSecurityException { - MasterClient.executeVoid(context, new ClientExec() { - @Override - public void execute(MasterClientService.Client client) throws Exception { - client.shutdown(Tracer.traceInfo(), context.rpcCreds(), tabletServersToo); - } - }); + MasterClient.executeVoidWithConnRetry(context, Review comment: What if we leave this method as it is (before my commit) and create a new one named for example MasterClient.getConnectionForShutdown(context) this will try two times and return null if it is not possible. This would avoid setting and defining timeouts (For example if some network problem is there for a few hours depending on the time would break things.) Another question would be: What is a reasonable Timout to set ? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: users@infra.apache.org With regards, Apache Git Services