Zoltan Borok-Nagy has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/23470


Change subject: IMPALA-14468: Don't genereate errors during 
InitWorkloadManagement() when everything goes fine
......................................................................

IMPALA-14468: Don't genereate errors during InitWorkloadManagement() when 
everything goes fine

When Workload management is used first, CatalogD reports error "Table
not found: sys.impala_query_log". (also for sys.impala_query_live)

It is because during InitWorkloadManagement() we issue a ResetMetadata()
request against sys.impala_query_log to retrieve its schema version. If
the request fails with TableNotFound, we create the table. In other
words, the current initialization of workload management generates error
messages even when everything is going fine, and this can confuse users.

Instead of calling ResetMetadata() we can test the existence of the
workload management tables (sys.impala_query_log and
sys.impala_query_live) first.

Testing
 * tested manually that the error logs disappear

Change-Id: Ic7f7c92bda57d9fdc2185bf4ef8fd4f09aea0879
---
M be/src/catalog/workload-management-init.cc
1 file changed, 15 insertions(+), 15 deletions(-)



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic7f7c92bda57d9fdc2185bf4ef8fd4f09aea0879
Gerrit-Change-Number: 23470
Gerrit-PatchSet: 1
Gerrit-Owner: Zoltan Borok-Nagy <borokna...@cloudera.com>

Reply via email to