Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E040910BC0 for ; Sat, 22 Jun 2013 01:07:20 +0000 (UTC) Received: (qmail 38315 invoked by uid 500); 22 Jun 2013 01:07:20 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 38262 invoked by uid 500); 22 Jun 2013 01:07:20 -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 38253 invoked by uid 99); 22 Jun 2013 01:07:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Jun 2013 01:07:20 +0000 Date: Sat, 22 Jun 2013 01:07:20 +0000 (UTC) From: "Jason Lowe (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDFS-4205) fsck fails with symlinks MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-4205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jason Lowe updated HDFS-4205: ----------------------------- Resolution: Fixed Fix Version/s: 0.23.9 2.1.0-beta 3.0.0 Hadoop Flags: Reviewed Status: Resolved (was: Patch Available) I committed this to trunk, branch-2, branch-2.1-beta, and branch-0.23. > fsck fails with symlinks > ------------------------ > > Key: HDFS-4205 > URL: https://issues.apache.org/jira/browse/HDFS-4205 > Project: Hadoop HDFS > Issue Type: Bug > Components: hdfs-client > Affects Versions: 3.0.0, 2.0.2-alpha > Reporter: Andy Isaacson > Assignee: Jason Lowe > Fix For: 3.0.0, 2.1.0-beta, 0.23.9 > > Attachments: HDFS-4205-2.patch, HDFS-4205.patch > > > I created a symlink using > {code} > ... > FileContext fc = FileContext.getFileContext(dst.fs.getUri()); > for (PathData src : srcs) { > fc.createSymlink(src.path, dst.path, false); > } > {code} > After doing this to create a symlink {{/foo/too.txt -> /foo/hello.txt}}, I tried to {{hdfs fsck}} and got the following: > {code} > [adi@host01 ~]$ hdfs fsck / > Connecting to namenode via http://host01:21070 > FSCK started by adi (auth:SIMPLE) from /172.29.122.91 for path / at Fri Nov 16 15:59:18 PST 2012 > FSCK ended at Fri Nov 16 15:59:18 PST 2012 in 3 milliseconds > hdfs://host01:21020/foo/hello.txt > Fsck on path '/' FAILED > {code} > It's very surprising that an unprivileged user can run code which so easily causes a fundamental administration tool to fail. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira