incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r643821 - /incubator/sling/trunk/sling/event/src/main/java/org/apache/sling/event/impl/JobEventHandler.java
Date Wed, 02 Apr 2008 09:51:52 GMT
Author: cziegeler
Date: Wed Apr  2 02:51:45 2008
New Revision: 643821

URL: http://svn.apache.org/viewvc?rev=643821&view=rev
Log:
Correctl handle retry count: retry exactly the number specified which makes (worst case):
number of executions = 1 + number of retries.

Modified:
    incubator/sling/trunk/sling/event/src/main/java/org/apache/sling/event/impl/JobEventHandler.java

Modified: incubator/sling/trunk/sling/event/src/main/java/org/apache/sling/event/impl/JobEventHandler.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/sling/event/src/main/java/org/apache/sling/event/impl/JobEventHandler.java?rev=643821&r1=643820&r2=643821&view=diff
==============================================================================
--- incubator/sling/trunk/sling/event/src/main/java/org/apache/sling/event/impl/JobEventHandler.java
(original)
+++ incubator/sling/trunk/sling/event/src/main/java/org/apache/sling/event/impl/JobEventHandler.java
Wed Apr  2 02:51:45 2008
@@ -703,7 +703,7 @@
                     retryCount = (Integer)job.getProperty(EventUtil.PROPERTY_JOB_RETRY_COUNT);
                 }
                 retryCount++;
-                if ( retryCount >= retries ) {
+                if ( retryCount > retries ) {
                     reschedule = false;
                 }
                 // update event with retry count



Mime
View raw message