Return-Path: Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: (qmail 15485 invoked from network); 8 Mar 2011 08:11:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Mar 2011 08:11:59 -0000 Received: (qmail 881 invoked by uid 500); 8 Mar 2011 08:11:49 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 835 invoked by uid 500); 8 Mar 2011 08:11:49 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 801 invoked by uid 99); 8 Mar 2011 08:11:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Mar 2011 08:11:49 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Mar 2011 07:35:21 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id A656139C1F4 for ; Tue, 8 Mar 2011 07:34:59 +0000 (UTC) Date: Tue, 8 Mar 2011 07:34:59 +0000 (UTC) From: "Todd Lipcon (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <1467251144.3852.1299569699678.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1799619354.3818.1299567419614.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Assigned: (HADOOP-7172) SecureIO should not check owner on non-secure clusters that have no native support 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/HADOOP-7172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Todd Lipcon reassigned HADOOP-7172: ----------------------------------- Assignee: Todd Lipcon > SecureIO should not check owner on non-secure clusters that have no native support > ---------------------------------------------------------------------------------- > > Key: HADOOP-7172 > URL: https://issues.apache.org/jira/browse/HADOOP-7172 > Project: Hadoop Common > Issue Type: Bug > Components: io, security > Affects Versions: 0.22.0 > Reporter: Todd Lipcon > Assignee: Todd Lipcon > Priority: Critical > Fix For: 0.22.0 > > Attachments: hadoop-7172.txt > > > The SecureIOUtils.openForRead function currently uses a racy stat/open combo if security is disabled and the native libraries are not available. This ends up shelling out to "ls -ld" which is very very slow. We've seen this cause significant performance regressions on clusters that match this profile. > Since the racy permissions check doesn't buy us any security anyway, we should just fall back to a normal "open" without any stat() at all, if we can't use the native support to do it efficiently. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira