You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2021/05/24 12:26:00 UTC

[jira] [Commented] (IMPALA-10197) Add KUDU_REPLICA_SELECTION config and query option

    [ https://issues.apache.org/jira/browse/IMPALA-10197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17350404#comment-17350404 ] 

ASF subversion and git services commented on IMPALA-10197:
----------------------------------------------------------

Commit e11237e29ed3a41dd361dd7a541f9702d0d0b16b in impala's branch refs/heads/master from wzhou-code
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=e11237e ]

IMPALA-10197: Add KUDU_REPLICA_SELECTION query option

Sometimes it is useful to target queries at the leader only replica
instead of the default closest replica.
This patch added new query option KUDU_REPLICA_SELECTION with which to
choose replicas for Kudu amongst multiple Kudu replicas.
Removed variable FLAGS_pick_only_leaders_for_tests since its usage can
be replaced by the new query option.
Added new planner and end-to-end tests for the new query option.

Testings:
  - Passed exhaustive tests.

Change-Id: I613e6d9be8680c05880f7cf962a31aa38931f3d9
Reviewed-on: http://gerrit.cloudera.org:8080/17396
Reviewed-by: Impala Public Jenkins <im...@cloudera.com>
Tested-by: Impala Public Jenkins <im...@cloudera.com>


> Add KUDU_REPLICA_SELECTION config and query option
> --------------------------------------------------
>
>                 Key: IMPALA-10197
>                 URL: https://issues.apache.org/jira/browse/IMPALA-10197
>             Project: IMPALA
>          Issue Type: Improvement
>          Components: Frontend
>    Affects Versions: Impala 4.0
>            Reporter: Grant Henke
>            Assignee: Wenzhe Zhou
>            Priority: Trivial
>              Labels: kudu, newbie, ramp-up
>
> Sometimes it is useful to target queries at the LEADER_ONLY instead of the default CLOSEST_REPLICA. We should expose this option in Impala similar to the way KUDU_READ_MODE is exposed:
> https://impala.apache.org/docs/build/html/topics/impala_kudu_read_mode.html
> Currently there is a test only flag, FLAGS_pick_only_leaders_for_tests, that somewhat does this:
> https://github.com/apache/impala/blob/da2999afd9ddc45d35141649d17db507e03ee9bf/be/src/exec/kudu-scanner.cc#L195-L198



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org