Csaba Ringhofer has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/20473 )

Change subject: IMPALA-11553: Add event specific metrics in the table metrics
......................................................................


Patch Set 5:

(4 comments)

http://gerrit.cloudera.org:8080/#/c/20473/5//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/20473/5//COMMIT_MSG@11
PS5, Line 11: extended
Where are the durations set? Are there also larger durations tracked, e.g. 1 
hour, 1 day?


http://gerrit.cloudera.org:8080/#/c/20473/5/fe/src/main/java/org/apache/impala/catalog/events/MetastoreEvents.java
File fe/src/main/java/org/apache/impala/catalog/events/MetastoreEvents.java:

http://gerrit.cloudera.org:8080/#/c/20473/5/fe/src/main/java/org/apache/impala/catalog/events/MetastoreEvents.java@1534
PS5, Line 1534:       Timer.Context context = null;
It would be nice to reduce code duplication related to the timer. We seem to do 
the same for each MetastoreTableEvent, so  a shared function could have the 
timer block. E.g. MetastoreTableEvent could implement process() that calls 
processTableEvent(), and existing process() logicof subclasses could be done in 
processTableEvent()


http://gerrit.cloudera.org:8080/#/c/20473/5/fe/src/main/java/org/apache/impala/catalog/events/MetastoreEvents.java@1536
PS5, Line 1536: getTable
getTableNoThrow() would let us skip the try/ catch block


http://gerrit.cloudera.org:8080/#/c/20473/5/fe/src/main/java/org/apache/impala/catalog/events/MetastoreEvents.java@1745
PS5, Line 1745: DropTableEvent
What will happen with the timer after drop/rename events? Will we able to see 
in the webui that some event processing time was spent on these tables after 
the table no longer exists?



--
To view, visit http://gerrit.cloudera.org:8080/20473
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I2428029361e610a0fcd8ed11be2ab771f03b00dd
Gerrit-Change-Number: 20473
Gerrit-PatchSet: 5
Gerrit-Owner: Sai Hemanth Gantasala <[email protected]>
Gerrit-Reviewer: Anonymous Coward <[email protected]>
Gerrit-Reviewer: Csaba Ringhofer <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Quanlong Huang <[email protected]>
Gerrit-Reviewer: Sai Hemanth Gantasala <[email protected]>
Gerrit-Comment-Date: Tue, 12 Dec 2023 10:04:09 +0000
Gerrit-HasComments: Yes

Reply via email to