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 EA085200D27 for ; Wed, 25 Oct 2017 23:22:07 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E8977160BDA; Wed, 25 Oct 2017 21:22:07 +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 3AC211609CE for ; Wed, 25 Oct 2017 23:22:07 +0200 (CEST) Received: (qmail 97376 invoked by uid 500); 25 Oct 2017 21:22:06 -0000 Mailing-List: contact issues-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list issues@ignite.apache.org Received: (qmail 97367 invoked by uid 99); 25 Oct 2017 21:22:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Oct 2017 21:22:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id BC2451A15AA for ; Wed, 25 Oct 2017 21:22:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id mtZ5ltEFDuhe for ; Wed, 25 Oct 2017 21:22:05 +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 A0D7060CD3 for ; Wed, 25 Oct 2017 21:22:04 +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 A5818E2653 for ; Wed, 25 Oct 2017 21:22:02 +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 446A721319 for ; Wed, 25 Oct 2017 21:22:01 +0000 (UTC) Date: Wed, 25 Oct 2017 21:22:01 +0000 (UTC) From: "Pavel Pereslegin (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (IGNITE-6380) Exception should be thrown on cache creation attempt inside transaction MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 25 Oct 2017 21:22:08 -0000 [ https://issues.apache.org/jira/browse/IGNITE-6380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16219542#comment-16219542 ] Pavel Pereslegin commented on IGNITE-6380: ------------------------------------------ Hello, [~rajivgandhi]. I see that second thread is stuck on latch2.await() instead of cache1.clear() are you sure this is correct reproducer? If you want to show that clear() stuck and be sure that reentrantLock was executed first - you can change it to latch2.await(1, TimeUnit.SECONDS), for example. And in this case (with proposed patch) execution of clear() will be rejected. > Exception should be thrown on cache creation attempt inside transaction > ----------------------------------------------------------------------- > > Key: IGNITE-6380 > URL: https://issues.apache.org/jira/browse/IGNITE-6380 > Project: Ignite > Issue Type: Improvement > Reporter: Yakov Zhdanov > Assignee: Pavel Pereslegin > Labels: newbie, usability > > Exception should be thrown on cache creation attempt inside transaction to prevent deadlocks since cache start triggers exchange and exchange cannot finish until all txs are finished. > We need to check if thread owns a tx before starting cache and if it does then IllegalStateException should be thrown. -- This message was sent by Atlassian JIRA (v6.4.14#64029)