Return-Path: X-Original-To: apmail-accumulo-notifications-archive@minotaur.apache.org Delivered-To: apmail-accumulo-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6989E10983 for ; Thu, 18 Dec 2014 03:48:14 +0000 (UTC) Received: (qmail 59573 invoked by uid 500); 18 Dec 2014 03:48:14 -0000 Delivered-To: apmail-accumulo-notifications-archive@accumulo.apache.org Received: (qmail 59519 invoked by uid 500); 18 Dec 2014 03:48:14 -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 59504 invoked by uid 99); 18 Dec 2014 03:48:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Dec 2014 03:48:13 +0000 Date: Thu, 18 Dec 2014 03:48:13 +0000 (UTC) From: "Corey J. Nolet (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (ACCUMULO-2848) TServerUtil tries to access nonexistent member in Thrift TServer MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ACCUMULO-2848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Corey J. Nolet updated ACCUMULO-2848: ------------------------------------- Fix Version/s: 1.6.3 > TServerUtil tries to access nonexistent member in Thrift TServer > ---------------------------------------------------------------- > > Key: ACCUMULO-2848 > URL: https://issues.apache.org/jira/browse/ACCUMULO-2848 > Project: Accumulo > Issue Type: Bug > Components: tserver > Affects Versions: 1.5.1, 1.6.0 > Reporter: Josh Elser > Priority: Minor > Fix For: 1.5.3, 1.7.0, 1.6.3 > > > In trying to get the tserver to shut down cleanly for ACCUMULO-2739, I noticed: > {code} > public static void stopTServer(TServer s) { > if (s == null) > return; > s.stop(); > try { > Field f = s.getClass().getDeclaredField("executorService_"); > f.setAccessible(true); > ExecutorService es = (ExecutorService) f.get(s); > es.shutdownNow(); > } catch (Exception e) { > TServerUtils.log.error("Unable to call shutdownNow", e); > } > } > {code} > In Thrift 0.9.0, the {{executorService_}} doesn't appear to exist anymore on the implementation of TServer we're using. > {noformat} > 2014-05-30 13:17:13,844 [util.TServerUtils] ERROR: Unable to call shutdownNow > java.lang.NoSuchFieldException: executorService_ > at java.lang.Class.getDeclaredField(Class.java:1948) > at org.apache.accumulo.server.util.TServerUtils.stopTServer(TServerUtils.java:367) > at org.apache.accumulo.tserver.TabletServer.run(TabletServer.java:3277) > at org.apache.accumulo.tserver.TabletServer.main(TabletServer.java:3668) > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)