[SERVER-54498] [SBE] Error is not returned as expected in jstests/core/sortg.js Created: 12/Feb/21  Updated: 29/Oct/23  Resolved: 24/Feb/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.9.0

Type: Bug Priority: Major - P3
Reporter: Anton Korshunov Assignee: Mihai Andrei
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

resmoke run --suite=core_sbeĀ jstests/core/sortg.js

Sprint: Query Execution 2021-03-08
Participants:

 Comments   
Comment by Githook User [ 24/Feb/21 ]

Author:

{'name': 'Mihai Andrei', 'email': 'mihai.andrei@10gen.com', 'username': 'mtandrei'}

Message: SERVER-54498 Remove 'sbe_incompatible' tag from 'jstests/core/sortg.js'
Branch: master
https://github.com/mongodb/mongo/commit/0949e167fe3b54f06117c9797e760d4cd2cb6b8b

Comment by Mihai Andrei [ 23/Feb/21 ]

jstests/core/sortg.js fails on the following line where we expect the given query and sort spec to produce a 'sorter out of memory error'. However, this doesn't happen because the query does not match any documents (if you log the return value of itcount(), 0 documents are returned). Indeed, this query features a null predicate ({b: null, c: null }), so it looks like no documents are being matched because at present, queries against null predicates are broken SERVER-54421). If you either remove the failing test or switch the predicate to something like {a: 0} that will produce the expected result set (i.e. all of these documents), the test passes.

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