Return-Path: Delivered-To: apmail-hadoop-common-dev-archive@www.apache.org Received: (qmail 22085 invoked from network); 8 Mar 2011 08:17:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Mar 2011 08:17:03 -0000 Received: (qmail 25530 invoked by uid 500); 8 Mar 2011 08:16:56 -0000 Delivered-To: apmail-hadoop-common-dev-archive@hadoop.apache.org Received: (qmail 23801 invoked by uid 500); 8 Mar 2011 08:16:53 -0000 Mailing-List: contact common-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-dev@hadoop.apache.org Delivered-To: mailing list common-dev@hadoop.apache.org Received: (qmail 21553 invoked by uid 99); 8 Mar 2011 08:16: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:16: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 06:57: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 9167239C5E7 for ; Tue, 8 Mar 2011 06:56:59 +0000 (UTC) Date: Tue, 8 Mar 2011 06:56:59 +0000 (UTC) From: "Todd Lipcon (JIRA)" To: common-dev@hadoop.apache.org Message-ID: <1967686101.3817.1299567419592.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Created: (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 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 Priority: Critical Fix For: 0.22.0 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