Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-645

tailable cursor with expression involving _id doesn't return rows

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.3.4
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • Environment:
      pymongo-1.4-py2.6-linux-x86_64 Ubuntu 9.10

      If you have a tailable cursor and the search spec involves "_id" then new rows are not returned as they should be. The attached code lightly modified from the pymongo test code demonstrates the problem.

      If you comment out the line doing $gt on _id then everything works fine. If you include it then what you see is that a row is not returned when it should. assertEqual then redoes the query showing that the new row does indeed match the search spec and it was the tailable cursor failing to return it.

            Assignee:
            mike Michael Dirolf
            Reporter:
            rogerbinns Roger Binns
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: