-
Type:
Improvement
-
Resolution: Fixed
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Optimization
-
Fully Compatible
-
0
-
None
-
3
-
TBD
-
None
-
None
-
None
-
None
-
None
-
None
-
None
resmoke fails as follows:
The following tests had errors: /home/ubuntu/s8-out/jstestfuzz-f07d-qa_a6ce-1753334999458-05.js Traceback (most recent call last): File "/home/ubuntu/mongo-good/buildscripts/resmokelib/testing/job.py", line 368, in _run_hooks_after_tests self._run_hook(hook, hook.after_test, test, hook_failure_flag) File "/home/ubuntu/mongo-good/buildscripts/resmokelib/testing/job.py", line 261, in _run_hook hook_function(test, self.report) File "/home/ubuntu/mongo-good/buildscripts/resmokelib/testing/hooks/run_query_stats.py", line 54, in after_test self.verify_query_stats({}) File "/home/ubuntu/mongo-good/buildscripts/resmokelib/testing/hooks/run_query_stats.py", line 51, in verify_query_stats raise err File "/home/ubuntu/mongo-good/buildscripts/resmokelib/testing/hooks/run_query_stats.py", line 37, in verify_query_stats with self.client.admin.aggregate([{"$queryStats": querystats_spec}]) as cursor: File "/home/ubuntu/mongo/python3-venv/lib/python3.10/site-packages/pymongo/database.py", line 533, in aggregate return self.client._retryable_read( File "/home/ubuntu/mongo/python3-venv/lib/python3.10/site-packages/pymongo/_csot.py", line 105, in csot_wrapper return func(self, *args, **kwargs) File "/home/ubuntu/mongo/python3-venv/lib/python3.10/site-packages/pymongo/mongo_client.py", line 1448, in _retryable_read return func(session, server, sock_info, read_pref) File "/home/ubuntu/mongo/python3-venv/lib/python3.10/site-packages/pymongo/aggregation.py", line 142, in get_cursor result = sock_info.command( File "/home/ubuntu/mongo/python3-venv/lib/python3.10/site-packages/pymongo/pool.py", line 767, in command return command( File "/home/ubuntu/mongo/python3-venv/lib/python3.10/site-packages/pymongo/network.py", line 166, in command helpers._check_command_response( File "/home/ubuntu/mongo/python3-venv/lib/python3.10/site-packages/pymongo/helpers.py", line 181, in _check_command_response raise OperationFailure(errmsg, code, response, max_wire_version) pymongo.errors.OperationFailure: PlanExecutor error during aggregation :: caused by :: Was not able to re-parse queryStats key when reading queryStats.Status QueryFeatureNotAllowed: The $listCatalog aggregation stage is not enabled Hash: 688162434768237869 Query Shape: { cmdNs: { db: "test", coll: "jstestfuzz-f07d-qa_a6ce-1753334999458-05" }, command: "aggregate", pipeline: [ { $listCatalog: {} } ] }, full error: {'ok': 0.0, 'errmsg': 'PlanExecutor error during aggregation :: caused by :: Was not able to re-parse queryStats key when reading queryStats.Status QueryFeatureNotAllowed: The $listCatalog aggregation stage is not enabled Hash: 688162434768237869 Query Shape: { cmdNs: { db: "test", coll: "jstestfuzz-f07d-qa_a6ce-1753334999458-05" }, command: "aggregate", pipeline: [ { $listCatalog: {} } ] }', 'code': 7349401, 'codeName': 'Location7349401', '$clusterTime': {'clusterTime': Timestamp(1754468215, 9), 'signature': {'hash': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', 'keyId': 0}}, 'operationTime': Timestamp(1754468215, 9)}
This is due to s8 returning a different error code for the "unable to re-parse queryStats" error from the one that resmoke.py is expecting.