Hello Riza Suminto, Impala Public Jenkins,

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/20368

to look at the new patch set (#3).

Change subject: IMPALA-12024: Add catalog profile for createTable
......................................................................

IMPALA-12024: Add catalog profile for createTable

DDL/DMLs might spend a long time in the execution in catalogd.
Currently, the profiles just have a counter of CatalogOpExecTimer. We
need more items to show the details of how they are executed in
catalogd.

As the first step, this patch adds the profile timeline for how the
createTable DDL is executed in Catalog Server. Also added more events in
the existing "Query Timeline" for when the CatalogDdlRequest finished
and when the catalog updates are applied.

To implement this, a 'profile' field is added in TDdlExecResponse to
carry the execution counters and timeline in catalogd. Currently, we
just uses the timeline of it. We can add more counters in the future.
Several methods add a timeline parameter to mark the progress in them.
Timeline events are added after each RPC finished.

Here is an example when HMS is hanging for 26s in a CTAS. I used gdb to
attach to HMS as the JIRA description mentioned. In the timeline, we can
see the time is spent in the first HMS RPC that fetching the current HMS
event id:
    Catalog Server Operation: 26s560ms
       - Got metastoreDdlLock: 163.977us (163.977us)
       - Got Metastore client: 166.339us (2.362us)
       - Got current Metastore event id: 26s494ms (26s494ms)
       - Created Metastore table: 26s558ms (63.507ms)
       - Fetched Metastore event batch: 26s559ms (1.155ms)
       - Created catalog table: 26s560ms (1.164ms)
       - DDL finished: 26s560ms (65.538us)
    Query Compilation: 164.257ms
       - Metadata of all 1 tables cached: 10.535ms (10.535ms)
       - Analysis finished: 118.324ms (107.788ms)
       - Authorization finished (noop): 118.489ms (164.626us)
       - Value transfer graph computed: 118.830ms (341.792us)
       - Single node plan created: 150.150ms (31.319ms)
       - Runtime filters computed: 150.254ms (103.529us)
       - Distributed plan created: 151.832ms (1.578ms)
       - Planning finished: 164.257ms (12.425ms)
    Query Timeline: 27s304ms
       - Query submitted: 129.658us (129.658us)
       - Planning finished: 170.224ms (170.095ms)
       - CatalogDdlRequest finished: 26s731ms (26s561ms)
       - Applied catalog updates from DDL: 26s740ms (8.752ms)
       - Submit for admission: 26s740ms (22.233us)
       - Completed admission: 26s740ms (286.295us)
       - Ready to start on 3 backends: 26s740ms (155.916us)
       - All 3 execution backends (3 fragment instances) started: 26s751ms 
(10.864ms)
       - Last row fetched: 26s920ms (168.226ms)
       - Released admission control resources: 26s920ms (27.635us)
       - DML data written: 26s920ms (126.369us)
       - Applied catalog updates from DDL: 26s985ms (65.354ms)
       - DML Metastore update finished: 26s985ms (30.343us)
       - Rows available: 26s985ms (27.050us)
       - Unregister query: 27s304ms (318.661ms)

Tests:
 - Add e2e tests to verify the DDL timeline events exist in profile

Change-Id: I3ebf591625e71391a5b23f56ddca8f0ae97b1efa
---
M be/src/service/client-request-state.cc
M be/src/service/impala-server.cc
M be/src/service/impala-server.h
M common/thrift/CatalogService.thrift
M fe/src/main/java/org/apache/impala/catalog/Catalog.java
M fe/src/main/java/org/apache/impala/service/CatalogOpExecutor.java
M fe/src/main/java/org/apache/impala/service/Frontend.java
M fe/src/main/java/org/apache/impala/service/KuduCatalogOpExecutor.java
M tests/query_test/test_observability.py
9 files changed, 193 insertions(+), 73 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/68/20368/3
--
To view, visit http://gerrit.cloudera.org:8080/20368
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I3ebf591625e71391a5b23f56ddca8f0ae97b1efa
Gerrit-Change-Number: 20368
Gerrit-PatchSet: 3
Gerrit-Owner: Quanlong Huang <huangquanl...@gmail.com>
Gerrit-Reviewer: Impala Public Jenkins <impala-public-jenk...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <huangquanl...@gmail.com>
Gerrit-Reviewer: Riza Suminto <riza.sumi...@cloudera.com>

Reply via email to