You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@geode.apache.org by GitBox <gi...@apache.org> on 2020/05/21 15:44:35 UTC

[GitHub] [geode] bschuchardt commented on pull request #5131: GEODE-8144: endpoint identification in servers is not working

bschuchardt commented on pull request #5131:
URL: https://github.com/apache/geode/pull/5131#issuecomment-632166879


   The locator setting is inserted in `InternalLocator.startDistributedSystem()`
   
   ```
   private void startDistributedSystem() throws IOException {
       InternalDistributedSystem existing = InternalDistributedSystem.getConnectedInstance();
       if (existing != null) {
         // LOG: changed from config to info
         logger.info("Using existing distributed system: {}", existing);
         startCache(existing);
       } else {
         StringBuilder sb = new StringBuilder(100);
         if (bindAddress != null) {
           sb.append(bindAddress.getHostAddress()); <<< HERE
         } else {
           sb.append(LocalHostUtil.getLocalHost().getHostAddress());  <<< and HERE
         }
         sb.append('[').append(getPort()).append(']');
         String thisLocator = sb.toString();
   ```
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org