Xikui Wang has uploaded a new change for review.
https://asterix-gerrit.ics.uci.edu/2148
Change subject: [ASTERIXDB-2164][HYR] Fix node assignment bug for unbounded task
......................................................................
[ASTERIXDB-2164][HYR] Fix node assignment bug for unbounded task
- user model changes: no
- storage format changes: no
- interface changes: no
Details:
The upper bound of node selection is mistakenly set to 1. Change that to
the size of live nodes can fix the issue.
Change-Id: I06e1b38bf74038d975a6dd17052e46e74fe1fc02
---
M
hyracks-fullstack/hyracks/hyracks-control/hyracks-control-cc/src/main/java/org/apache/hyracks/control/cc/executor/JobExecutor.java
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://asterix-gerrit.ics.uci.edu:29418/asterixdb
refs/changes/48/2148/1
diff --git
a/hyracks-fullstack/hyracks/hyracks-control/hyracks-control-cc/src/main/java/org/apache/hyracks/control/cc/executor/JobExecutor.java
b/hyracks-fullstack/hyracks/hyracks-control/hyracks-control-cc/src/main/java/org/apache/hyracks/control/cc/executor/JobExecutor.java
index 8a69a6f..dd02692 100644
---
a/hyracks-fullstack/hyracks/hyracks-control/hyracks-control-cc/src/main/java/org/apache/hyracks/control/cc/executor/JobExecutor.java
+++
b/hyracks-fullstack/hyracks/hyracks-control/hyracks-control-cc/src/main/java/org/apache/hyracks/control/cc/executor/JobExecutor.java
@@ -446,7 +446,7 @@
Object location = solver.getValue(pLocationExpr);
if (location == null) {
// pick any
- nodeId = liveNodes.toArray(new
String[liveNodes.size()])[random.nextInt(1) % liveNodes.size()];
+ nodeId = liveNodes.toArray(new
String[liveNodes.size()])[random.nextInt(liveNodes.size())];
} else if (location instanceof String) {
nodeId = (String) location;
} else if (location instanceof String[]) {
--
To view, visit https://asterix-gerrit.ics.uci.edu/2148
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I06e1b38bf74038d975a6dd17052e46e74fe1fc02
Gerrit-PatchSet: 1
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Xikui Wang <[email protected]>