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 11749200D4B for ; Mon, 27 Nov 2017 22:30:14 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 0FF50160C13; Mon, 27 Nov 2017 21:30:14 +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 7C1B7160BFA for ; Mon, 27 Nov 2017 22:30:13 +0100 (CET) Received: (qmail 84322 invoked by uid 500); 27 Nov 2017 21:30:12 -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 84311 invoked by uid 99); 27 Nov 2017 21:30:12 -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; Mon, 27 Nov 2017 21:30:12 +0000 From: GitBox To: notifications@accumulo.apache.org Subject: [GitHub] keith-turner commented on a change in pull request #325: ACCUMULO-2341? Message-ID: <151181821199.1348.1189521566635391937.gitbox@gitbox.apache.org> archived-at: Mon, 27 Nov 2017 21:30:14 -0000 keith-turner commented on a change in pull request #325: ACCUMULO-2341? URL: https://github.com/apache/accumulo/pull/325#discussion_r153328920 ########## 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: I suggested making this time based instead of count based in another comment. That is why I was thinking of that name. A more general name could be `executeVoidWithLimitedRetries()`. This name implies it will not retry forever, but does not specify how its limited. It could be limited by count or time. ---------------------------------------------------------------- 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