Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-1720

JRuby times out on successful connection

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 0.8, 0.9
    • Fix Version/s: 0.9.1
    • Component/s: Ruby - Library
    • Labels:
      None
    • Environment:

      jruby 1.6.7 and 1.6.8

    • Patch Info:
      Patch Available

      Description

      Under JRuby any thrift socket that doesn't connect immediately will result in a connection timeout.

      Under MRI IO.select returns an array of IO objects.
      Under JRuby IO.select returns nil, even when an object is ready.

      Connections to a cassandra instance on localhost will usually be successful, as socket.connect_nonblock actually connects synchronously.

      The following code fails with no pause under JRuby (but works under MRI) when connecting to a remote cassandra cluster:

      Thrift::Socket.new(remote_server, 9160, 10).open
      

        Attachments

        1. thrift-1720-branch-0.8.x.diff
          1.0 kB
          Hawk Newton
        2. thrift-1720-trunk.diff
          0.9 kB
          Hawk Newton

          Activity

            People

            • Assignee:
              jfarrell Jake Farrell
              Reporter:
              hawk.newton Hawk Newton
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: