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

golang race detected when closing listener socket

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.11.0
    • Fix Version/s: 0.12.0
    • Component/s: Go - Library
    • Labels:
      None

      Description

      Race condition is deteced for following write/read

       

      git.apache.org/thrift.git/lib/go/thrift/server_socket.go:119

      git.apache.org/thrift.git/lib/go/thrift.(*TServerSocket).Close()

      git.apache.org/thrift.git/lib/go/thrift/server_socket.go:122

      git.apache.org/thrift.git/lib/go/thrift.(*TServerSocket).Interrupt()

       

      git.apache.org/thrift.git/lib/go/thrift.(*TServerSocket).Accept()

      git.apache.org/thrift.git/lib/go/thrift/server_socket.go:78

      git.apache.org/thrift.git/lib/go/thrift.(*TSimpleServer).innerAccept()

      git.apache.org/thrift.git/lib/go/thrift/simple_server.go:129

      git.apache.org/thrift.git/lib/go/thrift.(*TSimpleServer).AcceptLoop()

        Attachments

        1. THRIFT-4659.diff
          1 kB
          Jay Gheewala

          Issue Links

            Activity

              People

              • Assignee:
                dcelasun Duru Can Celasun
                Reporter:
                jgheewala_signalfx Jay Gheewala
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: