Impala Public Jenkins has submitted this change and it was merged. ( 
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
Reviewed-on: http://gerrit.cloudera.org:8080/20643
Reviewed-by: Impala Public Jenkins <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>
---
M fe/src/main/java/org/apache/impala/catalog/CatalogServiceCatalog.java
1 file changed, 10 insertions(+), 8 deletions(-)

Approvals:
  Impala Public Jenkins: Looks good to me, approved; Verified

--
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: merged
Gerrit-Change-Id: I99d0665a5ab815a81a5341f63aff1ac2f9a447d5
Gerrit-Change-Number: 20643
Gerrit-PatchSet: 4
Gerrit-Owner: Quanlong Huang <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Quanlong Huang <[email protected]>
Gerrit-Reviewer: Wenzhe Zhou <[email protected]>

Reply via email to