Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-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 5BEB99C82 for ; Sat, 3 Dec 2011 01:26:01 +0000 (UTC) Received: (qmail 42646 invoked by uid 500); 3 Dec 2011 01:26:01 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 42616 invoked by uid 500); 3 Dec 2011 01:26:01 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 42607 invoked by uid 99); 3 Dec 2011 01:26:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Dec 2011 01:26:01 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,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, 03 Dec 2011 01:26:00 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 08BC3BC112 for ; Sat, 3 Dec 2011 01:25:40 +0000 (UTC) Date: Sat, 3 Dec 2011 01:25:40 +0000 (UTC) From: "Jonathan Hsieh (Commented) (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <818391466.36550.1322875540037.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <290288699.36487.1322874700429.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HADOOP-7879) DistributedFileSystem#createNonRecursive should also incrementWriteOps statistics. 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/HADOOP-7879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13161988#comment-13161988 ] Jonathan Hsieh commented on HADOOP-7879: ---------------------------------------- trivial patch. > DistributedFileSystem#createNonRecursive should also incrementWriteOps statistics. > ---------------------------------------------------------------------------------- > > Key: HADOOP-7879 > URL: https://issues.apache.org/jira/browse/HADOOP-7879 > Project: Hadoop Common > Issue Type: Bug > Affects Versions: 1.0.0 > Reporter: Jonathan Hsieh > Assignee: Jonathan Hsieh > Attachments: hadoop-7870.patch > > > This method: > {code} > public FSDataOutputStream createNonRecursive(Path f, FsPermission permission, > boolean overwrite, > int bufferSize, short replication, long blockSize, > Progressable progress) throws IOException { > return new FSDataOutputStream > (dfs.create(getPathName(f), permission, > overwrite, false, replication, blockSize, progress, bufferSize), > statistics); > } > {code} > Needs a statistics.incrementWriteOps(1); -- 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