Cassandra
  1. Cassandra
  2. CASSANDRA-3044

Hector NodeAutoDiscoverService fails to resolve hosts due to / being part of the IP address

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Fix Version/s: 0.8.5
    • Labels:
      None
    • Environment:

      Cassandra 0.8.4, hector 0.8.0

      Description

      Didn't get this problem with Cassandra 0.8.2- started happening under 0.8.4. Temporary work around was to disable node auto discovery. Seems to be related to:

      http://svn.apache.org/viewvc?view=rev&revision=1155157
      http://issues.apache.org/jira/browse/CASSANDRA-1777

      LOG:

      240514 [pool-2-thread-1] INFO me.prettyprint.cassandra.connection.NodeAutoDiscoverService - using existing hosts [10.255.255.176(10.255.255.176):9160, 10.255.255.175(10.255.255.175):9160]
      240553 [pool-2-thread-1] ERROR me.prettyprint.cassandra.service.CassandraHost - Unable to resolve host /10.255.255.176
      240553 [pool-2-thread-1] INFO me.prettyprint.cassandra.connection.NodeAutoDiscoverService - Found a node we don't know about /10.255.255.176(/10.255.255.176):9160 for TokenRange TokenRange(start_token:33370589793653380361461751202224080323, end_token:93518639523624865529944734322199113946, endpoints:[/10.255.255.176])
      240553 [pool-2-thread-1] INFO me.prettyprint.cassandra.connection.NodeAutoDiscoverService - Found 1 new host(s) in Ring
      240553 [pool-2-thread-1] INFO me.prettyprint.cassandra.connection.NodeAutoDiscoverService - Addding found host /10.255.255.176(/10.255.255.176):9160 to pool
      240554 [pool-2-thread-1] ERROR me.prettyprint.cassandra.connection.HConnectionManager - General exception host to HConnectionManager: /10.255.255.176(/10.255.255.176):9160
      java.lang.IllegalArgumentException: protocol = socket host = null
      at sun.net.spi.DefaultProxySelector.select(DefaultProxySelector.java:151)
      at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:358)
      at java.net.Socket.connect(Socket.java:529)
      at org.apache.thrift.transport.TSocket.open(TSocket.java:178)
      at org.apache.thrift.transport.TFramedTransport.open(TFramedTransport.java:81)
      at me.prettyprint.cassandra.connection.HThriftClient.open(HThriftClient.java:123)
      at me.prettyprint.cassandra.connection.ConcurrentHClientPool.<init>(ConcurrentHClientPool.java:43)
      at me.prettyprint.cassandra.connection.RoundRobinBalancingPolicy.createConnection(RoundRobinBalancingPolicy.java:68)
      at me.prettyprint.cassandra.connection.HConnectionManager.addCassandraHost(HConnectionManager.java:103)
      at me.prettyprint.cassandra.connection.NodeAutoDiscoverService.doAddNodes(NodeAutoDiscoverService.java:68)
      at me.prettyprint.cassandra.connection.NodeAutoDiscoverService$QueryRing.run(NodeAutoDiscoverService.java:53)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
      at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)

        Activity

        Aaron Turner created issue -
        Hide
        Aaron Turner added a comment -

        driftx says on IRC that this bug was already fixed so closing it myself.

        Show
        Aaron Turner added a comment - driftx says on IRC that this bug was already fixed so closing it myself.
        Aaron Turner made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 0.8.5 [ 12317588 ]
        Resolution Fixed [ 1 ]
        Hide
        Brandon Williams added a comment -

        Reopening because http://svn.apache.org/viewvc?view=rev&revision=1155157 should be in 0.8.4, so something else may be going on here.

        Show
        Brandon Williams added a comment - Reopening because http://svn.apache.org/viewvc?view=rev&revision=1155157 should be in 0.8.4, so something else may be going on here.
        Brandon Williams made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Brandon Williams made changes -
        Assignee Brandon Williams [ brandon.williams ]
        Hide
        Brandon Williams added a comment -

        We also need to apply the http://svn.apache.org/viewvc?view=rev&revision=1155157 fix in the other direction. Fixed in r1158940.

        Show
        Brandon Williams added a comment - We also need to apply the http://svn.apache.org/viewvc?view=rev&revision=1155157 fix in the other direction. Fixed in r1158940.
        Brandon Williams made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Tomas Salfischberger added a comment -

        Issue also affects the Pelops client from Scale7 (https://github.com/s7/scale7-pelops).

        Show
        Tomas Salfischberger added a comment - Issue also affects the Pelops client from Scale7 ( https://github.com/s7/scale7-pelops ).
        Gavin made changes -
        Workflow no-reopen-closed, patch-avail [ 12627353 ] patch-available, re-open possible [ 12752949 ]
        Gavin made changes -
        Workflow patch-available, re-open possible [ 12752949 ] reopen-resolved, no closed status, patch-avail, testing [ 12755629 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        8m 52s 1 Aaron Turner 17/Aug/11 00:12
        Resolved Resolved Reopened Reopened
        21h 24m 1 Brandon Williams 17/Aug/11 21:36
        Reopened Reopened Resolved Resolved
        1h 43m 1 Brandon Williams 17/Aug/11 23:19

          People

          • Assignee:
            Brandon Williams
            Reporter:
            Aaron Turner
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development