[SERVER-59044] Handle empty time series collection for $sample in the TrialStage Created: 02/Aug/21  Updated: 29/Oct/23  Resolved: 03/Aug/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.0.3, 5.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Eric Cox (Inactive) Assignee: Eric Cox (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.0
Steps To Reproduce:

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

Sprint: QE 2021-08-09
Participants:
Linked BF Score: 150

 Description   

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



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 12/Aug/21 ]

Author:

{'name': 'Eric Cox', 'email': 'eric.cox@mongodb.com', 'username': 'ericox'}

Message: SERVER-59044 Bailout early if a time series collection is empty when building a TrialStage

(cherry picked from commit bb6ec30bcbbb7b16f9f1c80cc3c9a99efcd5687c)
Branch: v5.0
https://github.com/mongodb/mongo/commit/d63bbceedef055476559998b183f97f1ede8b49f

Comment by Githook User [ 03/Aug/21 ]

Author:

{'name': 'Richard Samuels', 'email': 'richard.l.samuels@gmail.com', 'username': 'richardsamuels'}

Message: SERVER-59044 Pin oauthlib == 3.1.0
Branch: v4.0
https://github.com/mongodb/mongo/commit/abf48af814b7e47e1c1dea58988ac9cc156c0b68

Comment by Githook User [ 03/Aug/21 ]

Author:

{'name': 'Eric Cox', 'email': 'eric.cox@mongodb.com', 'username': 'ericox'}

Message: SERVER-59044 Bailout early if a time series collection is empty when building a TrialStage
Branch: master
https://github.com/mongodb/mongo/commit/bb6ec30bcbbb7b16f9f1c80cc3c9a99efcd5687c

Generated at Thu Feb 08 05:46:10 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.