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 18BE91790F for ; Fri, 31 Oct 2014 21:27:01 +0000 (UTC) Received: (qmail 49059 invoked by uid 500); 31 Oct 2014 21:27:01 -0000 Delivered-To: apmail-accumulo-commits-archive@accumulo.apache.org Received: (qmail 48944 invoked by uid 500); 31 Oct 2014 21:27:00 -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 48920 invoked by uid 99); 31 Oct 2014 21:27:00 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Oct 2014 21:27:00 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id A607392A205; Fri, 31 Oct 2014 21:27:00 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: elserj@apache.org To: commits@accumulo.apache.org Date: Fri, 31 Oct 2014 21:27:01 -0000 Message-Id: <4f1a7eb7cc2343a8aacbb343f076a1bd@git.apache.org> In-Reply-To: <9eef2352847744aa85ee6d4dc2d6d0db@git.apache.org> References: <9eef2352847744aa85ee6d4dc2d6d0db@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [02/12] git commit: ACCUMULO-3263 coverity found a strint-to-byte conversion using the default character type ACCUMULO-3263 coverity found a strint-to-byte conversion using the default character type Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/1890bea2 Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/1890bea2 Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/1890bea2 Branch: refs/heads/master Commit: 1890bea201084f9be08cf78c0e31a106f93ffd2d Parents: 7e0ba16 Author: Eric C. Newton Authored: Fri Oct 31 14:34:16 2014 -0400 Committer: Eric C. Newton Committed: Fri Oct 31 14:34:16 2014 -0400 ---------------------------------------------------------------------- .../java/org/apache/accumulo/server/util/RandomizeVolumes.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/accumulo/blob/1890bea2/server/base/src/main/java/org/apache/accumulo/server/util/RandomizeVolumes.java ---------------------------------------------------------------------- diff --git a/server/base/src/main/java/org/apache/accumulo/server/util/RandomizeVolumes.java b/server/base/src/main/java/org/apache/accumulo/server/util/RandomizeVolumes.java index afc3902..dd540f2 100644 --- a/server/base/src/main/java/org/apache/accumulo/server/util/RandomizeVolumes.java +++ b/server/base/src/main/java/org/apache/accumulo/server/util/RandomizeVolumes.java @@ -19,8 +19,9 @@ package org.apache.accumulo.server.util; import java.io.IOException; import java.util.Map.Entry; -import org.apache.accumulo.server.security.SystemCredentials; +import org.apache.accumulo.core.Constants; +import org.apache.accumulo.server.security.SystemCredentials; import org.apache.accumulo.core.cli.ClientOnRequiredTable; import org.apache.accumulo.core.client.AccumuloException; import org.apache.accumulo.core.client.AccumuloSecurityException; @@ -106,7 +107,7 @@ public class RandomizeVolumes { Mutation m = new Mutation(key.getRow()); String newLocation = vm.choose(ServerConstants.getBaseUris()) + Path.SEPARATOR + ServerConstants.TABLE_DIR + Path.SEPARATOR + tableId + Path.SEPARATOR + directory; - m.put(key.getColumnFamily(), key.getColumnQualifier(), new Value(newLocation.getBytes())); + m.put(key.getColumnFamily(), key.getColumnQualifier(), new Value(newLocation.getBytes(Constants.UTF8))); if (log.isTraceEnabled()) { log.trace("Replacing " + oldLocation + " with " + newLocation); }