Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-130

"bad file descriptor" error after shutting down python ipc.SocketServer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.0
    • 1.3.0
    • python
    • None
    • python 2.6, ubuntu (jaunty)

    Description

      I see the following error after shutting down the ipc.SocketServer:
      --------------
      ....
      Closed: Connection-('127.0.0.1', 35220)
      Exception in thread SocketServer on ('localhost', 0):
      Traceback (most recent call last):
      File "/usr/lib/python2.6/threading.py", line 525, in __bootstrap_inner
      self.run()
      File "/home/phunt/dev/workspace/avro-rpc-quickstart/lib/python/avro/ipc.py", line 385, in run
      raise e
      error: [Errno 9] Bad file descriptor
      ----------------

      If I put a "print("done")" as the last line in:

      http://github.com/phunt/avro-rpc-quickstart/blob/master/src/main/python/send_message.py

      The above error is printed after the done message it output. It seems that the socketserver is not shutting down correctly during the "close" and subsequently fails.

      Attachments

        Issue Links

          Activity

            People

              hammer Jeff Hammerbacher
              phunt Patrick D. Hunt
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: