Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 1251 invoked from network); 6 Aug 2008 22:47:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Aug 2008 22:47:39 -0000 Received: (qmail 83284 invoked by uid 500); 6 Aug 2008 22:47:36 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 83259 invoked by uid 500); 6 Aug 2008 22:47:36 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 83248 invoked by uid 99); 6 Aug 2008 22:47:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Aug 2008 15:47:36 -0700 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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Aug 2008 22:46:48 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3421D234C189 for ; Wed, 6 Aug 2008 15:46:46 -0700 (PDT) Message-ID: <302859442.1218062806206.JavaMail.jira@brutus> Date: Wed, 6 Aug 2008 15:46:46 -0700 (PDT) From: "Albert Chern (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Updated: (HADOOP-3912) Improvements for NativeS3FileSystem In-Reply-To: <90178646.1218051884385.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-3912?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Albert Chern updated HADOOP-3912: --------------------------------- Attachment: NativeS3FileSystem.java > Improvements for NativeS3FileSystem > ----------------------------------- > > Key: HADOOP-3912 > URL: https://issues.apache.org/jira/browse/HADOOP-3912 > Project: Hadoop Core > Issue Type: Improvement > Components: fs/s3 > Reporter: Albert Chern > Attachments: NativeS3FileSystem.java > > > In the process of porting NativeS3FileSystem for use with Hadoop 12, I made the following changes and improvements which might be helpful (apologies if I should have opened separate issues, but I was lazy): > 1. The single byte read() method of NativeS3InputStream incorrectly treats the return value of InputStream.read() as the number of bytes read, which is actually always 1. > 2. It allows people to write files ending with the folder suffix. I prevented this by doing a check in the create() method. > 3. Similarly, it allows people to open directories for reading. I prevented this by doing a check in the open() method. > 4. If you write a file to a nonexistent directory tree, say /a/b/c/d/file, and then you delete/rename that file or one of its parent directories, the whole directory tree vanishes. I fixed this by always creating the parent of a deleted/renamed file. > 5. Recursive delete(), rename(), and getContentLength() can be sped up tremendously by working directly with S3 listings rather than working at the FileSystem level. All sub-files/sub-directories should begin with the parent directory name as a prefix. > 6. HADOOP-3506 is still relevant. > I don't have patches since I created a new file, but I have attached my source if Tom wants to take a look at it. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.