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

Fix a server crash when an external data source specified for a regular collection

    • Type: Icon: Bug Bug
    • Resolution: Won't Do
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • ALL
    • Hide
      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"}}
      Show
      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" }}

      See the repro.

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

            Assignee:
            yoonsoo.kim@mongodb.com Yoon Soo Kim
            Reporter:
            yoonsoo.kim@mongodb.com Yoon Soo Kim
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: