[
https://issues.apache.org/jira/browse/IMPALA-12529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17783133#comment-17783133
]
ASF subversion and git services commented on IMPALA-12529:
----------------------------------------------------------
Commit 543bcf42c0fa3ee8c29c59752ef4063e1870c10f in impala's branch
refs/heads/master from stiga-huang
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=543bcf42c ]
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]>
> Add warning logs if acquiring table lock takes long
> ---------------------------------------------------
>
> Key: IMPALA-12529
> URL: https://issues.apache.org/jira/browse/IMPALA-12529
> Project: IMPALA
> Issue Type: Improvement
> Components: Catalog
> Reporter: Quanlong Huang
> Assignee: Quanlong Huang
> Priority: Major
> Labels: supportability
>
> It'd be useful to show some catalog operations are blocked by table locks by
> logging the time of acquiring table locks that take long.
> We already have a trace level logging:
> https://github.com/apache/impala/blob/78b9285da457c6853e513f3852730867d4dbe632/fe/src/main/java/org/apache/impala/catalog/CatalogServiceCatalog.java#L531
> We just need a warning log if the elapsed time exceeds a threshold, e.g. 1
> second.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]