This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git
The following commit(s) were added to refs/heads/master by this push:
new ce3ae76 [Bug] Bucket Shuffle Join may cause:Failed to send brpc
batch, Not connected to 0.0.0.0:0 (#5901)
ce3ae76 is described below
commit ce3ae764e5a2f61e4fcfd809ed8cfd1f59bf9de7
Author: HappenLee <[email protected]>
AuthorDate: Thu May 27 09:05:15 2021 -0500
[Bug] Bucket Shuffle Join may cause:Failed to send brpc batch, Not
connected to 0.0.0.0:0 (#5901)
---
.../src/main/java/org/apache/doris/planner/DataPartition.java | 4 ++++
fe/fe-core/src/main/java/org/apache/doris/qe/Coordinator.java | 7 +++++--
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/planner/DataPartition.java
b/fe/fe-core/src/main/java/org/apache/doris/planner/DataPartition.java
index ec47456..a8ee29a 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/planner/DataPartition.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/planner/DataPartition.java
@@ -95,6 +95,10 @@ public class DataPartition {
return type != TPartitionType.UNPARTITIONED;
}
+ public boolean isBucketShuffleHashPartition() {
+ return type == TPartitionType.BUCKET_SHFFULE_HASH_PARTITIONED;
+ }
+
public TPartitionType getType() {
return type;
}
diff --git a/fe/fe-core/src/main/java/org/apache/doris/qe/Coordinator.java
b/fe/fe-core/src/main/java/org/apache/doris/qe/Coordinator.java
index c891a03..1f8c38f 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/qe/Coordinator.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/qe/Coordinator.java
@@ -828,7 +828,11 @@ public class Coordinator {
params.instanceExecParams.size() +
destParams.perExchNumSenders.get(exchId.asInt()));
}
- if
(bucketShuffleJoinController.isBucketShuffleJoin(destFragment.getFragmentId().asInt()))
{
+ if (sink.getOutputPartition().isBucketShuffleHashPartition()) {
+ // the destFragment must be bucket shuffle
+ Preconditions.checkState(bucketShuffleJoinController.
+
isBucketShuffleJoin(destFragment.getFragmentId().asInt()));
+
int bucketSeq = 0;
int bucketNum =
bucketShuffleJoinController.getFragmentBucketNum(destFragment.getFragmentId());
TNetworkAddress dummyServer = new TNetworkAddress("0.0.0.0",
0);
@@ -1544,7 +1548,6 @@ public class Coordinator {
return true;
}
- // One fragment could only have one HashJoinNode
if (node instanceof HashJoinNode) {
HashJoinNode joinNode = (HashJoinNode) node;
if (joinNode.isBucketShuffle()) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]