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

Sample might return "done" before "limit" number of docs is returned

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • None
    • Atlas Streams
    • Fully Compatible
    • ALL
    • Sprint 30

    Description

      The Sampler code will mark itself as done once it has populated "limit" number of documents:
      if (numDocs >= _options.maxDocsToSample || numBytes >= _options.maxBytesToSample) {
      done = true;
      break;
      }
      However, this logic does not take into account how many documents have actually be returned to the client. 

      This problem can be reproduced with a batch size of 3 and a limit of 5.

      Attachments

        Activity

          People

            aadesh.patel@mongodb.com Aadesh Patel (Inactive)
            matthew.normyle@mongodb.com Matthew Normyle
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: