Riza Suminto has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/20189


Change subject: IMPALA-12281: Disallow unsetting REQUEST_POOL if it is set by 
client
......................................................................

IMPALA-12281: Disallow unsetting REQUEST_POOL if it is set by client

IMPALA-12056 enable child query to unset REQUEST_POOL if it is set by
Frontend.java as part of executor group selection. However, the
implementation miss to setRequest_pool_set_by_frontend(false) if
REQUEST_POOL is explicitly set by client request through impala-shell
configuration. This cause child query to always unset REQUEST_POOL if
parent query was executed via impala-shell. This patch fix the issue by
checking query options that comes from client.

This patch also tidy up null and empty REQUEST_POOL checking by using
StringUtils.isNotEmpty().

Testing:
- Add testcase in test_query_cpu_count_divisor_default

Change-Id: Ib5036859d51bc64f568da405f730c8f3ffebb742
---
M fe/src/main/java/org/apache/impala/service/Frontend.java
M tests/custom_cluster/test_executor_groups.py
2 files changed, 32 insertions(+), 13 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/89/20189/1
--
To view, visit http://gerrit.cloudera.org:8080/20189
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib5036859d51bc64f568da405f730c8f3ffebb742
Gerrit-Change-Number: 20189
Gerrit-PatchSet: 1
Gerrit-Owner: Riza Suminto <[email protected]>

Reply via email to