Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A7BCB9E58 for ; Wed, 14 Mar 2012 05:58:24 +0000 (UTC) Received: (qmail 97406 invoked by uid 500); 14 Mar 2012 05:58:24 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 97327 invoked by uid 500); 14 Mar 2012 05:58:24 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 97312 invoked by uid 99); 14 Mar 2012 05:58:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Mar 2012 05:58:24 +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; Wed, 14 Mar 2012 05:58:23 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D9EDB1F669 for ; Wed, 14 Mar 2012 05:58:02 +0000 (UTC) Date: Wed, 14 Mar 2012 05:58:02 +0000 (UTC) From: "Hudson (Commented) (JIRA)" To: issues@hbase.apache.org Message-ID: <1379812120.11660.1331704682893.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1377751600.8593.1331661522902.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-5574) DEFAULT_MAX_FILE_SIZE defaults to a negative value MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-5574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13229002#comment-13229002 ] Hudson commented on HBASE-5574: ------------------------------- Integrated in HBase-TRUNK-security #137 (See [https://builds.apache.org/job/HBase-TRUNK-security/137/]) HBASE-5574 DEFAULT_MAX_FILE_SIZE defaults to a negative value (Revision 1300288) Result = FAILURE stack : Files : * /hbase/trunk/src/main/java/org/apache/hadoop/hbase/HConstants.java > DEFAULT_MAX_FILE_SIZE defaults to a negative value > -------------------------------------------------- > > Key: HBASE-5574 > URL: https://issues.apache.org/jira/browse/HBASE-5574 > Project: HBase > Issue Type: Bug > Affects Versions: 0.94.0 > Reporter: Michael Drzal > Assignee: Michael Drzal > Fix For: 0.94.0 > > Attachments: HBASE-5574.patch > > > HBASE-4365 changed the value of DEFAULT_MAX_FILE_SIZE from 256MB to 10G. Here is the line of code: > public static final long DEFAULT_MAX_FILE_SIZE = 10 * 1024 * 1024 * 1024; > The problem is that java evaluates the constant as an int which wraps and gets assigned to a long. I verified this with a test. The quick fix is to change the end to 1024L; -- 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