[DOCS-13941] collstats command not giving error as per documentation Created: 07/Sep/20 Updated: 12/Dec/23 Resolved: 28/Jan/22 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | manual, Server |
| Affects Version/s: | None |
| Fix Version/s: | 4.4.0, 4.2.6, 5.0.0, 5.2.0, 5.3.0, Server_Docs_20231030, Server_Docs_20231106, Server_Docs_20231105, Server_Docs_20231113 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Scott McGillivray | Assignee: | Jason Price |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Participants: | |||||||||||||||||
| Days since reply: | 2 years, 1 week, 6 days ago | ||||||||||||||||
| Epic Link: | DOCSP-11701 | ||||||||||||||||
| Story Points: | 3 | ||||||||||||||||
| Description |
|
Using these versions pymongo '3.11.0' mongo '4.2.6' when i run this i get back a couple of collections as expected
when i run this for a collection name that doesn't exist in the database i get the below output.
which is odd because the documentation says: Just curious if this is expected behaviour ? Shouldn't pymongo have returned an error ? Thanks. |
| Comments |
| Comment by Githook User [ 28/Jan/22 ] |
|
Author: {'name': 'jason-price-mongodb', 'email': '69260375+jason-price-mongodb@users.noreply.github.com', 'username': 'jason-price-mongodb'}Message:
Co-authored-by: jason-price-mongodb <jshfjghsdfgjsdjh@aolsdjfhkjsdhfkjsdf.com> Co-authored-by: jason-price-mongodb <jshfjghsdfgjsdjh@aolsdjfhkjsdhfkjsdf.com> |
| Comment by Githook User [ 28/Jan/22 ] |
|
Author: {'name': 'jason-price-mongodb', 'email': '69260375+jason-price-mongodb@users.noreply.github.com', 'username': 'jason-price-mongodb'}Message:
Co-authored-by: jason-price-mongodb <jshfjghsdfgjsdjh@aolsdjfhkjsdhfkjsdf.com> Co-authored-by: jason-price-mongodb <jshfjghsdfgjsdjh@aolsdjfhkjsdhfkjsdf.com> |
| Comment by Githook User [ 28/Jan/22 ] |
|
Author: {'name': 'jason-price-mongodb', 'email': '69260375+jason-price-mongodb@users.noreply.github.com', 'username': 'jason-price-mongodb'}Message:
Co-authored-by: jason-price-mongodb <jshfjghsdfgjsdjh@aolsdjfhkjsdhfkjsdf.com> Co-authored-by: jason-price-mongodb <jshfjghsdfgjsdjh@aolsdjfhkjsdhfkjsdf.com> |
| Comment by Githook User [ 27/Jan/22 ] |
|
Author: {'name': 'jason-price-mongodb', 'email': '69260375+jason-price-mongodb@users.noreply.github.com', 'username': 'jason-price-mongodb'}Message:
Co-authored-by: jason-price-mongodb <jshfjghsdfgjsdjh@aolsdjfhkjsdhfkjsdf.com> |
| Comment by Shane Harvey [ 21/Oct/20 ] |
|
Moving this to the DOCS project because this appears to be a bug in the server documentation for collStats. In particular, it says:
But this is not always the case on recent server versions, see |
| Comment by Shane Harvey [ 29/Sep/20 ] |
|
Upon further investigation, it looks like the server documentation for collStats is incorrect. We should update the documentation to be in line with the recent server behavior. |
| Comment by Shane Harvey [ 29/Sep/20 ] |
|
SERVER-50070 is specifically only about MongoDB 3.6 whereas this ticket uses MongoDB 4.2. Nonetheless, Bernie is right that this is a server issue affecting 4.2 and 4.4, not a pymongo bug. I filed |
| Comment by Bernie Hackett [ 07/Sep/20 ] |
|
This looks like the server bug reported in SERVER-50070. In most cases PyMongo relies on the server to return an error when necessary. We generally don't want to add custom error handling that would have to be removed or altered as the server changes over time. |