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 CF21DDA3F for ; Wed, 21 Nov 2012 18:25:58 +0000 (UTC) Received: (qmail 16825 invoked by uid 500); 21 Nov 2012 18:25:58 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 16778 invoked by uid 500); 21 Nov 2012 18:25:58 -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 16769 invoked by uid 99); 21 Nov 2012 18:25:58 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Nov 2012 18:25:58 +0000 Date: Wed, 21 Nov 2012 18:25:58 +0000 (UTC) From: "Jing Zhao (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <1504302403.13306.1353522358593.JavaMail.jiratomcat@arcas> In-Reply-To: <1288797301.8360.1353439858253.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (HDFS-4213) When the client calls hsync(), allows the client to update the file length in the NameNode 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-4213?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jing Zhao updated HDFS-4213: ---------------------------- Attachment: HDFS-4213.002.patch New patch uploaded to fix the new findbug. > When the client calls hsync(), allows the client to update the file length in the NameNode > ------------------------------------------------------------------------------------------ > > Key: HDFS-4213 > URL: https://issues.apache.org/jira/browse/HDFS-4213 > Project: Hadoop HDFS > Issue Type: New Feature > Affects Versions: 3.0.0 > Reporter: Jing Zhao > Assignee: Jing Zhao > Attachments: HDFS-4213.001.patch, HDFS-4213.002.patch > > > As per discussion in HDFS-3960 and HDFS-2802, when clients that need strong consistency update the file length at the NameNode, a special sync is required for getting the length of the being written files when snapshots are taken for these files. This jira implements this sync-with-updating-length by 1) calling ClientProtocol#fsync(), and 2) adding a new field to ClientProtocol#fsync() to indicate the length information. -- 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