Impala Public Jenkins has submitted this change and it was merged. ( 
http://gerrit.cloudera.org:8080/17502 )

Change subject: IMPALA-10197 (Part 2): Add KUDU_REPLICA_SELECTION query option
......................................................................

IMPALA-10197 (Part 2): Add KUDU_REPLICA_SELECTION query option

The previous patch added a new test case in PlannerTest for Kudu,
which check for specific number of hosts and instances for distributed
plan with query option KUDU_REPLICA_SELECTION set as LEADER_ONLY.
However, the leadership isn't deterministic since each Kudu partition
has its own Raft group and the leaders of these groups are not exactly
balanced across hosts in a cluster. There's no guarantee that we'll get
a certain number of leader hosts for a query which access multiple KUDU
partitions. This makes the unit-test flaky.

This patch removed the distributed plans to avoid nondeterminism.

Testing:
 - Reran the Planner test and verified the issue did not happen.

Change-Id: I3e23667c06c273a261e03de3d81fc7ee1f6b0682
Reviewed-on: http://gerrit.cloudera.org:8080/17502
Reviewed-by: Quanlong Huang <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>
---
M 
testdata/workloads/functional-planner/queries/PlannerTest/kudu-replica-selection-closest-replica.test
M 
testdata/workloads/functional-planner/queries/PlannerTest/kudu-replica-selection-leader-only.test
2 files changed, 11 insertions(+), 182 deletions(-)

Approvals:
  Quanlong Huang: Looks good to me, approved
  Impala Public Jenkins: Verified

--
To view, visit http://gerrit.cloudera.org:8080/17502
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I3e23667c06c273a261e03de3d81fc7ee1f6b0682
Gerrit-Change-Number: 17502
Gerrit-PatchSet: 6
Gerrit-Owner: Wenzhe Zhou <[email protected]>
Gerrit-Reviewer: Grant Henke <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Qifan Chen <[email protected]>
Gerrit-Reviewer: Quanlong Huang <[email protected]>
Gerrit-Reviewer: Wenzhe Zhou <[email protected]>

Reply via email to