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 4E39E9EB9 for ; Sat, 12 May 2012 05:10:23 +0000 (UTC) Received: (qmail 75649 invoked by uid 500); 12 May 2012 05:10:22 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 75340 invoked by uid 500); 12 May 2012 05:10:17 -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 75289 invoked by uid 99); 12 May 2012 05:10:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 May 2012 05:10:15 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 May 2012 05:10:11 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id C65D949235D for ; Sat, 12 May 2012 05:09:50 +0000 (UTC) Date: Sat, 12 May 2012 05:09:50 +0000 (UTC) From: "Lars Hofhansl (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <1526155279.57529.1336799390814.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HDFS-744) Support hsync in HDFS 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-744?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lars Hofhansl updated HDFS-744: ------------------------------- Attachment: HDFS-744-trunk-v3.patch Most tests fail due to an NPE in flush. currentPacket can be null in DFSOutputStream.{hflush|hsync} even when bytesCurBlock > lastFlushOffset, which I found a bit surprising. I think in that case it is OK not to send a sync packet (if FORCE is enabled, because there is nothing outstanding to sync). Also fixed TestFilterFileSystem. Not sure what's wrong with testTrash. Also I could use guidance for: * what types of tests should I add * If I wanted to add a feature where optionally only the first DN in the replication chain does the fsync, how should a client convey that to the FS.create method (it does not make sense that add another CreateFlag). > Support hsync in HDFS > --------------------- > > Key: HDFS-744 > URL: https://issues.apache.org/jira/browse/HDFS-744 > Project: Hadoop HDFS > Issue Type: New Feature > Components: data-node, hdfs client > Reporter: Hairong Kuang > Assignee: Lars Hofhansl > Attachments: HDFS-744-trunk-v2.patch, HDFS-744-trunk-v3.patch, HDFS-744-trunk.patch, hdfs-744-v2.txt, hdfs-744-v3.txt, hdfs-744.txt > > > HDFS-731 implements hsync by default as hflush. As descriibed in HADOOP-6313, the real expected semantics should be "flushes out to all replicas and all replicas have done posix fsync equivalent - ie the OS has flushed it to the disk device (but the disk may have it in its cache)." This jira aims to implement the expected behaviour. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira