[SERVER-38369] Only surface a "request doesn't allow collection to be created implicitly" error if no shard has the collection Created: 03/Dec/18 Updated: 29/Oct/23 Resolved: 13/May/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 4.1.12 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Alyson Cabral (Inactive) | Assignee: | Esha Maharishi (Inactive) |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | ShardingRoughEdges, high-value | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Sprint: | Sharding 2019-02-11, Sharding 2019-02-25, Sharding 2019-05-06, Sharding 2019-05-20 |
| Participants: | |
| Case: | (copied to CRM) |
| Description |
|
Even though a collection exists on some shards and not on others, it's confusing to get "request doesn't allow collection to be created implicitly" error.
|
| Comments |
| Comment by Githook User [ 13/May/19 ] |
|
Author: {'name': 'Esha Maharishi', 'username': 'EshaMaharishi', 'email': 'esha.maharishi@mongodb.com'}Message: Revert " This reverts commit ba844b4e81c3914b8a7017bd2a8c5ac4231c72ff.
The commit for |
| Comment by Githook User [ 12/May/19 ] |
|
Author: {'name': 'Benety Goh', 'username': 'benety', 'email': 'benety@mongodb.com'}Message: |
| Comment by Githook User [ 10/May/19 ] |
|
Author: {'email': 'esha.maharishi@mongodb.com', 'name': 'Esha Maharishi', 'username': 'EshaMaharishi'}Message: |
| Comment by Alyson Cabral (Inactive) [ 01/Feb/19 ] |
|
Yes, returning CannotImplicitlyCreateCollection exposes an implementation detail that ultimately confuses users. I'd prefer a more descriptive response saying that no data for the collection lives on the shard. Or ideally I'd even go as far as suggesting we swallow responses from shards that don't contain chunks. |
| Comment by Esha Maharishi (Inactive) [ 28/Jan/19 ] |
|
alyson.cabral, the command returned success in this case (ok: 1) - is this ticket asking to not even show the CannotImplicitlyCreateCollection error from "shardB" in the raw responses? |