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 A73DD10548 for ; Sun, 26 Jan 2014 11:14:07 +0000 (UTC) Received: (qmail 22606 invoked by uid 500); 26 Jan 2014 11:14:05 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 22550 invoked by uid 500); 26 Jan 2014 11:14:04 -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 22523 invoked by uid 99); 26 Jan 2014 11:14:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Jan 2014 11:14:04 +0000 Date: Sun, 26 Jan 2014 11:14:04 +0000 (UTC) From: "Hudson (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-5343) When cat command is issued on snapshot files getting unexpected result 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-5343?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13882275#comment-13882275 ] Hudson commented on HDFS-5343: ------------------------------ SUCCESS: Integrated in Hadoop-Yarn-trunk #462 (See [https://builds.apache.org/job/Hadoop-Yarn-trunk/462/]) HDFS-5343. When cat command is issued on snapshot files, getting unexpected result. Contributed by Sathish. (umamahesh: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1561325) * /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt * /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSInputStream.java * /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/snapshot/TestSnapshotFileLength.java > When cat command is issued on snapshot files getting unexpected result > ---------------------------------------------------------------------- > > Key: HDFS-5343 > URL: https://issues.apache.org/jira/browse/HDFS-5343 > Project: Hadoop HDFS > Issue Type: Bug > Components: hdfs-client > Reporter: sathish > Assignee: sathish > Fix For: 3.0.0, 2.3.0 > > Attachments: HDFS-5343-0003.patch, HDFS-5343-0004.patch, HDFS-5343-0005.patch, HDFS-5343-0006.patch, HDFS-5343-002.patch > > > first if we create one file with some file length and take the snapshot of that file,and again append some data through append method to that file,then if we do cat command operation on snapshot of that file,in general it should dispaly the data what we added with create operation,but it is displaying the total data i.e. create +_ appended data. > but if we do the same operation and if we read the contents of snapshot file through input stream it is just displaying the data created in snapshoted files. > in this the behaviour of cat command and reading through inputstream is getting different -- This message was sent by Atlassian JIRA (v6.1.5#6160)