Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-383

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major - P3 Major - P3
    • None
    • 2.5.2
    • API
    • None
    • Resin app server on linux

    Description

      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

      Attachments

        Activity

          People

            antoine Antoine Girbal
            joseph.wang Joseph Wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: