[SERVER-55890] [SBE][sharding] unexpected $divide by zero during sharded_agg_cleanup_on_error.js Created: 07/Apr/21  Updated: 29/Oct/23  Resolved: 16/Apr/21

Status: Closed
Project: Core Server
Component/s: Querying, Sharding
Affects Version/s: None
Fix Version/s: 5.0.0-rc0

Type: Bug Priority: Major - P3
Reporter: Kyle Suarez Assignee: Ian Boros
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File agg_error_reports_shard_host_and_port.txt    
Issue Links:
Related
related to SERVER-55010 Enable sharding suite against SBE bui... Closed
Backwards Compatibility: Fully Compatible
Sprint: Query Execution 2021-04-19, Query Execution 2021-05-03
Participants:

 Description   

[js_test:sharded_agg_cleanup_on_error] uncaught exception: Error: command did not fail with any of the following codes [ 16608, 2 ] {
[js_test:sharded_agg_cleanup_on_error]  "ok" : 0,
[js_test:sharded_agg_cleanup_on_error]  "errmsg" : "Error on remote shard ip-10-122-69-172.ec2.internal:20020 :: caused by :: Executor error during getMore :: caused by :: can't $divide by zero",
[js_test:sharded_agg_cleanup_on_error]  "code" : 4848401,
[js_test:sharded_agg_cleanup_on_error]  "codeName" : "Location4848401",
[js_test:sharded_agg_cleanup_on_error]  "$clusterTime" : {
[js_test:sharded_agg_cleanup_on_error]          "clusterTime" : Timestamp(1617736774, 21),
[js_test:sharded_agg_cleanup_on_error]          "signature" : {
[js_test:sharded_agg_cleanup_on_error]                  "hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
[js_test:sharded_agg_cleanup_on_error]                  "keyId" : NumberLong(0)
[js_test:sharded_agg_cleanup_on_error]          }
[js_test:sharded_agg_cleanup_on_error]  },
[js_test:sharded_agg_cleanup_on_error]  "operationTime" : Timestamp(1617736774, 21)
[js_test:sharded_agg_cleanup_on_error] } :
[js_test:sharded_agg_cleanup_on_error] _getErrorWithCode@src/mongo/shell/utils.js:25:13
[js_test:sharded_agg_cleanup_on_error] doassert@src/mongo/shell/assert.js:18:14
[js_test:sharded_agg_cleanup_on_error] _assertCommandFailed@src/mongo/shell/assert.js:787:21
[js_test:sharded_agg_cleanup_on_error] assert.commandFailedWithCode@src/mongo/shell/assert.js:833:16
[js_test:sharded_agg_cleanup_on_error] assertFailsAndCleansUpCursors@jstests/sharding/query/sharded_agg_cleanup_on_error.js:65:5
[js_test:sharded_agg_cleanup_on_error] @jstests/sharding/query/sharded_agg_cleanup_on_error.js:87:5
[js_test:sharded_agg_cleanup_on_error] @jstests/sharding/query/sharded_agg_cleanup_on_error.js:10:2
[js_test:sharded_agg_cleanup_on_error] failed to load: jstests/sharding/query/sharded_agg_cleanup_on_error.js
[js_test:sharded_agg_cleanup_on_error] exiting with code -3



 Comments   
Comment by Githook User [ 16/Apr/21 ]

Author:

{'name': 'Ian Boros', 'email': 'ian.boros@mongodb.com', 'username': 'puppyofkosh'}

Message: SERVER-55890 Relax agg_error_reports_shard_host_and_port to accommodate SBE
Branch: master
https://github.com/mongodb/mongo/commit/d8e5c63f5d735d1ce16e5c64260f3665e45cba4a

Comment by Githook User [ 14/Apr/21 ]

Author:

{'name': 'Ian Boros', 'email': 'ian.boros@mongodb.com', 'username': 'puppyofkosh'}

Message: SERVER-55890 Relax sharded_agg_cleanup_on_error to accommodate SBE
Branch: master
https://github.com/mongodb/mongo/commit/405fb549fd8a3137b611da02fa7c2c62413f7f68

Comment by Kyle Suarez [ 12/Apr/21 ]

I also see this same error when running jstests/sharding/query/agg_error_reports_shard_host_and_port.js (task):

[js_test:agg_error_reports_shard_host_and_port] uncaught exception: Error: command did not fail with any of the following codes [ 16608, 2 ] {
[js_test:agg_error_reports_shard_host_and_port] 	"ok" : 0,
[js_test:agg_error_reports_shard_host_and_port] 	"errmsg" : "Error on remote shard ip-10-122-74-188.ec2.internal:20021 :: caused by :: Executor error during getMore :: caused by :: can't $divide by zero",
[js_test:agg_error_reports_shard_host_and_port] 	"code" : 4848401,
[js_test:agg_error_reports_shard_host_and_port] 	"codeName" : "Location4848401",
[js_test:agg_error_reports_shard_host_and_port] 	"$clusterTime" : {
[js_test:agg_error_reports_shard_host_and_port] 		"clusterTime" : Timestamp(1617736922, 82),
[js_test:agg_error_reports_shard_host_and_port] 		"signature" : {
[js_test:agg_error_reports_shard_host_and_port] 			"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
[js_test:agg_error_reports_shard_host_and_port] 			"keyId" : NumberLong(0)
[js_test:agg_error_reports_shard_host_and_port] 		}
[js_test:agg_error_reports_shard_host_and_port] 	},
[js_test:agg_error_reports_shard_host_and_port] 	"operationTime" : Timestamp(1617736922, 82)
[js_test:agg_error_reports_shard_host_and_port] } :
[js_test:agg_error_reports_shard_host_and_port] _getErrorWithCode@src/mongo/shell/utils.js:25:13
[js_test:agg_error_reports_shard_host_and_port] doassert@src/mongo/shell/assert.js:18:14
[js_test:agg_error_reports_shard_host_and_port] _assertCommandFailed@src/mongo/shell/assert.js:787:21
[js_test:agg_error_reports_shard_host_and_port] assert.commandFailedWithCode@src/mongo/shell/assert.js:833:16
[js_test:agg_error_reports_shard_host_and_port] assertErrCodeAndErrMsgContains@jstests/aggregation/extras/utils.js:333:22
[js_test:agg_error_reports_shard_host_and_port] @jstests/sharding/query/agg_error_reports_shard_host_and_port.js:31:1
[js_test:agg_error_reports_shard_host_and_port] @jstests/sharding/query/agg_error_reports_shard_host_and_port.js:3:2
[js_test:agg_error_reports_shard_host_and_port] failed to load: jstests/sharding/query/agg_error_reports_shard_host_and_port.js
[js_test:agg_error_reports_shard_host_and_port] exiting with code -3

Uploading the full test log to this ticket.

Generated at Thu Feb 08 05:37:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.