You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@impala.apache.org by "Anonymous Coward (Code Review)" <ge...@cloudera.org> on 2024/07/09 09:20:02 UTC
[Impala-ASF-CR] IMPALA-12709: Add support for hierarchical metastore event processing
cclive1601@gmail.com has posted comments on this change. ( http://gerrit.cloudera.org:8080/21031 )
Change subject: IMPALA-12709: Add support for hierarchical metastore event processing
......................................................................
Patch Set 20:
(3 comments)
http://gerrit.cloudera.org:8080/#/c/21031/20/fe/src/main/java/org/apache/impala/catalog/events/MetastoreEventsProcessor.java
File fe/src/main/java/org/apache/impala/catalog/events/MetastoreEventsProcessor.java:
http://gerrit.cloudera.org:8080/#/c/21031/20/fe/src/main/java/org/apache/impala/catalog/events/MetastoreEventsProcessor.java@808
PS20, Line 808: if (dbCount < minDbCount) {
why we do not just get a random index of the list dbEventExecutors_ ,then we can get a random DBEventExecutor to process the event
http://gerrit.cloudera.org:8080/#/c/21031/20/fe/src/main/java/org/apache/impala/catalog/events/MetastoreEventsProcessor.java@1250
PS20, Line 1250: if (eventProcessingOnHold_) { return; }
It is not very reasonable to use the total number of processes in db plus table to judge whether to perform event processing.
If the blocking number of a single thread exceeds 1000, but other thread pools are very idle, the entire processing thread will degrade to a single thread. However, if at this time, there are new requests coming in, and new requests can enter the idle thread pool. If the thread pool is used, then the multi-thread processing effect we want will not be achieved in the end.
http://gerrit.cloudera.org:8080/#/c/21031/20/fe/src/main/java/org/apache/impala/catalog/events/MetastoreEventsProcessor.java@1251
PS20, Line 1251: long eventCount = getOutstandingEventCount();
I think ,we should keep to value , one is for outstandingEventCount another is outstandingEventCountPerTable. if all table 's pending number is more than outstandingEventCountPerTable and total number is bigger than outstandingEventCount ,then we should block
--
To view, visit http://gerrit.cloudera.org:8080/21031
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I76d8a739f9db6d40f01028bfd786a85d83f9e5d6
Gerrit-Change-Number: 21031
Gerrit-PatchSet: 20
Gerrit-Owner: Anonymous Coward <k....@gmail.com>
Gerrit-Reviewer: Anonymous Coward <cc...@gmail.com>
Gerrit-Reviewer: Csaba Ringhofer <cs...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <hu...@gmail.com>
Gerrit-Reviewer: Sai Hemanth Gantasala <sa...@cloudera.com>
Gerrit-Comment-Date: Tue, 09 Jul 2024 09:20:02 +0000
Gerrit-HasComments: Yes