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

$sample with explain(true) hangs

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.6.0
    • Fix Version/s: 3.6.7
    • Component/s: Aggregation Framework
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      db.c.drop()
      for (i = 0; i < 1000; i++ ) { db.c.insertOne({size:1})}
      db.c.explain(true).aggregate({$sample: {size: 10}})
      

      Show
      db.c.drop() for (i = 0; i < 1000; i++ ) { db.c.insertOne({size:1})} db.c.explain(true).aggregate({$sample: {size: 10}})
    • Sprint:
      Query 2018-07-16, Query 2018-07-30, Query 2018-08-13

      Description

      Observed in v3.6. Unable to reproduce on v3.4.

      $sample command never returns when run with explain(true). db.currentOps() shows:

         "planSummary":  "MULTI_ITERATOR",

         "numYields": 18619890,

      numYields continuously increases.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: