-
Type: Bug
-
Resolution: Gone away
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
This appears to be due to fetching older server versions 4.9.0-alpha4-343-g0fc5b56 that do not include new changes to how cursors are closed server-side when all results are read.
Logs:
[2021/06/08 16:02:33.811] versioned API spec automated tests [2021/06/08 16:02:33.811] CRUD Api Version 1 [2021/06/08 16:02:33.811] find and getMore append API version [2021/06/08 16:02:33.811] ------------------------------------------------------------------------------- [2021/06/08 16:02:33.811] /data/mci/00543a4e5e47d9f830a3a04e87c6bee1/mongo-cxx-driver/src/mongocxx/test/spec/unified_tests/runner.cpp:714 [2021/06/08 16:02:33.811] ............................................................................... [2021/06/08 16:02:33.817] /data/mci/00543a4e5e47d9f830a3a04e87c6bee1/mongo-cxx-driver/src/mongocxx/test/spec/unified_tests/runner.cpp:562: FAILED: [2021/06/08 16:02:33.817] REQUIRE( expect_error ) [2021/06/08 16:02:33.817] with expansion: [2021/06/08 16:02:33.817] {?} [2021/06/08 16:02:33.817] with messages: [2021/06/08 16:02:33.817] path := "/data/mci/00543a4e5e47d9f830a3a04e87c6bee1/mongo-cxx-driver/build/.. [2021/06/08 16:02:33.817] /data/versioned-api" [2021/06/08 16:02:33.817] file := "crud-api-version-1.json" [2021/06/08 16:02:33.817] test_path := "/data/mci/00543a4e5e47d9f830a3a04e87c6bee1/mongo-cxx-driver/ [2021/06/08 16:02:33.817] build/../data/versioned-api/crud-api-version-1.json" [2021/06/08 16:02:33.817] to_json(test_spec_view) := "{ "description" : "CRUD Api Version 1", [2021/06/08 16:02:33.817] "schemaVersion" : "1.1", "runOnRequirements" : [ { "minServerVersion" : "4.9" [2021/06/08 16:02:33.817] } ], "createEntities" : [ { "client" : { "id" : "client", "observeEvents" : [ [2021/06/08 16:02:33.817] "commandStartedEvent" ], "serverApi" : { "version" : "1", "deprecationErrors" [2021/06/08 16:02:33.817] : true } } }, { "database" : { "id" : "database", "client" : "client", [2021/06/08 16:02:33.817] "databaseName" : "versioned-api-tests" } }, { "database" : { "id" : [2021/06/08 16:02:33.818] "adminDatabase", "client" : "client", "databaseName" : "admin" } }, { [2021/06/08 16:02:33.818] "collection" : { "id" : "collection", "database" : "database", [2021/06/08 16:02:33.818] "collectionName" : "test" } } ], "_yamlAnchors" : { "versions" : [ { [2021/06/08 16:02:33.818] "apiVersion" : "1", "apiStrict" : { "$$unsetOrMatches" : false }, [2021/06/08 16:02:33.818] "apiDeprecationErrors" : true } ] }, "initialData" : [ { "collectionName" : [2021/06/08 16:02:33.818] "test", "databaseName" : "versioned-api-tests", "documents" : [ { "_id" : 1, [2021/06/08 16:02:33.818] "x" : 11 }, { "_id" : 2, "x" : 22 }, { "_id" : 3, "x" : 33 }, { "_id" : 4, [2021/06/08 16:02:33.818] "x" : 44 }, { "_id" : 5, "x" : 55 } ] } ], "tests" : [ { "description" : [2021/06/08 16:02:33.818] "aggregate on collection appends declared API version", "operations" : [ { [2021/06/08 16:02:33.818] "name" : "aggregate", "object" : "collection", "arguments" : { "pipeline" : [ [2021/06/08 16:02:33.818] { "$sort" : { "x" : 1 } }, { "$match" : { "_id" : { "$gt" : 1 } } } ] } } ], [2021/06/08 16:02:33.818] "expectEvents" : [ { "client" : "client", "events" : [ { [2021/06/08 16:02:33.818] "commandStartedEvent" : { "command" : { "aggregate" : "test", "pipeline" : [ [2021/06/08 16:02:33.818] { "$sort" : { "x" : 1 } }, { "$match" : { "_id" : { "$gt" : 1 } } } ], [2021/06/08 16:02:33.818] "apiVersion" : "1", "apiStrict" : { "$$unsetOrMatches" : false }, [2021/06/08 16:02:33.818] "apiDeprecationErrors" : true } } } ] } ] }, { "description" : "aggregate on [2021/06/08 16:02:33.818] database appends declared API version", "operations" : [ { "name" : [2021/06/08 16:02:33.818] "aggregate", "object" : "adminDatabase", "arguments" : { "pipeline" : [ { [2021/06/08 16:02:33.818] "$listLocalSessions" : { } }, { "$limit" : 1 } ] } } ], "expectEvents" : [ { [2021/06/08 16:02:33.818] "client" : "client", "events" : [ { "commandStartedEvent" : { "command" : { [2021/06/08 16:02:33.818] "aggregate" : 1, "pipeline" : [ { "$listLocalSessions" : { } }, { "$limit" : [2021/06/08 16:02:33.818] 1 } ], "apiVersion" : "1", "apiStrict" : { "$$unsetOrMatches" : false }, [2021/06/08 16:02:33.818] "apiDeprecationErrors" : true } } } ] } ] }, { "description" : "bulkWrite [2021/06/08 16:02:33.818] appends declared API version", "operations" : [ { "name" : "bulkWrite", [2021/06/08 16:02:33.818] "object" : "collection", "arguments" : { "requests" : [ { "insertOne" : { [2021/06/08 16:02:33.818] "document" : { "_id" : 6, "x" : 66 } } }, { "updateOne" : { "filter" : { [2021/06/08 16:02:33.818] "_id" : 2 }, "update" : { "$inc" : { "x" : 1 } } } }, { "deleteMany" : { [2021/06/08 16:02:33.818] "filter" : { "x" : { "$nin" : [ 24, 34 ] } } } }, { "updateMany" : { "filter" [2021/06/08 16:02:33.818] : { "_id" : { "$gt" : 1 } }, "update" : { "$inc" : { "x" : 1 } } } }, { [2021/06/08 16:02:33.818] "deleteOne" : { "filter" : { "_id" : 7 } } }, { "replaceOne" : { "filter" : { [2021/06/08 16:02:33.818] "_id" : 4 }, "replacement" : { "_id" : 4, "x" : 44 }, "upsert" : true } } ], [2021/06/08 16:02:33.818] "ordered" : true } } ], "expectEvents" : [ { "client" : "client", "events" : [2021/06/08 16:02:33.818] [ { "commandStartedEvent" : { "command" : { "insert" : "test", "documents" : [2021/06/08 16:02:33.818] [ { "_id" : 6, "x" : 66 } ], "apiVersion" : "1", "apiStrict" : { [2021/06/08 16:02:33.818] "$$unsetOrMatches" : false }, "apiDeprecationErrors" : true } } }, { [2021/06/08 16:02:33.818] "commandStartedEvent" : { "command" : { "update" : "test", "updates" : [ { [2021/06/08 16:02:33.818] "q" : { "_id" : 2 }, "u" : { "$inc" : { "x" : 1 } }, "multi" : { [2021/06/08 16:02:33.818] "$$unsetOrMatches" : false }, "upsert" : { "$$unsetOrMatches" : false } } ], [2021/06/08 16:02:33.818] "apiVersion" : "1", "apiStrict" : { "$$unsetOrMatches" : false }, [2021/06/08 16:02:33.818] "apiDeprecationErrors" : true } } }, { "commandStartedEvent" : { "command" : [2021/06/08 16:02:33.818] { "delete" : "test", "deletes" : [ { "q" : { "x" : { "$nin" : [ 24, 34 ] } }, [2021/06/08 16:02:33.818] "limit" : 0 } ], "apiVersion" : "1", "apiStrict" : { "$$unsetOrMatches" : [2021/06/08 16:02:33.818] false }, "apiDeprecationErrors" : true } } }, { "commandStartedEvent" : { [2021/06/08 16:02:33.818] "command" : { "update" : "test", "updates" : [ { "q" : { "_id" : { "$gt" : 1 [2021/06/08 16:02:33.818] } }, "u" : { "$inc" : { "x" : 1 } }, "multi" : true, "upsert" : { [2021/06/08 16:02:33.818] "$$unsetOrMatches" : false } } ], "apiVersion" : "1", "apiStrict" : { [2021/06/08 16:02:33.818] "$$unsetOrMatches" : false }, "apiDeprecationErrors" : true } } }, { [2021/06/08 16:02:33.818] "commandStartedEvent" : { "command" : { "delete" : "test", "deletes" : [ { [2021/06/08 16:02:33.818] "q" : { "_id" : 7 }, "limit" : 1 } ], "apiVersion" : "1", "apiStrict" : { [2021/06/08 16:02:33.818] "$$unsetOrMatches" : false }, "apiDeprecationErrors" : true } } }, { [2021/06/08 16:02:33.818] "commandStartedEvent" : { "command" : { "update" : "test", "updates" : [ { [2021/06/08 16:02:33.818] "q" : { "_id" : 4 }, "u" : { "_id" : 4, "x" : 44 }, "multi" : { [2021/06/08 16:02:33.818] "$$unsetOrMatches" : false }, "upsert" : true } ], "apiVersion" : "1", [2021/06/08 16:02:33.818] "apiStrict" : { "$$unsetOrMatches" : false }, "apiDeprecationErrors" : true } [2021/06/08 16:02:33.818] } } ] } ] }, { "description" : "countDocuments appends declared API version", [2021/06/08 16:02:33.818] "operations" : [ { "name" : "countDocuments", "object" : "collection", [2021/06/08 16:02:33.818] "arguments" : { "filter" : { "x" : { "$gt" : 11 } } } } ], "expectEvents" : [ [2021/06/08 16:02:33.818] { "client" : "client", "events" : [ { "commandStartedEvent" : { "command" : { [2021/06/08 16:02:33.818] "aggregate" : "test", "pipeline" : [ { "$match" : { "x" : { "$gt" : 11 } } }, [2021/06/08 16:02:33.818] { "$group" : { "_id" : 1, "n" : { "$sum" : 1 } } } ], "apiVersion" : "1", [2021/06/08 16:02:33.818] "apiStrict" : { "$$unsetOrMatches" : false }, "apiDeprecationErrors" : true } [2021/06/08 16:02:33.818] } } ] } ] }, { "description" : "deleteMany appends declared API version", [2021/06/08 16:02:33.818] "operations" : [ { "name" : "deleteMany", "object" : "collection", [2021/06/08 16:02:33.818] "arguments" : { "filter" : { "x" : { "$nin" : [ 24, 34 ] } } } } ], [2021/06/08 16:02:33.818] "expectEvents" : [ { "client" : "client", "events" : [ { [2021/06/08 16:02:33.818] "commandStartedEvent" : { "command" : { "delete" : "test", "deletes" : [ { [2021/06/08 16:02:33.818] "q" : { "x" : { "$nin" : [ 24, 34 ] } }, "limit" : 0 } ], "apiVersion" : "1", [2021/06/08 16:02:33.818] "apiStrict" : { "$$unsetOrMatches" : false }, "apiDeprecationErrors" : true } [2021/06/08 16:02:33.819] } } ] } ] }, { "description" : "deleteOne appends declared API version", [2021/06/08 16:02:33.819] "operations" : [ { "name" : "deleteOne", "object" : "collection", "arguments" [2021/06/08 16:02:33.819] : { "filter" : { "_id" : 7 } } } ], "expectEvents" : [ { "client" : "client", [2021/06/08 16:02:33.819] "events" : [ { "commandStartedEvent" : { "command" : { "delete" : "test", [2021/06/08 16:02:33.819] "deletes" : [ { "q" : { "_id" : 7 }, "limit" : 1 } ], "apiVersion" : "1", [2021/06/08 16:02:33.819] "apiStrict" : { "$$unsetOrMatches" : false }, "apiDeprecationErrors" : true } [2021/06/08 16:02:33.819] } } ] } ] }, { "description" : "distinct appends declared API version", [2021/06/08 16:02:33.819] "operations" : [ { "name" : "distinct", "object" : "collection", "arguments" [2021/06/08 16:02:33.819] : { "fieldName" : "x", "filter" : { } } } ], "expectEvents" : [ { "client" : [2021/06/08 16:02:33.819] "client", "events" : [ { "commandStartedEvent" : { "command" : { "distinct" : [2021/06/08 16:02:33.819] "test", "key" : "x", "apiVersion" : "1", "apiStrict" : { "$$unsetOrMatches" : [2021/06/08 16:02:33.819] false }, "apiDeprecationErrors" : true } } } ] } ] }, { "description" : [2021/06/08 16:02:33.819] "estimatedDocumentCount appends declared API version on 4.9.0 or greater", [2021/06/08 16:02:33.819] "operations" : [ { "name" : "estimatedDocumentCount", "object" : [2021/06/08 16:02:33.819] "collection", "arguments" : { } } ], "expectEvents" : [ { "client" : [2021/06/08 16:02:33.819] "client", "events" : [ { "commandStartedEvent" : { "command" : { "aggregate" [2021/06/08 16:02:33.819] : "test", "pipeline" : [ { "$collStats" : { "count" : { } } }, { "$group" : [2021/06/08 16:02:33.819] { "_id" : 1, "n" : { "$sum" : "$count" } } } ], "apiVersion" : "1", [2021/06/08 16:02:33.819] "apiStrict" : { "$$unsetOrMatches" : false }, "apiDeprecationErrors" : true } [2021/06/08 16:02:33.819] } } ] } ] }, { "description" : "find and getMore append API version", [2021/06/08 16:02:33.819] "operations" : [ { "name" : "find", "object" : "collection", "arguments" : { [2021/06/08 16:02:33.819] "filter" : { }, "sort" : { "_id" : 1 }, "batchSize" : 3 }, "expectResult" : [2021/06/08 16:02:33.819] [ { "_id" : 1, "x" : 11 }, { "_id" : 2, "x" : 22 }, { "_id" : 3, "x" : 33 }, [2021/06/08 16:02:33.819] { "_id" : 4, "x" : 44 }, { "_id" : 5, "x" : 55 } ] } ], "expectEvents" : [ { [2021/06/08 16:02:33.819] "client" : "client", "events" : [ { "commandStartedEvent" : { "command" : { [2021/06/08 16:02:33.819] "find" : "test", "apiVersion" : "1", "apiStrict" : { "$$unsetOrMatches" : [2021/06/08 16:02:33.819] false }, "apiDeprecationErrors" : true } } }, { "commandStartedEvent" : { [2021/06/08 16:02:33.819] "command" : { "getMore" : { "$$type" : [ "int", "long" ] }, "apiVersion" : [2021/06/08 16:02:33.819] "1", "apiStrict" : { "$$unsetOrMatches" : false }, "apiDeprecationErrors" : [2021/06/08 16:02:33.819] true } } } ] } ] }, { "description" : "findOneAndDelete appends declared API [2021/06/08 16:02:33.819] version", "operations" : [ { "name" : "findOneAndDelete", "object" : [2021/06/08 16:02:33.819] "collection", "arguments" : { "filter" : { "_id" : 1 } } } ], "expectEvents" [2021/06/08 16:02:33.819] : [ { "client" : "client", "events" : [ { "commandStartedEvent" : { "command" [2021/06/08 16:02:33.819] : { "findAndModify" : "test", "query" : { "_id" : 1 }, "remove" : true, [2021/06/08 16:02:33.819] "apiVersion" : "1", "apiStrict" : { "$$unsetOrMatches" : false }, [2021/06/08 16:02:33.819] "apiDeprecationErrors" : true } } } ] } ] }, { "description" : [2021/06/08 16:02:33.819] "findOneAndReplace appends declared API version", "operations" : [ { "name" : [2021/06/08 16:02:33.819] "findOneAndReplace", "object" : "collection", "arguments" : { "filter" : { [2021/06/08 16:02:33.819] "_id" : 1 }, "replacement" : { "x" : 33 } } } ], "expectEvents" : [ { [2021/06/08 16:02:33.819] "client" : "client", "events" : [ { "commandStartedEvent" : { "command" : { [2021/06/08 16:02:33.819] "findAndModify" : "test", "query" : { "_id" : 1 }, "update" : { "x" : 33 }, [2021/06/08 16:02:33.819] "apiVersion" : "1", "apiStrict" : { "$$unsetOrMatches" : false }, [2021/06/08 16:02:33.819] "apiDeprecationErrors" : true } } } ] } ] }, { "description" : [2021/06/08 16:02:33.819] "findOneAndUpdate appends declared API version", "operations" : [ { "name" : [2021/06/08 16:02:33.819] "findOneAndUpdate", "object" : "collection", "arguments" : { "filter" : { [2021/06/08 16:02:33.819] "_id" : 1 }, "update" : { "$inc" : { "x" : 1 } } } } ], "expectEvents" : [ { [2021/06/08 16:02:33.819] "client" : "client", "events" : [ { "commandStartedEvent" : { "command" : { [2021/06/08 16:02:33.819] "findAndModify" : "test", "query" : { "_id" : 1 }, "update" : { "$inc" : { [2021/06/08 16:02:33.819] "x" : 1 } }, "apiVersion" : "1", "apiStrict" : { "$$unsetOrMatches" : false } [2021/06/08 16:02:33.819] , "apiDeprecationErrors" : true } } } ] } ] }, { "description" : "insertMany [2021/06/08 16:02:33.819] appends declared API version", "operations" : [ { "name" : "insertMany", [2021/06/08 16:02:33.819] "object" : "collection", "arguments" : { "documents" : [ { "_id" : 6, "x" : [2021/06/08 16:02:33.819] 66 }, { "_id" : 7, "x" : 77 } ] } } ], "expectEvents" : [ { "client" : [2021/06/08 16:02:33.819] "client", "events" : [ { "commandStartedEvent" : { "command" : { "insert" : [2021/06/08 16:02:33.819] "test", "documents" : [ { "_id" : 6, "x" : 66 }, { "_id" : 7, "x" : 77 } ], [2021/06/08 16:02:33.819] "apiVersion" : "1", "apiStrict" : { "$$unsetOrMatches" : false }, [2021/06/08 16:02:33.819] "apiDeprecationErrors" : true } } } ] } ] }, { "description" : "insertOne [2021/06/08 16:02:33.819] appends declared API version", "operations" : [ { "name" : "insertOne", [2021/06/08 16:02:33.819] "object" : "collection", "arguments" : { "document" : { "_id" : 6, "x" : 66 } [2021/06/08 16:02:33.819] } } ], "expectEvents" : [ { "client" : "client", "events" : [ { [2021/06/08 16:02:33.819] "commandStartedEvent" : { "command" : { "insert" : "test", "documents" : [ { [2021/06/08 16:02:33.820] "_id" : 6, "x" : 66 } ], "apiVersion" : "1", "apiStrict" : { [2021/06/08 16:02:33.820] "$$unsetOrMatches" : false }, "apiDeprecationErrors" : true } } } ] } ] }, { [2021/06/08 16:02:33.820] "description" : "replaceOne appends declared API version", "operations" : [ { [2021/06/08 16:02:33.820] "name" : "replaceOne", "object" : "collection", "arguments" : { "filter" : { [2021/06/08 16:02:33.820] "_id" : 4 }, "replacement" : { "_id" : 4, "x" : 44 }, "upsert" : true } } ], [2021/06/08 16:02:33.820] "expectEvents" : [ { "client" : "client", "events" : [ { [2021/06/08 16:02:33.820] "commandStartedEvent" : { "command" : { "update" : "test", "updates" : [ { [2021/06/08 16:02:33.820] "q" : { "_id" : 4 }, "u" : { "_id" : 4, "x" : 44 }, "multi" : { [2021/06/08 16:02:33.820] "$$unsetOrMatches" : false }, "upsert" : true } ], "apiVersion" : "1", [2021/06/08 16:02:33.820] "apiStrict" : { "$$unsetOrMatches" : false }, "apiDeprecationErrors" : true } [2021/06/08 16:02:33.820] } } ] } ] }, { "description" : "updateMany appends declared API version", [2021/06/08 16:02:33.820] "operations" : [ { "name" : "updateMany", "object" : "collection", [2021/06/08 16:02:33.820] "arguments" : { "filter" : { "_id" : { "$gt" : 1 } }, "update" : { "$inc" : { [2021/06/08 16:02:33.820] "x" : 1 } } } } ], "expectEvents" : [ { "client" : "client", "events" : [ { [2021/06/08 16:02:33.820] "commandStartedEvent" : { "command" : { "update" : "test", "updates" : [ { [2021/06/08 16:02:33.820] "q" : { "_id" : { "$gt" : 1 } }, "u" : { "$inc" : { "x" : 1 } }, "multi" : [2021/06/08 16:02:33.820] true, "upsert" : { "$$unsetOrMatches" : false } } ], "apiVersion" : "1", [2021/06/08 16:02:33.820] "apiStrict" : { "$$unsetOrMatches" : false }, "apiDeprecationErrors" : true } [2021/06/08 16:02:33.820] } } ] } ] }, { "description" : "updateOne appends declared API version", [2021/06/08 16:02:33.820] "operations" : [ { "name" : "updateOne", "object" : "collection", "arguments" [2021/06/08 16:02:33.820] : { "filter" : { "_id" : 2 }, "update" : { "$inc" : { "x" : 1 } } } } ], [2021/06/08 16:02:33.820] "expectEvents" : [ { "client" : "client", "events" : [ { [2021/06/08 16:02:33.820] "commandStartedEvent" : { "command" : { "update" : "test", "updates" : [ { [2021/06/08 16:02:33.820] "q" : { "_id" : 2 }, "u" : { "$inc" : { "x" : 1 } }, "multi" : { [2021/06/08 16:02:33.820] "$$unsetOrMatches" : false }, "upsert" : { "$$unsetOrMatches" : false } } ], [2021/06/08 16:02:33.820] "apiVersion" : "1", "apiStrict" : { "$$unsetOrMatches" : false }, [2021/06/08 16:02:33.820] "apiDeprecationErrors" : true } } } ] } ] } ] }" [2021/06/08 16:02:33.820] name := "find" [2021/06/08 16:02:33.820] object := "collection" [2021/06/08 16:02:33.820] to_json(op_view) := "{ "name" : "find", "object" : "collection", "arguments" [2021/06/08 16:02:33.820] : { "filter" : { }, "sort" : { "_id" : 1 }, "batchSize" : 3 }, [2021/06/08 16:02:33.820] "expectResult" : [ { "_id" : 1, "x" : 11 }, { "_id" : 2, "x" : 22 }, { "_id" [2021/06/08 16:02:33.820] : 3, "x" : 33 }, { "_id" : 4, "x" : 44 }, { "_id" : 5, "x" : 55 } ] }" [2021/06/08 16:02:33.820] exception.what() := "Cannot pass in API parameter field apiVersion: generic [2021/06/08 16:02:33.820] server error" [2021/06/08 16:02:33.820] exception.raw_server_error() ? to_json(*exception.raw_server_error()) : "no [2021/06/08 16:02:33.820] server error" := "{ "ok" : 0.0, "errmsg" : "Cannot pass in API parameter [2021/06/08 16:02:33.820] field apiVersion", "code" : 4937600, "codeName" : "Location4937600" }" [2021/06/08 16:02:33.930] -------------------------------------------------------------------------------
- is related to
-
CXX-2202 Support Removal of Several Platform Builds
- Closed