You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ratis.apache.org by ms...@apache.org on 2020/03/02 12:47:48 UTC
[incubator-ratis] branch master updated: RATIS-814. High CPU usage
by TimeoutScheduler due to JDK bug JDK-8129861. Contributed by Lokesh Jain.
This is an automated email from the ASF dual-hosted git repository.
msingh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ratis.git
The following commit(s) were added to refs/heads/master by this push:
new 068f20c RATIS-814. High CPU usage by TimeoutScheduler due to JDK bug JDK-8129861. Contributed by Lokesh Jain.
068f20c is described below
commit 068f20c5118526290e4ecbcdb2551b92564d5696
Author: Mukul Kumar Singh <ms...@apache.org>
AuthorDate: Mon Mar 2 18:17:18 2020 +0530
RATIS-814. High CPU usage by TimeoutScheduler due to JDK bug JDK-8129861. Contributed by Lokesh Jain.
---
ratis-common/src/main/java/org/apache/ratis/util/TimeoutScheduler.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ratis-common/src/main/java/org/apache/ratis/util/TimeoutScheduler.java b/ratis-common/src/main/java/org/apache/ratis/util/TimeoutScheduler.java
index 4af13f1..9c428f2 100644
--- a/ratis-common/src/main/java/org/apache/ratis/util/TimeoutScheduler.java
+++ b/ratis-common/src/main/java/org/apache/ratis/util/TimeoutScheduler.java
@@ -85,7 +85,7 @@ public final class TimeoutScheduler implements Closeable {
private static ScheduledThreadPoolExecutor newExecutor() {
LOG.debug("new ScheduledThreadPoolExecutor");
- final ScheduledThreadPoolExecutor e = new ScheduledThreadPoolExecutor(0, (ThreadFactory) Daemon::new);
+ final ScheduledThreadPoolExecutor e = new ScheduledThreadPoolExecutor(1, (ThreadFactory) Daemon::new);
e.setRemoveOnCancelPolicy(true);
return e;
}