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 A4992200C19 for ; Sun, 12 Feb 2017 08:55:48 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id A30FD160B6B; Sun, 12 Feb 2017 07:55:48 +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 ECDB3160B45 for ; Sun, 12 Feb 2017 08:55:47 +0100 (CET) Received: (qmail 72694 invoked by uid 500); 12 Feb 2017 07:55:46 -0000 Mailing-List: contact dev-help@tephra.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tephra.incubator.apache.org Delivered-To: mailing list dev@tephra.incubator.apache.org Received: (qmail 72683 invoked by uid 99); 12 Feb 2017 07:55:46 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Feb 2017 07:55:46 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 491E7180684 for ; Sun, 12 Feb 2017 07:55:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id dIrozY4wsNPH for ; Sun, 12 Feb 2017 07:55:45 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 6FF105F403 for ; Sun, 12 Feb 2017 07:55:44 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 6B9F6E0272 for ; Sun, 12 Feb 2017 07:55:43 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 7036E21D65 for ; Sun, 12 Feb 2017 07:55:42 +0000 (UTC) Date: Sun, 12 Feb 2017 07:55:42 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: dev@tephra.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (TEPHRA-219) Setup proper security context in co-processor for compaction and flushes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sun, 12 Feb 2017 07:55:48 -0000 [ https://issues.apache.org/jira/browse/TEPHRA-219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15862690#comment-15862690 ] ASF GitHub Bot commented on TEPHRA-219: --------------------------------------- GitHub user gokulavasan opened a pull request: https://github.com/apache/incubator-tephra/pull/35 (TEPHRA-219) Execute cross region calls in Coprocessor as the login user i) Fixes a problem where the pruneThread would exit if the state of the service is not yet set to RUNNING state. This also fixes the flakiness in the PruneUpperBoundSupplierTest which was caused due to the above problem. ii) Load the txMaxLifeTimeMillis and pruneEnable properties dynamically. iii) Add a hook around cross region calls in the PruneUpperBoundWriter. You can merge this pull request into a Git repository by running: $ git pull https://github.com/gokulavasan/incubator-tephra feature/dynamic-loading-props Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-tephra/pull/35.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #35 ---- commit 5fd4c6f54f9c17500788f1ae7bea38be073729fc Author: Gokul Gunasekaran Date: 2017-02-12T03:42:02Z Check all valid states commit 4b7a837ae8584c18437984bf13579d31628f9487 Author: Gokul Gunasekaran Date: 2017-02-12T07:13:53Z Load properties dynamically commit 2c8b8952025adaa7cef96c90a9d60ffcce233da4 Author: Gokul Gunasekaran Date: 2017-02-12T07:41:58Z TEPHRA-219 execute cross region calls in coprocessor as the login user commit 9a120fe2db1a6e99f2d81dda00f99346a9cc4457 Author: Gokul Gunasekaran Date: 2017-02-12T07:54:45Z We can;t guarantee to reload pruneTable and pruneFlushInterval since we use single thread across all regions and thus the thread might be already running ---- > Setup proper security context in co-processor for compaction and flushes > ------------------------------------------------------------------------ > > Key: TEPHRA-219 > URL: https://issues.apache.org/jira/browse/TEPHRA-219 > Project: Tephra > Issue Type: Sub-task > Reporter: Poorna Chandra > Assignee: Gokul Gunasekaran > Fix For: 0.11.0-incubating > > > From PHOENIX-3037, HBASE-16115 and HBASE-16141 - HBase runs compaction/flush co-processor hooks as the user (current user) who started the compaction/flush. This becomes an issue when a co-processor makes cross region server calls in hooks. If the calls are made as the current user, then the call may fail since the current user may not have sufficient privileges to perform the call. > Tephra TransactionProcessor will need to run all calls in compaction/flush hooks as the login user instead of the current user. -- This message was sent by Atlassian JIRA (v6.3.15#6346)