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

Handle empty time series collection for $sample in the TrialStage

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.3, 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v5.0
    • Hide

      Run the jstestfuzz script,

      ./buildscripts/resmoke.py run --suites=jstestfuzz --storageEngine=wiredTiger --jobs=1 --mongodSetParameters='{logComponentVerbosity: {command: 2}}' --storageEngineCacheSizeGB=1 ~/out/jstestfuzz-1e35-ent_b9eb-qa_a6ce-1627041239535-07.js

      Show
      Run the jstestfuzz script, ./buildscripts/resmoke.py run --suites=jstestfuzz --storageEngine=wiredTiger --jobs=1 --mongodSetParameters='{logComponentVerbosity: {command: 2}}' --storageEngineCacheSizeGB=1 ~/out/jstestfuzz-1e35-ent_b9eb-qa_a6ce-1627041239535-07.js
    • QE 2021-08-09
    • 150

      if numRecords is zero then this expression evaluates to nan on x86 and -nan in arm64 

      https://github.com/10gen/mongo/blob/master/src/mongo/db/pipeline/pipeline_d.cpp#L224

            Assignee:
            eric.cox@mongodb.com Eric Cox (Inactive)
            Reporter:
            eric.cox@mongodb.com Eric Cox (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: