Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 40FBE200CBC for ; Tue, 20 Jun 2017 14:28:40 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 3F7A6160BE1; Tue, 20 Jun 2017 12:28:40 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id ACEE4160BD3 for ; Tue, 20 Jun 2017 14:28:39 +0200 (CEST) Received: (qmail 16058 invoked by uid 500); 20 Jun 2017 12:28:38 -0000 Mailing-List: contact dev-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 dev@accumulo.apache.org Received: (qmail 16047 invoked by uid 99); 20 Jun 2017 12:28:38 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jun 2017 12:28:38 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 8328DDFA83; Tue, 20 Jun 2017 12:28:38 +0000 (UTC) From: keith-turner To: dev@accumulo.apache.org Reply-To: dev@accumulo.apache.org References: In-Reply-To: Subject: [GitHub] accumulo pull request #270: ACCUMULO-4657 Reduce excessive logging / logging... Content-Type: text/plain Message-Id: <20170620122838.8328DDFA83@git1-us-west.apache.org> Date: Tue, 20 Jun 2017 12:28:38 +0000 (UTC) archived-at: Tue, 20 Jun 2017 12:28:40 -0000 Github user keith-turner commented on a diff in the pull request: https://github.com/apache/accumulo/pull/270#discussion_r122960232 --- Diff: server/base/src/main/java/org/apache/accumulo/server/util/MetadataTableUtil.java --- @@ -894,12 +895,19 @@ public static void removeBulkLoadEntries(Connector conn, String tableId, long ti BatchWriter bw = conn.createBatchWriter(MetadataTable.NAME, new BatchWriterConfig())) { mscanner.setRange(new KeyExtent(tableId, null, null).toMetadataRange()); mscanner.fetchColumnFamily(TabletsSection.BulkFileColumnFamily.NAME); + boolean shouldTrace = log.isTraceEnabled(); + byte[] tidAsBytes = Long.toString(tid).getBytes(); --- End diff -- For predictability in different environments, should call `getBytes(StandardCharsets.UTF_8)`. Value's toString method did something like this in the prev code. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---