Sourabh Goyal has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/17298


Change subject: IMPALA-10648: Invalidate catalogd table cache for hms ddl apis 
which modify tables and partitions.
......................................................................

IMPALA-10648: Invalidate catalogd table cache for hms ddl apis which modify 
tables and partitions.

 For non transactional tables, invalidate the table from cache if HMS DDL apis 
are accessed
from catalogd's metastore server. Any subsequent get table request fetches the 
table from
HMS and loads it in cache. This ensures that any get_table/get_partition 
requests after DDL
operations on the same table return updated table. This behavior has a 
performance penalty
(since table loading in cache takes time) but ensures consistency. This change 
is behind catalogd
server's flag: invalidate_hms_cache_on_ddls which is enabled by default. The 
flag needs to be
turned off if this change becomes a performance bottleneck.

Change-Id: Idb9cc22ebfb51948433e4d57f4705ce201acaf98
---
M be/src/catalog/catalog-server.cc
M be/src/util/backend-gflag-util.cc
M common/thrift/BackendGflags.thrift
M 
fe/src/main/java/org/apache/impala/catalog/metastore/MetastoreServiceHandler.java
M tests/custom_cluster/test_metastore_service.py
5 files changed, 416 insertions(+), 48 deletions(-)



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Idb9cc22ebfb51948433e4d57f4705ce201acaf98
Gerrit-Change-Number: 17298
Gerrit-PatchSet: 1
Gerrit-Owner: Sourabh Goyal <soura...@cloudera.com>

Reply via email to