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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Atlas Streams
    • Fully Compatible
    • ALL
    • Sprint 30
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Aadesh Patel (Inactive)
            Reporter:
            Matthew Normyle
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: