You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/05/16 10:20:16 UTC

[GitHub] [pulsar] wangjialing218 opened a new pull request, #15620: fix connect zookeeper slow for getHostName fail

wangjialing218 opened a new pull request, #15620:
URL: https://github.com/apache/pulsar/pull/15620

   ### Motivation
   
   I met same issue with #14578, broker cannot start due to fail to connect to zookeeper with ConnectionLoss error, and zookeeper shell can connect but cost about 20s to finish the connection. 
   
   After some investigation, I found it's related with zk server host name resolver. 
   It happens when zookeeper connection is configed with IP address in broker.conf, and there is no host name configed for the IP address.
   in zookeeper client, it will call `InetSocketAddress.getHostName()` when connecting to server and block for 20s in this condition. https://github.com/apache/zookeeper/blob/c94473d2a18b718495225c3497693b58591cd209/zookeeper-server/src/main/java/org/apache/zookeeper/SaslServerPrincipal.java#L59
   
   Maybe it will cause broker got `ConnectionLoss` error.
   
   ### Modifications
   
   add Server Principal setting when create zookeeper client to avoid call `InetSocketAddress.getHostName()` 
   
   ### Documentation
   
   - [x] `no-need-doc` 
   


-- 
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-unsubscribe@pulsar.apache.org

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


[GitHub] [pulsar] Technoboy- commented on pull request #15620: fix connect zookeeper slow for getHostName fail

Posted by GitBox <gi...@apache.org>.
Technoboy- commented on PR #15620:
URL: https://github.com/apache/pulsar/pull/15620#issuecomment-1129521468

   Hi @eolivelli Could you help review this patch ?


-- 
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-unsubscribe@pulsar.apache.org

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


[GitHub] [pulsar] Technoboy- commented on pull request #15620: fix connect zookeeper slow for getHostName fail

Posted by GitBox <gi...@apache.org>.
Technoboy- commented on PR #15620:
URL: https://github.com/apache/pulsar/pull/15620#issuecomment-1129521469

   Hi @eolivelli Could you help review this patch ?


-- 
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-unsubscribe@pulsar.apache.org

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


[GitHub] [pulsar] github-actions[bot] commented on pull request #15620: fix connect zookeeper slow for getHostName fail

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on PR #15620:
URL: https://github.com/apache/pulsar/pull/15620#issuecomment-1159340295

   The pr had no activity for 30 days, mark with Stale label.


-- 
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-unsubscribe@pulsar.apache.org

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