From hdfs-dev-return-1003-apmail-hadoop-hdfs-dev-archive=hadoop.apache.org@hadoop.apache.org Thu Apr 08 02:12:06 2010 Return-Path: Delivered-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Received: (qmail 11962 invoked from network); 8 Apr 2010 02:12:05 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Apr 2010 02:12:05 -0000 Received: (qmail 45847 invoked by uid 500); 8 Apr 2010 02:12:05 -0000 Delivered-To: apmail-hadoop-hdfs-dev-archive@hadoop.apache.org Received: (qmail 45785 invoked by uid 500); 8 Apr 2010 02:12:05 -0000 Mailing-List: contact hdfs-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-dev@hadoop.apache.org Delivered-To: mailing list hdfs-dev@hadoop.apache.org Received: (qmail 45770 invoked by uid 99); 8 Apr 2010 02:12:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Apr 2010 02:12:05 +0000 X-ASF-Spam-Status: No, hits=-1244.9 required=10.0 tests=ALL_TRUSTED,AWL 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; Thu, 08 Apr 2010 02:12:04 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B754329A0012 for ; Thu, 8 Apr 2010 02:11:43 +0000 (UTC) Message-ID: <642165543.4141270692703747.JavaMail.jira@brutus.apache.org> Date: Thu, 8 Apr 2010 02:11:43 +0000 (UTC) From: "Eli Collins (JIRA)" To: hdfs-dev@hadoop.apache.org Subject: [jira] Created: (HDFS-1088) Prevent renaming a symlink to it's target MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Prevent renaming a symlink to it's target ------------------------------------------ Key: HDFS-1088 URL: https://issues.apache.org/jira/browse/HDFS-1088 Project: Hadoop HDFS Issue Type: Bug Components: name-node Reporter: Eli Collins Assignee: Eli Collins Here's the HDFS side of HADOOP-6563: * Small bug fix for renaming a symlink to it's target * Hdfs#getFileBlockLocations needs to use getUriPath() to ensure an absolute path is passed in. See minor change to INode#getPathNames, which now asserts instead of returning null and causing NPEs. This was exposed via calling FileContext#getFileBlockLocations using a symlink. * Comment in FSImage around symlinks and image loading -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.