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 CF6E7180A0 for ; Fri, 15 May 2015 17:29:02 +0000 (UTC) Received: (qmail 94847 invoked by uid 500); 15 May 2015 17:29:02 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 94798 invoked by uid 500); 15 May 2015 17:29:02 -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 94786 invoked by uid 99); 15 May 2015 17:29:02 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 May 2015 17:29:02 +0000 Date: Fri, 15 May 2015 17:29:02 +0000 (UTC) From: "Chris Nauroth (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (HDFS-4868) Clean up error message when trying to snapshot using ViewFileSystem 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-4868?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chris Nauroth resolved HDFS-4868. --------------------------------- Resolution: Duplicate [~rakeshr], thank you for the reminder. I'm closing this as duplicate. > Clean up error message when trying to snapshot using ViewFileSystem > ------------------------------------------------------------------- > > Key: HDFS-4868 > URL: https://issues.apache.org/jira/browse/HDFS-4868 > Project: Hadoop HDFS > Issue Type: Improvement > Components: snapshots > Affects Versions: 3.0.0 > Reporter: Stephen Chu > Priority: Minor > > Snapshots aren't supported for the ViewFileSystem. When users try to create a snapshot, they'll run into a message like the following: > {code} > schu-mbp:presentation schu$ hadoop fs -createSnapshot /user/schu > -createSnapshot: Fatal internal error > java.lang.UnsupportedOperationException: ViewFileSystem doesn't support createSnapshot > at org.apache.hadoop.fs.FileSystem.createSnapshot(FileSystem.java:2285) > at org.apache.hadoop.fs.shell.SnapshotCommands$CreateSnapshot.processArguments(SnapshotCommands.java:87) > at org.apache.hadoop.fs.shell.Command.processRawArguments(Command.java:194) > at org.apache.hadoop.fs.shell.Command.run(Command.java:155) > at org.apache.hadoop.fs.FsShell.run(FsShell.java:255) > at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70) > at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:84) > at org.apache.hadoop.fs.FsShell.main(FsShell.java:305) > {code} > To make things more readable and avoid confusion, it would be helpful to clean up the error message stacktrace and just state that ViewFileSystem doesn't support createSnapshot, similar to what was done in HDFS-4846. The "fatal internal error" message is a bit scary and it might be useful to remove that message to avoid confusion from operators. -- This message was sent by Atlassian JIRA (v6.3.4#6332)