Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-4019

thrift proxy no longer listening on all interfaces

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.7.0
    • 1.7.1, 1.8.0
    • proxy
    • None

    Description

      In updating the thrift proxy to use HostAndPort-style configuration, we changed the behavior from listening on all interfaces to only listening on the canonical host name interface. This broke the proxy for some users:

      -    TServer server = createProxyServer(AccumuloProxy.class, ProxyServer.class, port, protoFactoryClass, opts.prop);
      -    server.serve();
      +    HostAndPort address = HostAndPort.fromParts(InetAddress.getLocalHost().getCanonicalHostName(), port);
      +    ServerAddress server = createProxyServer(address, protoFactory, opts.prop);
      

      Does anybody know what prompted this change? To fix this, I think we should hardcode it to listen to all interfaces. Would the correct way of doing that be to use the following address?:

      HostAndPort address = HostAndPort.fromParts("::", port);
      

      Attachments

        Activity

          People

            afuchs Adam Fuchs
            afuchs Adam Fuchs
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 40m
                40m