[SERVER-65390] In config POC the ShardingTest with zero shards initially is broken Created: 08/Apr/22  Updated: 29/Oct/23  Resolved: 14/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: Kshitij Gupta
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-18
Participants:
Story Points: 2

 Description   

The failure is in the fixture:

[js_test:addshard2] uncaught exception: TypeError: this._rs[0] is undefined :
[js_test:addshard2] ShardingTest@src/mongo/shell/shardingtest.js:1345:9
[js_test:addshard2] @jstests/sharding/addshard2.js:58:12
[js_test:addshard2] @jstests/sharding/addshard2.js:182:3
[js_test:addshard2] failed to load: jstests/sharding/addshard2.js

Tests to reproduce:

jstests/sharding/addshard2.js
jstests/auth/sasl_mechanism_discovery.js
jstests/sharding/addshard6.js
...

and similar tests we start with zero shards.


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