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

    XMLWordPrintable

    Details

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

      Description

      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.

        Attachments

          Activity

            People

            • Votes:
              3 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: