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

read failure when takes too long

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 2.10.1
    • Connection Management
    • None

    Description

      when i read mongodb with code below:
      cursor = col.findAll();
      cursor.addOption(Bytes.QUERYOPTION_NOTIMEOUT);
      while(cursor.hasNext()) {
      func(cursor.next())
      }
      If func takes a little longer than 20 ms, i find maybe not all tuples in the collection are visited and there is no exception thrown.The colleciton is not very big and just has about 2m small tuples. It occurs sometimes but not every time. Is it a bug in mongoDB driver.?

      Attachments

        Activity

          People

            Unassigned Unassigned
            whwhzzz Wang Han
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: