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

Investigate POC failure "received command without explicit writeConcern on an internalClient connection"

    • Fully Compatible
    • Sharding NYC 2022-04-04, Sharding NYC 2022-04-18, Sharding 2022-05-02

      Tests to reproduce:

      jstests/sharding/accurate_count_with_predicate.js
      jstests/sharding/addshard5.js
      jstests/sharding/aggregations_in_session.js
      jstests/sharding/allow_partial_results_nshards.js
      jstests/sharding/api_version_test_expression.js
      jstests/sharding/array_shard_key.js
      jstests/sharding/auth_add_shard.js
      jstests/sharding/basic_split.js
      jstests/sharding/change_stream_empty_apply_ops.js
      jstests/sharding/change_stream_error_label.js
      jstests/sharding/change_stream_resume_from_different_mongos.js
      jstests/sharding/change_stream_resume_shard_key_change.js
      jstests/sharding/change_stream_shard_failover.js
      jstests/sharding/change_stream_transaction_sharded.js
      jstests/sharding/change_streams.js
      jstests/sharding/change_streams_establishment_finds_new_shards.js
      

      Typical failure:

      [js_test:change_streams] uncaught exception: Error: command failed: {
      [js_test:change_streams] 	"ok" : 0,
      [js_test:change_streams] 	"errmsg" : "received command without explicit writeConcern on an internalClient connection { applyOps: [ { op: \"u\", b: false, ns: \"config.chunks\", o: { _id: ObjectId('624222309cac0da7a80ca677'), uuid: UUID(\"bec6147a-efe4-4bba-9c47-63eea80dda32\"), min: { _id: 0.0 }, max: { _id: MaxKey }, shard: \"change_streams-rs1\", lastmod: Timestamp(5, 0), history: [ { validAfter: Timestamp(1648501316, 14), shard: \"change_streams-rs1\" }, { validAfter: Timestamp(1648501295, 97), shard: \"change_streams-rs0\" } ] }, o2: { _id: ObjectId('624222309cac0da7a80ca677') } }, { op: \"u\", b: false, ns: \"config.chunks\", o: { _id: ObjectId('6242222f9cac0da7a80ca663'), uuid: UUID(\"bec6147a-efe4-4bba-9c47-63eea80dda32\"), min: { _id: MinKey }, max: { _id: 0.0 }, shard: \"change_streams-rs0\", lastmod: Timestamp(5, 1), history: [ { validAfter: Timestamp(1648501295, 97), shard: \"change_streams-rs0\" } ] }, o2: { _id: ObjectId('6242222f9cac0da7a80ca663') } } ], alwaysUpsert: false, $replData: 1, $clusterTime: { clusterTime: Timestamp(1648501316, 14), signature: { hash: BinData(0, 0000000000000000000000000000000000000000), keyId: 0 } }, $configTime: Timestamp(1648501316, 14), $topologyTime: Timestamp(1648501295, 40), $audit: { $impersonatedUsers: [ { user: \"__system\", db: \"local\" } ], $impersonatedRoles: [] }, $client: { driver: { name: \"NetworkInterfaceTL-ShardRegistry\", version: \"6.0.0-alpha-864-ga227f8f\" }, os: { type: \"Linux\", name: \"Ubuntu\", architecture: \"x86_64\", version: \"18.04\" } }, $db: \"change_streams\" }",
      [js_test:change_streams] 	"code" : 4569201,
      [js_test:change_streams] 	"codeName" : "Location4569201",
      [js_test:change_streams] 	"$clusterTime" : {
      [js_test:change_streams] 		"clusterTime" : Timestamp(1648501316, 20),
      [js_test:change_streams] 		"signature" : {
      [js_test:change_streams] 			"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
      [js_test:change_streams] 			"keyId" : NumberLong(0)
      [js_test:change_streams] 		}
      [js_test:change_streams] 	},
      [js_test:change_streams] 	"operationTime" : Timestamp(1648501316, 17)
      [js_test:change_streams] } with original command request: {
      [js_test:change_streams] 	"movechunk" : "change_streams.with_id_shard_key",
      [js_test:change_streams] 	"find" : {
      [js_test:change_streams] 		"_id" : 1
      [js_test:change_streams] 	},
      [js_test:change_streams] 	"to" : "change_streams-rs1/ip-10-122-2-167:20021",
      [js_test:change_streams] 	"_waitForDelete" : undefined,
      [js_test:change_streams] 	"lsid" : {
      [js_test:change_streams] 		"id" : UUID("7defd664-f6d0-4dec-a959-47523875df49")
      [js_test:change_streams] 	},
      [js_test:change_streams] 	"$clusterTime" : {
      [js_test:change_streams] 		"clusterTime" : Timestamp(1648501315, 1),
      [js_test:change_streams] 		"signature" : {
      [js_test:change_streams] 			"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
      [js_test:change_streams] 			"keyId" : NumberLong(0)
      [js_test:change_streams] 		}
      [js_test:change_streams] 	}
      [js_test:change_streams] } on connection: connection to ip-10-122-2-167:20022 :
      
      

            Assignee:
            andrew.shuvalov@mongodb.com Andrew Shuvalov (Inactive)
            Reporter:
            andrew.shuvalov@mongodb.com Andrew Shuvalov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: