soullkk commented on issue #13972:
URL: https://github.com/apache/druid/issues/13972#issuecomment-1483719858

   The host of preferred serviceLocation is constructed from the uri of the 
http request that has brackets,but the host of serviceLocations is from the of 
the zk data that hasn't brackets
   
   i add a log to print the data of zk node and the content can be mapped to a 
DruidNode.java, which host hasn't brackets.
   2023-03-23 11:33:44,432 INFO  
[NodeRoleWatcher[OVERLORD]][][org.apache.druid.curator.discovery.CuratorDruidNodeDiscoveryProvider$NodeRoleWatcher]
 test0323 zk child add, path: 
/druid/internal-discovery/OVERLORD/[xxxxxx:227]:26203, content: 
DiscoveryDruidNode{druidNode=DruidNode{serviceName='druid/overlord', 
host='xxxxxxx:227', bindOnHost=true, port=-1, plaintextPort=-1, 
enablePlaintextPort=false, tlsPort=26203, enableTlsPort=true}, 
nodeRole='OVERLORD', services={}} 
   
   The DruidNode was created during service registration and written to the zk 
node. The host of DruidNode was from jvm.config. I tried adding brackets to the 
host in the jvm.config, but it not worked. Because it will remove the brackets 
when creating the DruidNode. So I tried another way to solve this problem,and 
tomorrow I will submit an MR to demonstrate my solution. I have conducted 
validation on the environment to prove that my solution is effective.
   
   


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

Reply via email to