From dev-return-2102-apmail-tephra-dev-archive=tephra.apache.org@tephra.incubator.apache.org Thu Apr 26 00:13:03 2018 Return-Path: X-Original-To: apmail-tephra-dev-archive@minotaur.apache.org Delivered-To: apmail-tephra-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 795F81832D for ; Thu, 26 Apr 2018 00:13:03 +0000 (UTC) Received: (qmail 72928 invoked by uid 500); 26 Apr 2018 00:13:03 -0000 Delivered-To: apmail-tephra-dev-archive@tephra.apache.org Received: (qmail 72888 invoked by uid 500); 26 Apr 2018 00:13:03 -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 72877 invoked by uid 99); 26 Apr 2018 00:13:03 -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; Thu, 26 Apr 2018 00:13:03 +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 D2F1D180692 for ; Thu, 26 Apr 2018 00:13:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.511 X-Spam-Level: X-Spam-Status: No, score=-109.511 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] 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 u6iUQ4qBh9xh for ; Thu, 26 Apr 2018 00:13:02 +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 73FA75F188 for ; Thu, 26 Apr 2018 00:13:01 +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 818AAE010F for ; Thu, 26 Apr 2018 00:13:00 +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 238C8241D4 for ; Thu, 26 Apr 2018 00:13:00 +0000 (UTC) Date: Thu, 26 Apr 2018 00:13:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: dev@tephra.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (TEPHRA-270) Avoid transaction state cache refresh on co-procesor startup MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/TEPHRA-270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16453268#comment-16453268 ] ASF GitHub Bot commented on TEPHRA-270: --------------------------------------- GitHub user poornachandra opened a pull request: https://github.com/apache/incubator-tephra/pull/72 TEPHRA-270 TEPHRA-271 Transaction state cache bug fixes JIRA: https://issues.apache.org/jira/browse/TEPHRA-270 https://issues.apache.org/jira/browse/TEPHRA-271 This PR contains a couple of bug fixes for the Transaction state cache to fix race conditions and deadlocks. You can merge this pull request into a Git repository by running: $ git pull https://github.com/poornachandra/incubator-tephra feature/tx-state-cache Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-tephra/pull/72.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 #72 ---- commit 73feed9a6a93d032c2e19e4e7d77fa4eb2065fcf Author: poorna Date: 2018-04-25T23:51:56Z TEPHRA-270 Do not refresh the transaction state during co-processor startup to prevent deadlocks commit d42b282ec03c8e0d07bbb2a714961f2dd9b7641d Author: poorna Date: 2018-04-25T23:58:22Z TEPHRA-271 Wait for the refresh thread to stop during shutdown to prevent race conditions ---- > Avoid transaction state cache refresh on co-procesor startup > ------------------------------------------------------------ > > Key: TEPHRA-270 > URL: https://issues.apache.org/jira/browse/TEPHRA-270 > Project: Tephra > Issue Type: Improvement > Components: core > Reporter: Poorna Chandra > Assignee: Poorna Chandra > Priority: Major > Fix For: 0.14.0-incubating > > > Transaction state cache, on startup, refreshes the transaction snapshot from HDFS. The transaction state cache startup is called during HBase co-processor startup. The refresh of the transaction snapshot can block, thus blocking the co-processor startup. > The subsequent transaction snapshot refreshes happen in the background. Also - there is no guarantee that a snapshot will be present during the refresh on startup. Hence it is okay not to refresh the snapshot during snapshot, but do it in background. -- This message was sent by Atlassian JIRA (v7.6.3#76005)