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


Change subject: Drop table/db from catalog cache when drop table/db HMS apis 
are accessed from catalog's metastore server.
......................................................................

Drop table/db from catalog cache when drop table/db HMS apis are
accessed from catalog's metastore server.

When perfoming these operations, we acquire lock in MetastoreServiceHandler
to serialize concurrent create/drop operations from catalog HMS endpoints

Testing:
1. Modified existing tests to address this change in functionality
2. Added new test to access create/drop hms apis in parallel to catch
   any potential deadlocks.

Change-Id: Ic2e2ad2630e2028b8ad26a6272ee766b27e0935c
---
M fe/src/main/java/org/apache/impala/catalog/CatalogServiceCatalog.java
M 
fe/src/main/java/org/apache/impala/catalog/metastore/MetastoreServiceHandler.java
A 
fe/src/test/java/org/apache/impala/catalog/metastore/CatalogHmsParallelCreateDropTest.java
M tests/custom_cluster/test_metastore_service.py
M tests/util/event_processor_utils.py
5 files changed, 399 insertions(+), 93 deletions(-)



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

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

Reply via email to