Csaba Ringhofer has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/20516


Change subject: POC IMPALA-12461: Avoid taking db/table level locks db/table 
self-event check
......................................................................

POC IMPALA-12461: Avoid taking db/table level locks db/table self-event check

DB / Table level locks can be held for a long time by DDL/DML
operations in the catalogd. Trying to get the lock during self-event
check would mean blocking if there is an ongoing operation for
the given db/table.

This patch tries to solve it for the easy case of db/table level
events by using self-event specific locking that should be only
taken for short times to add/remove events from/to the in-flight
event list.

Postponing solving this for partition level events as that would
be more complex, as both the partition list and the partitions'
in-flight event lists would need to be protected from parallel
operations that add/remove partitions.

Testing:
- ran event processing related tests

Change-Id: Ife455de09ab2e262bde1e4b5bd54c8c54c75f2cd
---
M fe/src/main/java/org/apache/impala/catalog/CatalogServiceCatalog.java
M fe/src/main/java/org/apache/impala/catalog/Db.java
M fe/src/main/java/org/apache/impala/catalog/HdfsTable.java
M fe/src/main/java/org/apache/impala/catalog/Table.java
4 files changed, 103 insertions(+), 73 deletions(-)



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ife455de09ab2e262bde1e4b5bd54c8c54c75f2cd
Gerrit-Change-Number: 20516
Gerrit-PatchSet: 1
Gerrit-Owner: Csaba Ringhofer <[email protected]>

Reply via email to