jackjlli commented on code in PR #8980: URL: https://github.com/apache/pinot/pull/8980#discussion_r910181632
########## pinot-query-runtime/src/main/java/org/apache/pinot/query/service/QueryConfig.java: ########## @@ -23,13 +23,13 @@ */ public class QueryConfig { public static final String KEY_OF_QUERY_SERVER_PORT = "pinot.query.server.port"; - public static final int DEFAULT_QUERY_SERVER_PORT = -1; + public static final int DEFAULT_QUERY_SERVER_PORT = 0; public static final String KEY_OF_QUERY_RUNNER_HOSTNAME = "pinot.query.runner.hostname"; public static final String DEFAULT_QUERY_RUNNER_HOSTNAME = "localhost"; // query runner port is the mailbox port. public static final String KEY_OF_QUERY_RUNNER_PORT = "pinot.query.runner.port"; - public static final int DEFAULT_QUERY_RUNNER_PORT = -1; + public static final int DEFAULT_QUERY_RUNNER_PORT = 0; Review Comment: I see. That makes sense to set a default port to 0. Thanks for the explanation! Maybe we can add some description in Line 30 to note that `intermediate query runners can run on either broker or server`? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org