cursor.count() is positive, but cursor.hasNext() returns false

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.5.2
    • Component/s: API
    • None
    • Environment:
      Resin app server on linux
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      From the logs, it seems to indicate that we get count of 8. However, cursor.hasNext() is false.

      Bad
      ===
      2011-06-16 23:50:15,156 INFO [Timer-0] com.leadpoint.syndication.db.mongo.mortgage.FinancialIndexTableUpdater - FinancialIndexTableUpdater: start update on Jun 16, 2011 23:50:15 last updated Jun 15, 2011 23:48:43
      2011-06-16 23:50:15,156 INFO [Timer-0] com.leadpoint.syndication.db.mongo.mortgage.FinancialIndexTableUpdater - FinancialIndexTableUpdater: find 8 entries on Jun 16, 2011 23:50:15
      2011-06-16 23:50:15,182 ERROR [Timer-0] com.leadpoint.syndication.db.mongo.mortgage.FinancialIndexTableUpdater - FinancialIndexTableUpdater: bad query result for mortgage armindex20110616234917
      2011-06-16 23:50:15,183 INFO [Timer-0] com.leadpoint.syndication.db.mongo.mortgage.FinancialIndexTableUpdater - FinancialIndexTableUpdater: end update on Jun 16, 2011 23:50:15 size=8 table timestamp Jun 15, 2011 23:48:43

      Good
      ====
      2011-06-17 00:05:15,156 INFO [Timer-0] com.leadpoint.syndication.db.mongo.mortgage.FinancialIndexTableUpdater - FinancialIndexTableUpdater: start update on Jun 17, 2011 00:05:15 last updated Jun 15, 2011 23:48:43
      2011-06-17 00:05:15,156 INFO [Timer-0] com.leadpoint.syndication.db.mongo.mortgage.FinancialIndexTableUpdater - FinancialIndexTableUpdater: find 8 entries on Jun 17, 2011 00:05:15
      2011-06-17 00:05:15,157 DEBUG [Timer-0] com.leadpoint.syndication.db.mongo.mortgage.FinancialIndexTableUpdater - FinancialIndexTableUpdater: updates 1MOLIBOR .190
      2011-06-17 00:05:15,157 DEBUG [Timer-0] com.leadpoint.syndication.db.mongo.mortgage.FinancialIndexTableUpdater - FinancialIndexTableUpdater: updates 2YRUST .410
      2011-06-17 00:05:15,157 DEBUG [Timer-0] com.leadpoint.syndication.db.mongo.mortgage.FinancialIndexTableUpdater - FinancialIndexTableUpdater: updates 6MOLIBOR .390
      2011-06-17 00:05:15,157 DEBUG [Timer-0] com.leadpoint.syndication.db.mongo.mortgage.FinancialIndexTableUpdater - FinancialIndexTableUpdater: updates COFI 1.359
      2011-06-17 00:05:15,157 DEBUG [Timer-0] com.leadpoint.syndication.db.mongo.mortgage.FinancialIndexTableUpdater - FinancialIndexTableUpdater: updates LIBOR .720
      2011-06-17 00:05:15,157 DEBUG [Timer-0] com.leadpoint.syndication.db.mongo.mortgage.FinancialIndexTableUpdater - FinancialIndexTableUpdater: updates MTA .190
      2011-06-17 00:05:15,157 DEBUG [Timer-0] com.leadpoint.syndication.db.mongo.mortgage.FinancialIndexTableUpdater - FinancialIndexTableUpdater: updates PRIME 3.250
      2011-06-17 00:05:15,157 DEBUG [Timer-0] com.leadpoint.syndication.db.mongo.mortgage.FinancialIndexTableUpdater - FinancialIndexTableUpdater: updates UST .180
      2011-06-17 00:05:15,157 INFO [Timer-0] com.leadpoint.syndication.db.mongo.mortgage.FinancialIndexTableUpdater - FinancialIndexTableUpdater: end update on Jun 17, 2011 00:05:15 size=8 table timestamp Jun 16, 2011 23:49:17

            Assignee:
            Antoine Girbal (Inactive)
            Reporter:
            Joseph Wang
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: