Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 85072 invoked from network); 12 Aug 2010 20:40:40 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Aug 2010 20:40:40 -0000 Received: (qmail 6072 invoked by uid 500); 12 Aug 2010 20:40:40 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 6027 invoked by uid 500); 12 Aug 2010 20:40:40 -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 6019 invoked by uid 99); 12 Aug 2010 20:40:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Aug 2010 20:40:40 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Aug 2010 20:40:38 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o7CKeGZ2001815 for ; Thu, 12 Aug 2010 20:40:16 GMT Message-ID: <29892246.313291281645615988.JavaMail.jira@thor> Date: Thu, 12 Aug 2010 16:40:15 -0400 (EDT) From: "Albert Lee (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Commented: (OPENJPA-1753) TestMixedLockManagerLockPermutation: Timing issue determines the pass/no-pass of the test case In-Reply-To: <22288094.89041280507355803.JavaMail.jira@thor> 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-1753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12897939#action_12897939 ] Albert Lee commented on OPENJPA-1753: ------------------------------------- Need to set postgresql.conf property max_connection >= 150, otherwise will get exception like: TestMixedLockManagerLockPermutation.testLockWriteRead View test details (org.apache.openjpa.persistence.lockmgr) org.apache.openjpa.util.StoreException: Cannot create PoolableConnectionFactory (FATAL: sorry, too many clients already) at org.apache.openjpa.jdbc.sql.DBDictionaryFactory.newDBDictionary(DBDictionaryFactory.java:102) at org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.getDBDictionaryInstance(JDBCConfigurationImpl.java:599) > TestMixedLockManagerLockPermutation: Timing issue determines the pass/no-pass of the test case > ---------------------------------------------------------------------------------------------- > > Key: OPENJPA-1753 > URL: https://issues.apache.org/jira/browse/OPENJPA-1753 > Project: OpenJPA > Issue Type: Bug > Affects Versions: 2.1.0 > Reporter: Fay Wang > Priority: Minor > Fix For: 2.1.0 > > Attachments: trace_fail.txt, trace_success.txt > > > This test case spawns three threads and the pass/no pass of the test cases depends on the timing. > One example is TestMixedLockManagerFindPermutation.testFindReadPessimisticRead: > commonFindTest( > "testFind(Read,Commit/PessimisticRead,Rollback)", > LockModeType.READ, Act.CommitTx, 1, null, > LockModeType.PESSIMISTIC_READ, Act.RollbackTx, 1, null); > If the find by the second child [Thread-8] is executed before the jdbc commit of the update statement by the first child [Thread-7], the test will fail. Attached are the trace file for the successful run and failing run. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.