[SERVER-67474] Fix a server crash when an external data source specified for a regular collection Created: 23/Jun/22  Updated: 18/Aug/22  Resolved: 18/Aug/22

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

Type: Bug Priority: Minor - P4
Reporter: Yoon Soo Kim Assignee: Yoon Soo Kim
Resolution: Won't Do Votes: 0
Labels: spike
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Steps To Reproduce:

const kBsonFileUrl = "file://jstests/noPassthrough/coll.bson";
assert.commandFailedWithCode(testDB.runCommand({
    aggregate: "a",
    pipeline: [{$unionWith: {external: {urls: [{url: kBsonFileUrl}], storageType: "local"}}}],
    cursor: {}
})

error message

{"t":{"$date":"2022-06-23T15:22:11.874+00:00"},"s":"I",  "c":"COMMAND",  "id":20332,   "ctx":"conn1","msg":"CMD: drop","attr":{"namespace":"test.system.external.temp-1-c678f46b-5cab-4eec-9b42-78e707489ea4"}}
{"t":{"$date":"2022-06-23T15:22:11.875+00:00"},"s":"F",  "c":"CONTROL",  "id":6384300, "ctx":"conn1","msg":"Writing fatal message","attr":{"message":"terminate() called. An exception is active; attempting to gather more information\n"}}
{"t":{"$date":"2022-06-23T15:22:11.875+00:00"},"s":"F",  "c":"CONTROL",  "id":6384300, "ctx":"conn1","msg":"Writing fatal message","attr":{"message":"DBException::toString(): NamespaceNotFound: ns not found\nActual exception type: mongo::error_details::ExceptionForImpl<(mongo::ErrorCodes::Error)26, mongo::AssertionException>\n\n"}}

Participants:

 Description   

See the repro.

This happens only on PM-2882-adl-mongod branch for PM-2882 project which is a spike work.


Generated at Thu Feb 08 06:08:13 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.