Return-Path: X-Original-To: apmail-accumulo-commits-archive@www.apache.org Delivered-To: apmail-accumulo-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E16481079B for ; Mon, 6 Jan 2014 23:32:58 +0000 (UTC) Received: (qmail 17943 invoked by uid 500); 6 Jan 2014 23:32:58 -0000 Delivered-To: apmail-accumulo-commits-archive@accumulo.apache.org Received: (qmail 17919 invoked by uid 500); 6 Jan 2014 23:32:58 -0000 Mailing-List: contact commits-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@accumulo.apache.org Delivered-To: mailing list commits@accumulo.apache.org Received: (qmail 17912 invoked by uid 99); 6 Jan 2014 23:32:58 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jan 2014 23:32:58 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 99A3E3808F; Mon, 6 Jan 2014 23:32:58 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: vines@apache.org To: commits@accumulo.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: git commit: ACCUMULO-1933 Make unit on memory parameters case-insensitive. Date: Mon, 6 Jan 2014 23:32:58 +0000 (UTC) Updated Branches: refs/heads/1.5.1-SNAPSHOT f624d402e -> f43ba3bb7 ACCUMULO-1933 Make unit on memory parameters case-insensitive. 1. Added support for both cases for G, M, K and B 2. Added warning message for lower case b and that the code will consider this bytes 3. Added meaningful error message for any number formatting issues 4. Added unit test that test 1 and 3 from above. modified: src/core/src/main/java/org/apache/accumulo/core/conf/AccumuloConfiguration.java new file: src/core/src/test/java/org/apache/accumulo/core/conf/AccumuloConfigurationTest.java Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/f43ba3bb Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/f43ba3bb Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/f43ba3bb Branch: refs/heads/1.5.1-SNAPSHOT Commit: f43ba3bb77f3cdcff365348252f9504be9dc3a60 Parents: f624d40 Author: tmalaska Authored: Thu Jan 2 15:43:08 2014 -0500 Committer: John Vines Committed: Mon Jan 6 18:27:29 2014 -0500 ---------------------------------------------------------------------- .../core/conf/AccumuloConfiguration.java | 35 +++++++++----- .../core/conf/AccumuloConfigurationTest.java | 48 ++++++++++++++++++++ 2 files changed, 72 insertions(+), 11 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/accumulo/blob/f43ba3bb/core/src/main/java/org/apache/accumulo/core/conf/AccumuloConfiguration.java ---------------------------------------------------------------------- diff --git a/core/src/main/java/org/apache/accumulo/core/conf/AccumuloConfiguration.java b/core/src/main/java/org/apache/accumulo/core/conf/AccumuloConfiguration.java index 28f24ef..0a1c7fd 100644 --- a/core/src/main/java/org/apache/accumulo/core/conf/AccumuloConfiguration.java +++ b/core/src/main/java/org/apache/accumulo/core/conf/AccumuloConfiguration.java @@ -71,17 +71,30 @@ public abstract class AccumuloConfiguration implements Iterable