Oved Ourfali has uploaded a new change for review.

Change subject: core: Reduce number of tasks in queue log messages
......................................................................

core: Reduce number of tasks in queue log messages

When the engine server is loaded, there is a message printed to the log.
This patch increases the threshold of the number of waiting tasks from 0
to 5.

Change-Id: Ieb061ed29750184bcdd39af7d8c3fc7d0dcacabd
Signed-off-by: [email protected] <[email protected]>
(cherry picked from commit 0c9c012b8704794e27d5a44842fd447cc7a2aa24)
---
M 
backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/threadpool/ThreadPoolUtil.java
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/93/31893/1

diff --git 
a/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/threadpool/ThreadPoolUtil.java
 
b/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/threadpool/ThreadPoolUtil.java
index f3522dc..4f7c1ed 100644
--- 
a/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/threadpool/ThreadPoolUtil.java
+++ 
b/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/threadpool/ThreadPoolUtil.java
@@ -52,7 +52,7 @@
                 log.debug("About to run task " + r.getClass().getName() + " 
from ", new Exception());
             }
 
-            if (getQueue().size() > 0) {
+            if (getQueue().size() > 5) {
                 log.warn("Executing a command: " + r.getClass().getName() + " 
, but note that there are "
                         + getQueue().size() + " tasks in the queue.");
             }


-- 
To view, visit http://gerrit.ovirt.org/31893
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ieb061ed29750184bcdd39af7d8c3fc7d0dcacabd
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.5
Gerrit-Owner: Oved Ourfali <[email protected]>
Gerrit-Reviewer: Liran Zelkha <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to