Return-Path: Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: (qmail 84655 invoked from network); 2 Sep 2010 22:33:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Sep 2010 22:33:15 -0000 Received: (qmail 25386 invoked by uid 500); 2 Sep 2010 22:33:15 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 25316 invoked by uid 500); 2 Sep 2010 22:33:14 -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 25231 invoked by uid 99); 2 Sep 2010 22:33:14 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Sep 2010 22:33:14 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Sep 2010 22:32:57 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o82MWZcf004897 for ; Thu, 2 Sep 2010 22:32:35 GMT Message-ID: <12279445.161283466755310.JavaMail.jira@thor> Date: Thu, 2 Sep 2010 18:32:35 -0400 (EDT) From: "Tsz Wo (Nicholas), SZE (JIRA)" To: hdfs-issues@hadoop.apache.org Subject: [jira] Commented: (HDFS-1296) using delegation token over hftp for long running clients (spawn from hdfs-1007). In-Reply-To: <18155160.335621278971750795.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HDFS-1296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12905704#action_12905704 ] Tsz Wo (Nicholas), SZE commented on HDFS-1296: ---------------------------------------------- {code} //HftpFileSystem + private static RenewerThread renewer = new RenewerThread(); + static { + renewer.start(); + } {code} It is not a good idea to create and start a thread in the HftpFileSystem static initializer. Starting a thread is expensive. In many cases, the renewer thread is not required. One typical example is calling HftpFileSystem.makeQualified(Path path). > using delegation token over hftp for long running clients (spawn from hdfs-1007). > --------------------------------------------------------------------------------- > > Key: HDFS-1296 > URL: https://issues.apache.org/jira/browse/HDFS-1296 > Project: Hadoop HDFS > Issue Type: Bug > Reporter: Boris Shkolnik > Assignee: Boris Shkolnik > Fix For: 0.22.0 > > Attachments: hdfs-1007-long-running-hftp-client.patch, hdfs-1007-securityutil-fix.patch, HDFS-1296-13.patch, HDFS-1296-14.patch > > > this patch incorporates patches > https://issues.apache.org/jira/secure/attachment/12446280/hdfs-1007-long-running-hftp-client.patch > and > https://issues.apache.org/jira/secure/attachment/12446362/hdfs-1007-securityutil-fix.patch > patches are attached. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.