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 C041D1754E for ; Mon, 26 Jan 2015 19:23:34 +0000 (UTC) Received: (qmail 4887 invoked by uid 500); 26 Jan 2015 19:23:35 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 4827 invoked by uid 500); 26 Jan 2015 19:23:35 -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 4815 invoked by uid 99); 26 Jan 2015 19:23:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Jan 2015 19:23:34 +0000 Date: Mon, 26 Jan 2015 19:23:34 +0000 (UTC) From: "Colin Patrick McCabe (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-7666) Datanode blockId layout upgrade threads should be 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-7666?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14292273#comment-14292273 ] Colin Patrick McCabe commented on HDFS-7666: -------------------------------------------- Hi Rakesh, I'm not sure why we would want the blockID upgrade threads to be daemon threads. Daemon threads don't block the JVM from exiting if they are the only remaining threads. But we don't expect the JVM to while an upgrade is still incomplete. In fact, if it does, we are in big trouble. > Datanode blockId layout upgrade threads should be daemon thread > --------------------------------------------------------------- > > Key: HDFS-7666 > URL: https://issues.apache.org/jira/browse/HDFS-7666 > Project: Hadoop HDFS > Issue Type: Improvement > Components: datanode > Reporter: Rakesh R > Assignee: Rakesh R > Attachments: HDFS-7666-v1.patch > > > This jira is to mark the layout upgrade thread as daemon thread. > {code} > int numLinkWorkers = datanode.getConf().getInt( > DFSConfigKeys.DFS_DATANODE_BLOCK_ID_LAYOUT_UPGRADE_THREADS_KEY, > DFSConfigKeys.DFS_DATANODE_BLOCK_ID_LAYOUT_UPGRADE_THREADS); > ExecutorService linkWorkers = Executors.newFixedThreadPool(numLinkWorkers); > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)