Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-229

Python driver should block on cursor.next() if cursor is tailable and there are no more results

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.0
    • Affects Version/s: 1.10
    • Component/s: None
    • None
    • Environment:
      Occurs on current Mongo and pymongo on all platforms, as far as I can tell

      Tailable cursors ostensibly exist to allow for developing "tail -f"-style functionality atop capped collections. At present, though, if a tailable cursor gets to the end of its results, rather than blocking while waiting for more data the way tail does, it raises a StopIteration exception, which makes it impossible to know when more data is available by any means other than polling. Per http://groups.google.com/group/mongodb-user/browse_thread/thread/d27ee734bb97845e/390c1b78a9f52a4f the necessary server infrastructure to make this possible was meant to have been implemented in #SERVER-510.

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            apendleton Andrew Pendleton
            Votes:
            3 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: