This is an automated email from the ASF dual-hosted git repository. jackie pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/pinot.git
The following commit(s) were added to refs/heads/master by this push: new f4e1ce9110 Add a method before server starts serving queries (#11288) f4e1ce9110 is described below commit f4e1ce91104a80af25a98c42e921d8907171126e Author: Xiaotian (Jackie) Jiang <17555551+jackie-ji...@users.noreply.github.com> AuthorDate: Mon Aug 7 15:31:40 2023 -0700 Add a method before server starts serving queries (#11288) --- .../org/apache/pinot/server/starter/helix/BaseServerStarter.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pinot-server/src/main/java/org/apache/pinot/server/starter/helix/BaseServerStarter.java b/pinot-server/src/main/java/org/apache/pinot/server/starter/helix/BaseServerStarter.java index 48e99d74f6..976b5f349e 100644 --- a/pinot-server/src/main/java/org/apache/pinot/server/starter/helix/BaseServerStarter.java +++ b/pinot-server/src/main/java/org/apache/pinot/server/starter/helix/BaseServerStarter.java @@ -594,6 +594,8 @@ public abstract class BaseServerStarter implements ServiceStartable { startupServiceStatusCheck(endTimeMs); } + preServeQueries(); + // Start the query server after finishing the service status check. If the query server is started before all the // segments are loaded, broker might not have finished processing the callback of routing table update, and start // querying the server pre-maturely. @@ -622,6 +624,12 @@ public abstract class BaseServerStarter implements ServiceStartable { _realtimeLuceneIndexRefreshState.start(); } + /** + * Can be overridden to perform operations before server starts serving queries. + */ + protected void preServeQueries() { + } + @Override public void stop() { LOGGER.info("Shutting down Pinot server"); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org