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 B0034C7A7 for ; Thu, 13 Nov 2014 00:33:46 +0000 (UTC) Received: (qmail 64526 invoked by uid 500); 13 Nov 2014 00:33:46 -0000 Delivered-To: apmail-accumulo-commits-archive@accumulo.apache.org Received: (qmail 64493 invoked by uid 500); 13 Nov 2014 00:33:46 -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 64484 invoked by uid 99); 13 Nov 2014 00:33:46 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Nov 2014 00:33:46 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 43F72A12361; Thu, 13 Nov 2014 00:33:45 +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: Thu, 13 Nov 2014 00:33:45 -0000 Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: [1/3] accumulo git commit: ACCUMULO-3289 Add logging to discern between application and network pauses for bulkImportFiles. Repository: accumulo Updated Branches: refs/heads/1.6 f98408233 -> 7f1a55b9e refs/heads/master e595c1725 -> 60969b3e0 ACCUMULO-3289 Add logging to discern between application and network pauses for bulkImportFiles. Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/7f1a55b9 Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/7f1a55b9 Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/7f1a55b9 Branch: refs/heads/1.6 Commit: 7f1a55b9ed6aff523c5f66c93692242e9fd86e37 Parents: f984082 Author: Josh Elser Authored: Wed Nov 12 16:19:16 2014 -0800 Committer: Josh Elser Committed: Wed Nov 12 16:19:16 2014 -0800 ---------------------------------------------------------------------- .../org/apache/accumulo/server/client/ClientServiceHandler.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/accumulo/blob/7f1a55b9/server/base/src/main/java/org/apache/accumulo/server/client/ClientServiceHandler.java ---------------------------------------------------------------------- diff --git a/server/base/src/main/java/org/apache/accumulo/server/client/ClientServiceHandler.java b/server/base/src/main/java/org/apache/accumulo/server/client/ClientServiceHandler.java index ebea064..fe17a62 100644 --- a/server/base/src/main/java/org/apache/accumulo/server/client/ClientServiceHandler.java +++ b/server/base/src/main/java/org/apache/accumulo/server/client/ClientServiceHandler.java @@ -181,7 +181,7 @@ public class ClientServiceHandler implements ClientService.Iface { public void grantTablePermission(TInfo tinfo, TCredentials credentials, String user, String tableName, byte permission) throws ThriftSecurityException, ThriftTableOperationException { String tableId = checkTableId(instance, tableName, TableOperation.PERMISSION); - String namespaceId = Tables.getNamespaceId(instance, tableId); + String namespaceId = Tables.getNamespaceId(instance, tableId); security.grantTablePermission(credentials, user, tableId, TablePermission.getPermissionById(permission), namespaceId); } @@ -202,7 +202,7 @@ public class ClientServiceHandler implements ClientService.Iface { public void revokeTablePermission(TInfo tinfo, TCredentials credentials, String user, String tableName, byte permission) throws ThriftSecurityException, ThriftTableOperationException { String tableId = checkTableId(instance, tableName, TableOperation.PERMISSION); - String namespaceId = Tables.getNamespaceId(instance, tableId); + String namespaceId = Tables.getNamespaceId(instance, tableId); security.revokeTablePermission(credentials, user, tableId, TablePermission.getPermissionById(permission), namespaceId); } @@ -277,6 +277,7 @@ public class ClientServiceHandler implements ClientService.Iface { try { if (!security.canPerformSystemActions(credentials)) throw new AccumuloSecurityException(credentials.getPrincipal(), SecurityErrorCode.PERMISSION_DENIED); + log.debug("Got request to bulk import files to table(" + tableId + "): " + files); return transactionWatcher.run(Constants.BULK_ARBITRATOR_TYPE, tid, new Callable>() { @Override public List call() throws Exception {