You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by rr...@apache.org on 2010/04/16 11:21:13 UTC

svn commit: r934723 - /ode/branches/APACHE_ODE_1.X/bpel-runtime/src/main/java/org/apache/ode/bpel/memdao/ProcessDaoImpl.java

Author: rr
Date: Fri Apr 16 09:21:07 2010
New Revision: 934723

URL: http://svn.apache.org/viewvc?rev=934723&view=rev
Log:
Fixed warn for completed in-mem instances cleanup

Modified:
    ode/branches/APACHE_ODE_1.X/bpel-runtime/src/main/java/org/apache/ode/bpel/memdao/ProcessDaoImpl.java

Modified: ode/branches/APACHE_ODE_1.X/bpel-runtime/src/main/java/org/apache/ode/bpel/memdao/ProcessDaoImpl.java
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/bpel-runtime/src/main/java/org/apache/ode/bpel/memdao/ProcessDaoImpl.java?rev=934723&r1=934722&r2=934723&view=diff
==============================================================================
--- ode/branches/APACHE_ODE_1.X/bpel-runtime/src/main/java/org/apache/ode/bpel/memdao/ProcessDaoImpl.java (original)
+++ ode/branches/APACHE_ODE_1.X/bpel-runtime/src/main/java/org/apache/ode/bpel/memdao/ProcessDaoImpl.java Fri Apr 16 09:21:07 2010
@@ -242,7 +242,9 @@ class ProcessDaoImpl extends DaoBaseImpl
                 Long id = (Long) oldInstances[i];
                 Long age = _instancesAge.get(id);
                 if (age != null && now-age > _conn._mexTtl) {
-                    __log.warn("Discarding in-memory instance "+id+" because it exceeded its time-to-live: "+_instances.get(id));
+                    if (_instances.get(id) != null) {
+                        __log.warn("Discarding in-memory instance "+id+" because it exceeded its time-to-live: "+_instances.get(id));
+                    }
                     _instances.remove(id);
                     _instancesAge.remove(id);
                 }