Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 29324 invoked from network); 5 Jul 2006 23:04:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Jul 2006 23:04:21 -0000 Received: (qmail 47594 invoked by uid 500); 5 Jul 2006 23:04:20 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 47552 invoked by uid 500); 5 Jul 2006 23:04:19 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 47542 invoked by uid 99); 5 Jul 2006 23:04:19 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Jul 2006 16:04:19 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Jul 2006 16:04:18 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1B546410401 for ; Wed, 5 Jul 2006 23:02:31 +0000 (GMT) Message-ID: <11410181.1152140551109.JavaMail.jira@brutus> Date: Wed, 5 Jul 2006 23:02:31 +0000 (GMT+00:00) From: "Suresh Thalamati (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-989) unit/daemonService.unit fails intermittently: 'ran out of time' In-Reply-To: <1871496922.1140001869422.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-989?page=comments#action_12419356 ] Suresh Thalamati commented on DERBY-989: ---------------------------------------- Hi Knut, Thanks for looking into this failure. I took a quick look at your changes,patch looks good. Only minor thing I noticed is : In work() method is getting assing to the current service record: + if ((work.getClientNumber() >= 0) && + (subscription.elementAt(work.getClientNumber()) == null)) { + / DERBY-989: client has unsubscribed, skip it + continue; + } + currentlyBeingServiced = work; } I think the statement "currentlyBeingServiced = work" can be set only when clientNumber > 0 ; in other cases anyway it is not being used; As I understantd this patch is fixing only subscribe/unsubscribe type requests. I am also bit confused about what should be correct contract of unsubscribe() method should be. I looked at the derby code little bit for cases where unsubcribe() call makes performWork() in execution for that client throws weird errors. One thing I noticed is BasicDaemon:stop() method is called either before the unsubscribe() method calls or immediately after it. stop() method waits for work in progress to complete. Not sure if this patch will prevent any new issues, that is not addressed by calling the daemon stop() method. My choice would be to fix the test, unless some one finds a problem in the engine code with usage of unsubcribe() method. Thanks -suresh > unit/daemonService.unit fails intermittently: 'ran out of time' > --------------------------------------------------------------- > > Key: DERBY-989 > URL: http://issues.apache.org/jira/browse/DERBY-989 > Project: Derby > Type: Test > Components: Regression Test Failure > Versions: 10.2.0.0 > Environment: OS: Solaris 10 3/05 s10_74L2a X86 - SunOS 5.10 Generic, JVM: Sun Microsystems Inc. 1.5.0_04 > OS: Solaris 9 9/04 s9s_u7wos_09 SPARC - SunOS 5.9 Generic_118558-11, JVM: Sun Microsystems Inc. 1.5.0_03 > OS: Red Hat Enterprise Linux AS release 3 (Taroon Update 4) - Linux 2.4.21-27.ELsmp #1 SMP Wed Dec 1 21:50:31 EST 2004 GNU/Linux, JVM: Sun Microsystems Inc. 1.5.0_03 > Reporter: Ole Solberg > Assignee: Knut Anders Hatlen > Priority: Minor > Attachments: 989-411220-derbyall_derbyall_unit_unit_derby.log, derby-989-testfix.diff, derby-989-testfix.stat, derby-989-timebomb.diff, derby-989-timebomb.stat, derby-989-v1.diff, derby-989-v1.stat > > "Signature": > ********* Diff file unit/unit/daemonService.diff > *** Start: daemonService jdk1.5.0_04 unit:unit 2006-02-14 20:46:42 *** > 2 del > < -- Unit Test T_DaemonService finished > 2 add > > ran out of time > > Shutting down due to unit test failure. > > Exit due to time bomb > Test Failed. > *** End: daemonService jdk1.5.0_04 unit:unit 2006-02-14 21:47:13 *** > http://www.multinet.no/~solberg/public/Apache/Derby/Limited/testSummary-377800.html [SunOS-5.10 i86pc-i386] -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira