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 BA2D5115E9 for ; Wed, 3 Sep 2014 06:43:58 +0000 (UTC) Received: (qmail 8523 invoked by uid 500); 3 Sep 2014 06:43:52 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 8478 invoked by uid 500); 3 Sep 2014 06:43:52 -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 8454 invoked by uid 99); 3 Sep 2014 06:43:51 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Sep 2014 06:43:51 +0000 Date: Wed, 3 Sep 2014 06:43:51 +0000 (UTC) From: "Swapnil Daingade (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HADOOP-11044) FileSystem counters can overflow for large number of readOps, largeReadOps, writeOps 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-11044?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Swapnil Daingade updated HADOOP-11044: -------------------------------------- Attachment: 11044.patch2 * Made changes suggested by Gary * Used the new methods where File system counters are updated. > FileSystem counters can overflow for large number of readOps, largeReadOps, writeOps > ------------------------------------------------------------------------------------ > > Key: HADOOP-11044 > URL: https://issues.apache.org/jira/browse/HADOOP-11044 > Project: Hadoop Common > Issue Type: Improvement > Affects Versions: 2.5.0, 2.4.1 > Reporter: Swapnil Daingade > Priority: Minor > Attachments: 11044.patch2 > > > The org.apache.hadoop.fs.FileSystem.Statistics.StatisticsData class defines readOps, largeReadOps, writeOps as int. Also the The org.apache.hadoop.fs.FileSystem.Statistics class has methods like getReadOps(), getLargeReadOps() and getWriteOps() that return int. These int values can overflow if the exceed 2^31-1 showing negative values. It would be nice if these can be changed to long. -- This message was sent by Atlassian JIRA (v6.3.4#6332)