Quanlong Huang has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/20643


Change subject: IMPALA-12529: Show logs for the time of acquiring table/db locks
......................................................................

IMPALA-12529: Show logs for the time of acquiring table/db locks

Waiting for table locks could take long when there are lots of
concurrent catalog operations, e.g. DDL/DMLs or HMS events processing,
on the same table. It'd be helpful to show the time of acquiring table
locks in logs for better diagnostics.

We already have TRACE level logs for acquiring the table/db locks. This
changes them to WARN level when the duration exceeds a threshold
(100ms).

Ran a GVO without the threshold and found most of the duration are under
100ms. The majority is 0ms. So choose 100ms to just show abnormal
locking.

Change-Id: I99d0665a5ab815a81a5341f63aff1ac2f9a447d5
---
M fe/src/main/java/org/apache/impala/catalog/CatalogServiceCatalog.java
1 file changed, 10 insertions(+), 8 deletions(-)



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I99d0665a5ab815a81a5341f63aff1ac2f9a447d5
Gerrit-Change-Number: 20643
Gerrit-PatchSet: 1
Gerrit-Owner: Quanlong Huang <huangquanl...@gmail.com>

Reply via email to