You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2019/10/29 18:17:15 UTC

[GitHub] [accumulo] etseidl opened a new issue #1398: trace server advertising default bind address (0.0.0.0) in zookeeper

etseidl opened a new issue #1398: trace server advertising default bind address (0.0.0.0) in zookeeper
URL: https://github.com/apache/accumulo/issues/1398
 
 
   While trying to get traces from my tservers, I noticed that the trace server was advertising its address as 0.0.0.0 in zookeeper.  This appears to be due to obtaining the address to advertise from the server socket address (tracer.TraceServer around line [225](https://github.com/apache/accumulo/blob/9c7e91c5129a595f6b0896c9a99aebfc7e51fea4/server/tracer/src/main/java/org/apache/accumulo/tracer/TraceServer.java#L225)), rather than looking up the address up via the InetAddress local host (as appears to be done in [server.rpc.TserverUtils](https://github.com/apache/accumulo/blob/9c7e91c5129a595f6b0896c9a99aebfc7e51fea4/server/base/src/main/java/org/apache/accumulo/server/rpc/TServerUtils.java#L651)).   Similarly, when ZooTraceClients are [instantiated](https://github.com/apache/accumulo/blob/9c7e91c5129a595f6b0896c9a99aebfc7e51fea4/server/tracer/src/main/java/org/apache/accumulo/tracer/AsyncSpanReceiver.java#L96), they appear to use the 0.0.0.0 address that is the default for a server address (this appears to be the same issue as discussed in #1090).  Testing for 0.0.0.0 and replacing with InetAddress.getLocalHost().getHostAddress() clears up the problem for me.

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


With regards,
Apache Git Services