Return-Path: Delivered-To: apmail-juddi-dev-archive@www.apache.org Received: (qmail 44377 invoked from network); 27 Oct 2010 17:19:46 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 27 Oct 2010 17:19:46 -0000 Received: (qmail 97134 invoked by uid 500); 27 Oct 2010 17:19:46 -0000 Delivered-To: apmail-juddi-dev-archive@juddi.apache.org Received: (qmail 97110 invoked by uid 500); 27 Oct 2010 17:19:46 -0000 Mailing-List: contact dev-help@juddi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@juddi.apache.org Delivered-To: mailing list dev@juddi.apache.org Received: (qmail 96850 invoked by uid 99); 27 Oct 2010 17:19:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Oct 2010 17:19:45 +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; Wed, 27 Oct 2010 17:19:43 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o9RHJLQn020472 for ; Wed, 27 Oct 2010 17:19:22 GMT Message-ID: <9740525.102931288199961401.JavaMail.jira@thor> Date: Wed, 27 Oct 2010 13:19:21 -0400 (EDT) From: "Kurt T Stam (JIRA)" To: dev@juddi.apache.org Subject: [jira] Commented: (JUDDI-426) Could disable the check for the lag time of the notification In-Reply-To: <20910177.92611288147579958.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/JUDDI-426?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12925465#action_12925465 ] Kurt T Stam commented on JUDDI-426: ----------------------------------- Thank you ShengTao, but what is it you are trying to achieve? jUDDI is using a Timer, sometimes the timer fires late (i.e. if the CPU is pegged). So if this happens, why should we care about an old timer event? We might as well use the current event to do our notification work. So please explain what your suggestion improves. Thx --Kurt > Could disable the check for the lag time of the notification > ------------------------------------------------------------ > > Key: JUDDI-426 > URL: https://issues.apache.org/jira/browse/JUDDI-426 > Project: jUDDI > Issue Type: Improvement > Components: core > Affects Versions: 3.0.1 > Reporter: ShengTao Dong > Assignee: Kurt T Stam > > In the org.apache.juddi.subscription.SubscriptionNotifier class, there is this method: > The value ACCEPTABLE_LAG_TIME is fixed in code and is 500ms, and could this be refactor to be a property that the user can set, and for some special value, for example '-1' will mean always notify. > private boolean firedOnTime(long scheduleExecutionTime) { > long lagTime = System.currentTimeMillis() - scheduleExecutionTime; > if (lagTime <= ACCEPTABLE_LAG_TIME) { > return true; > } else { > log.warn("NotificationTimer is lagging " + lagTime + " milli seconds behind. A lag time " > + "which exceeds an acceptable lagtime of " + ACCEPTABLE_LAG_TIME + "ms indicates " > + "that the registry server is under stress. We are therefore skipping this notification " > + "cycle."); > return false; > } > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.