Riza Suminto has posted comments on this change. ( http://gerrit.cloudera.org:8080/22571 )
Change subject: IMPALA-13684: Improve waitForHmsEvent() to only wait for related events ...................................................................... Patch Set 3: (2 comments) http://gerrit.cloudera.org:8080/#/c/22571/3//COMMIT_MSG Commit Message: http://gerrit.cloudera.org:8080/#/c/22571/3//COMMIT_MSG@14 PS3, Line 14: This patch improves this by only checking related events and wait until : the last event of them has been processed. Is this patch proactively pull related events only? What happen with the gap (unrelated events in between related events)? IIRC, CatalogD process events in orderly fashion based on event id. http://gerrit.cloudera.org:8080/#/c/22571/3/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/22571/3/fe/src/main/java/org/apache/impala/catalog/events/MetastoreEventsProcessor.java@1675 PS3, Line 1675: // Step 4: Check table events : requiredEventId = getMinRequiredTableEventId(requiredEventId, db2Tables); What happen if after draining events in Step 4, there happens to be new events raising in Step 2 or 3 category? -- To view, visit http://gerrit.cloudera.org:8080/22571 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: Ic033b7e197cd19505653c3ff80c4857cc474bcfc Gerrit-Change-Number: 22571 Gerrit-PatchSet: 3 Gerrit-Owner: Quanlong Huang <huangquanl...@gmail.com> Gerrit-Reviewer: Anonymous Coward <k.venureddy2...@gmail.com> Gerrit-Reviewer: Csaba Ringhofer <csringho...@cloudera.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> Gerrit-Reviewer: Sai Hemanth Gantasala <saihema...@cloudera.com> Gerrit-Comment-Date: Fri, 14 Mar 2025 01:29:03 +0000 Gerrit-HasComments: Yes