Uploaded image for project: 'Motor'
  1. Motor
  2. MOTOR-96

"Future exception was never retrieved" warning after socket timeout

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: 0.5
    • Fix Version/s: 0.5
    • Component/s: tornado
    • Labels:
      None

      Description

      Glitch in unreleased code: a timeout from a Tornado socket throws socket.error into PyMongo, which calls socket.close, which Motor delegates to Tornado's IOStream.close. Motor still has an unresolved Future from IOStream.read_bytes which is now in an error state, but the greenlet that was going to await this Future has terminated.

      Recent versions of Tornado log a warning when this Future is garbage collected, "Future exception was never retrieved."

      Motor's socket code should retrieve the IOStream.read_bytes Future's exception on timeout.

        Attachments

          Activity

            People

            Assignee:
            jesse A. Jesse Jiryu Davis
            Reporter:
            jesse A. Jesse Jiryu Davis
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: