You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by xi...@apache.org on 2019/08/10 09:51:08 UTC
[incubator-pinot] branch fix_combine_node_issue created (now
867dd66)
This is an automated email from the ASF dual-hosted git repository.
xiangfu pushed a change to branch fix_combine_node_issue
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git.
at 867dd66 Make MAX_PLAN_THREADS >= 1
This branch includes the following new commits:
new 867dd66 Make MAX_PLAN_THREADS >= 1
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org
[incubator-pinot] 01/01: Make MAX_PLAN_THREADS >= 1
Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
xiangfu pushed a commit to branch fix_combine_node_issue
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git
commit 867dd66facea5ec246438d6bdcac8f759dde9617
Author: Xiang Fu <fx...@gmail.com>
AuthorDate: Sat Aug 10 02:50:46 2019 -0700
Make MAX_PLAN_THREADS >= 1
---
.../src/main/java/org/apache/pinot/core/plan/CombinePlanNode.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/pinot-core/src/main/java/org/apache/pinot/core/plan/CombinePlanNode.java b/pinot-core/src/main/java/org/apache/pinot/core/plan/CombinePlanNode.java
index c0cce5a..3cf8da7 100644
--- a/pinot-core/src/main/java/org/apache/pinot/core/plan/CombinePlanNode.java
+++ b/pinot-core/src/main/java/org/apache/pinot/core/plan/CombinePlanNode.java
@@ -39,7 +39,8 @@ import org.slf4j.LoggerFactory;
public class CombinePlanNode implements PlanNode {
private static final Logger LOGGER = LoggerFactory.getLogger(CombinePlanNode.class);
- private static final int MAX_PLAN_THREADS = Math.min(10, (int) (Runtime.getRuntime().availableProcessors() * .5));
+ private static final int MAX_PLAN_THREADS =
+ Math.max(1, Math.min(10, (int) (Runtime.getRuntime().availableProcessors() * .5)));
private static final int MIN_TASKS_PER_THREAD = 10;
private static final int TIME_OUT_IN_MILLISECONDS_FOR_PARALLEL_RUN = 10_000;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org