gyorfimi commented on issue #17152: URL: https://github.com/apache/pinot/issues/17152#issuecomment-3490685185
We have identified a temporary workaround for this issue. By setting the configuration `pinot.set.instance.id.to.hostname=true`, the logic in `BaseServerStarter.init` is forced to take the other branch of the ternary operator, calling `NetUtils.getHostnameOrAddress()` instead of `NetUtils.getHostAddress()`. The `getHostnameOrAddress()` method successfully resolves the host's name without making an external network call, thus bypassing the `SocketException` and allowing the server to start in an offline environment. **Note:** This highlights the core problem. Due to the eager evaluation, a `NetUtils` method is *still* called unnecessarily, even when the `Helix.KEY_OF_SERVER_NETTY_HOST` (via `-serverHost`) is explicitly set. However, this path at least avoids the crash. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
