[SERVER-65008] Investigate POC failure "received command without explicit writeConcern on an internalClient connection" Created: 29/Mar/22  Updated: 29/Oct/23  Resolved: 19/Apr/22

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

Type: Task Priority: Major - P3
Reporter: Andrew Shuvalov (Inactive) Assignee: Andrew Shuvalov (Inactive)
Resolution: Fixed Votes: 0
Labels: sharding-nyc-subteam2, sharding-nyc-subteam2-catalog-poc
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Sharding NYC 2022-04-04, Sharding NYC 2022-04-18, Sharding 2022-05-02
Participants:

 Description   

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 :



 Comments   
Comment by Andrew Shuvalov (Inactive) [ 13/Apr/22 ]

Very similar error with read concern in ShardingCatalogManager::_runCountCommandOnConfig when the read concern is not set, and then is user asserted in _extractReadConcern.

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