marmotta-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sschaff...@apache.org
Subject [33/50] [abbrv] git commit: force shutdown of reasoning engine: don't wait so long
Date Mon, 30 Sep 2013 16:45:10 GMT
force shutdown of reasoning engine: don't wait so long


Project: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/commit/9cc8d973
Tree: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/tree/9cc8d973
Diff: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/diff/9cc8d973

Branch: refs/heads/master
Commit: 9cc8d9737e15f782b3c99413c18e112519ce6899
Parents: 4ad75ef
Author: Sebastian Schaffert <sschaffert@apache.org>
Authored: Fri Sep 13 13:29:30 2013 +0200
Committer: Sebastian Schaffert <sschaffert@apache.org>
Committed: Fri Sep 13 13:29:30 2013 +0200

----------------------------------------------------------------------
 .../apache/marmotta/kiwi/reasoner/engine/ReasoningEngine.java  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/9cc8d973/libraries/kiwi/kiwi-reasoner/src/main/java/org/apache/marmotta/kiwi/reasoner/engine/ReasoningEngine.java
----------------------------------------------------------------------
diff --git a/libraries/kiwi/kiwi-reasoner/src/main/java/org/apache/marmotta/kiwi/reasoner/engine/ReasoningEngine.java
b/libraries/kiwi/kiwi-reasoner/src/main/java/org/apache/marmotta/kiwi/reasoner/engine/ReasoningEngine.java
index 0e86f8d..69d6cde 100644
--- a/libraries/kiwi/kiwi-reasoner/src/main/java/org/apache/marmotta/kiwi/reasoner/engine/ReasoningEngine.java
+++ b/libraries/kiwi/kiwi-reasoner/src/main/java/org/apache/marmotta/kiwi/reasoner/engine/ReasoningEngine.java
@@ -908,10 +908,10 @@ public class ReasoningEngine implements TransactionListener {
             reasoningQueue.clear();
             reasonerThread.shutdown(true);
 
-            for(int i = 0; i<3 && isRunning(); i++) {
-                log.warn("reasoner not yet finished, waiting for 1 seconds (try={})", i+1);
+            for(int i = 0; i<5 && isRunning(); i++) {
+                log.warn("reasoner not yet finished, waiting for 100 ms (try={})", i+1);
                 try {
-                    Thread.sleep(1000);
+                    Thread.sleep(100);
                 } catch (InterruptedException e) {
                 }
             }


Mime
View raw message