From issues-return-31102-archive-asf-public=cust-asf.ponee.io@geode.apache.org Fri Feb 9 23:37:06 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id F1F7F180654 for ; Fri, 9 Feb 2018 23:37:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id E1A68160C4C; Fri, 9 Feb 2018 22:37:05 +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 0C3BD160C3C for ; Fri, 9 Feb 2018 23:37:04 +0100 (CET) Received: (qmail 89968 invoked by uid 500); 9 Feb 2018 22:37:04 -0000 Mailing-List: contact issues-help@geode.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@geode.apache.org Delivered-To: mailing list issues@geode.apache.org Received: (qmail 89959 invoked by uid 99); 9 Feb 2018 22:37:04 -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; Fri, 09 Feb 2018 22:37:04 +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 BB0D51A00C8 for ; Fri, 9 Feb 2018 22:37:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -102.311 X-Spam-Level: X-Spam-Status: No, score=-102.311 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, 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 pZhjW0UJIuWq for ; Fri, 9 Feb 2018 22:37: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 5B79A5F39F for ; Fri, 9 Feb 2018 22:37: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 884C8E0161 for ; Fri, 9 Feb 2018 22:37: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 4091921E84 for ; Fri, 9 Feb 2018 22:37:00 +0000 (UTC) Date: Fri, 9 Feb 2018 22:37:00 +0000 (UTC) From: "Bruce Schuchardt (JIRA)" To: issues@geode.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (GEODE-4615) Deadlock shutting down client cache MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/GEODE-4615?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Bruce Schuchardt resolved GEODE-4615. ------------------------------------- Resolution: Fixed Fix Version/s: 1.5.0 > Deadlock shutting down client cache > ----------------------------------- > > Key: GEODE-4615 > URL: https://issues.apache.org/jira/browse/GEODE-4615 > Project: Geode > Issue Type: Bug > Components: client/server > Affects Versions: 1.1.0 > Reporter: Bruce Schuchardt > Assignee: Bruce Schuchardt > Priority: Major > Labels: pull-request-available > Fix For: 1.5.0 > > Time Spent: 2h 10m > Remaining Estimate: 0h > > A test became deadlocked when a thread executing a query was requesting a= PDX type ID from its server at the same time another thread was closing th= e cache.=C2=A0 I wrote a unit test to reproduce this problem.=C2=A0 Here is= the deadlock: > =C2=A0 > {noformat} > "ConnectionManagerJUnitTest thread": > at org.apache.geode.cache.client.internal.pooling.PooledConnection.intern= alDestroy(PooledConnection.java:76) > - waiting to lock <0x000000076bbc3d20> (a org.apache.geode.cache.client.i= nternal.pooling.PooledConnection) > at org.apache.geode.cache.client.internal.pooling.PooledConnection.intern= alClose(PooledConnection.java:101) > at org.apache.geode.cache.client.internal.pooling.ConnectionManagerImpl$C= onnectionMap.close(ConnectionManagerImpl.java:1164) > - locked <0x000000076b848f30> (a org.apache.geode.cache.client.internal.p= ooling.ConnectionManagerImpl$ConnectionMap) > at org.apache.geode.cache.client.internal.pooling.ConnectionManagerJUnitT= est$3.run(ConnectionManagerJUnitTest.java:613) > "main": > at org.apache.geode.cache.client.internal.pooling.ConnectionManagerImpl$C= onnectionMap.addConnection(ConnectionManagerImpl.java:1059) > - waiting to lock <0x000000076b848f30> (a org.apache.geode.cache.client.i= nternal.pooling.ConnectionManagerImpl$ConnectionMap) > at org.apache.geode.cache.client.internal.pooling.ConnectionManagerImpl.a= ddConnection(ConnectionManagerImpl.java:463) > at org.apache.geode.cache.client.internal.pooling.ConnectionManagerImpl.b= orrowConnection(ConnectionManagerImpl.java:245) > at org.apache.geode.cache.client.internal.pooling.ConnectionManagerJUnitT= est.testThatMapCloseCausesCacheClosedException(ConnectionManagerJUnitTest.j= ava:631) > - locked <0x000000076bbc3d20> (a org.apache.geode.cache.client.internal.p= ooling.PooledConnection) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j= ava:62) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess= orImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkM= ethod.java:50) > at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCall= able.java:12) > at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMet= hod.java:47) > at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMeth= od.java:17) > at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.j= ava:26) > at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.jav= a:27) > at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) > at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunn= er.java:78) > at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunn= er.java:57) > at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) > at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) > at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) > at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) > at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) > at org.junit.runners.ParentRunner.run(ParentRunner.java:363) > at org.junit.runner.JUnitCore.run(JUnitCore.java:137) > at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4Ide= aTestRunner.java:68) > at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWit= hArgs(IdeaTestRunner.java:47) > at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JU= nitStarter.java:242) > at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70= ) > {noformat} > The "main" thread obtains a Connection and then, with its sync lock held,= obtains another Connection to simulate the PDX registration. > The background thread waits for the other thread to be ready and then clo= ses the ConnectionMap. -- This message was sent by Atlassian JIRA (v7.6.3#76005)