From dev-return-18844-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Thu Mar 31 16:05:49 2011 Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 50292 invoked from network); 31 Mar 2011 16:05:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 31 Mar 2011 16:05:49 -0000 Received: (qmail 58774 invoked by uid 500); 31 Mar 2011 16:05:49 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 58662 invoked by uid 500); 31 Mar 2011 16:05:49 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 58654 invoked by uid 99); 31 Mar 2011 16:05:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Mar 2011 16:05:49 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Mar 2011 16:05:46 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id C5FBE8CB57 for ; Thu, 31 Mar 2011 16:05:05 +0000 (UTC) Date: Thu, 31 Mar 2011 16:05:05 +0000 (UTC) From: "Ravi P Palacherla (JIRA)" To: dev@openjpa.apache.org Message-ID: <678516875.24726.1301587505807.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <183716983.24718.1301587205663.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (OPENJPA-1970) CPU spinning forever at TreeMap.get in Schema.java MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OPENJPA-1970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ravi P Palacherla updated OPENJPA-1970: --------------------------------------- Description: CPU is spinning forever at TreeMap.get in schema.java. The reason found to be because of structural modification of treemap outside a synchronized block. Synchronizing the treemap is fixing the issue. The issue can be reproduced with an openJPA test case but due to the nature of the problem, it is replicable intermittently on dual core machine. Attached patch has the test case and also the test case is ignored in default runs because it will cause the tests to stuck at TreeMap.get. This is seen in 1.1.x version of openJPA and hence uploading the patch only for that version. was: CPU is spinning at TreeMap.get in schema.java. The reason found to be because of structural modification of treemap outside a synchronized block. Synchronizing the treemap is fixing the issue. The issue can be reproduced with an openJPA test case but due to the nature of the problem, it is replicable intermittently on dual core machine. Attached patch has the test case and also the test case is ignored in default runs because it will cause the tests to stuck at TreeMap.get. This is seen in 1.1.x version of openJPA and hence uploading the patch only for that version. Summary: CPU spinning forever at TreeMap.get in Schema.java (was: CPU spinning at TreeMap.get in Schema.java ) > CPU spinning forever at TreeMap.get in Schema.java > --------------------------------------------------- > > Key: OPENJPA-1970 > URL: https://issues.apache.org/jira/browse/OPENJPA-1970 > Project: OpenJPA > Issue Type: Bug > Components: jdbc > Affects Versions: 1.1.1 > Environment: openJPA 1.1.x > Reporter: Ravi P Palacherla > Assignee: Ravi P Palacherla > > CPU is spinning forever at TreeMap.get in schema.java. > The reason found to be because of structural modification of treemap outside a synchronized block. > Synchronizing the treemap is fixing the issue. > The issue can be reproduced with an openJPA test case but due to the nature of the problem, it is replicable intermittently on dual core machine. > Attached patch has the test case and also the test case is ignored in default runs because it will cause the tests to stuck at TreeMap.get. > This is seen in 1.1.x version of openJPA and hence uploading the patch only for that version. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira