Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7E0C9106BE for ; Thu, 6 Mar 2014 08:04:53 +0000 (UTC) Received: (qmail 13824 invoked by uid 500); 6 Mar 2014 08:04:51 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 13580 invoked by uid 500); 6 Mar 2014 08:04:49 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 13430 invoked by uid 99); 6 Mar 2014 08:04:47 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Mar 2014 08:04:47 +0000 Date: Thu, 6 Mar 2014 08:04:47 +0000 (UTC) From: "Colin Patrick McCabe (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDFS-6057) DomainSocketWatcher.watcherThread should be marked as daemon thread 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/HDFS-6057?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Colin Patrick McCabe updated HDFS-6057: --------------------------------------- Resolution: Fixed Fix Version/s: 2.4.0 Status: Resolved (was: Patch Available) > DomainSocketWatcher.watcherThread should be marked as daemon thread > ------------------------------------------------------------------- > > Key: HDFS-6057 > URL: https://issues.apache.org/jira/browse/HDFS-6057 > Project: Hadoop HDFS > Issue Type: Bug > Components: hdfs-client > Affects Versions: 2.4.0 > Reporter: Eric Sirianni > Assignee: Colin Patrick McCabe > Priority: Blocker > Fix For: 2.4.0 > > Attachments: HDFS-6057.002.patch, HDFS-6057.003.patch, hdfs-6057-v1.txt > > > Running the tip of {{branch-2.4}}, I'm observing some zombie processes in my environment. jstack shows the following thread preventing the JVM from shutting down: > {noformat} > "Thread-3" prio=10 tid=0x00007f0a908a5800 nid=0x3ee9 runnable [0x00007f0a89471000] > java.lang.Thread.State: RUNNABLE > at org.apache.hadoop.net.unix.DomainSocketWatcher.doPoll0(Native Method) > at org.apache.hadoop.net.unix.DomainSocketWatcher.access$800(DomainSocketWatcher.java:52) > at org.apache.hadoop.net.unix.DomainSocketWatcher$1.run(DomainSocketWatcher.java:455) > at java.lang.Thread.run(Thread.java:679) > {noformat} > Marking the {{DomainSocketWatcher.watcherThread}} as a daemon thread would prevent this situation. Is there any reason it isn't classified as such? > Also, tracing through the code, I don't see any code path where {{DomainSocketWatcher.close()}} is invoked (though this would seem to be a larger issue -- maybe I'm missing something...). -- This message was sent by Atlassian JIRA (v6.2#6252)