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

Lookup with indexes returns wrong data.

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.3.4
    • Affects Version/s: None
    • Component/s: Index Maintenance
    • None
    • Environment:
      Ubuntu 9.10 32-bit, using the latest package available in the repo.

      I created an index on cluster, cluster_depth, visited (ascending on all), and querying I get this:

      In [60]: people.find_one({"cluster": cluster, "cluster_depth": 0, "visited": {"$exists": True}})
      Out[60]:

      {u'_id': u'Boytrash', u'cluster': 0, u'cluster_depth': 0, u'friends': [u'b1u1rner', u'javierodrigo', u'Xpato__X', u'flugu'], u'got_friends': True, u'real_name': u'Roberto'}

      Visited does not exist, it is wrong. Removing the index gives me the correct reply.

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            stavros Stavros Korokithakis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: