[DOCS-11361] Document that views must be accessed via mongos in a sharded cluster Created: 27/Feb/18 Updated: 30/Oct/23 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | manual |
| Affects Version/s: | None |
| Fix Version/s: | Server_Docs_20231030 |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Kyle Suarez | Assignee: | Unassigned |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | read-only-views | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: | |||
| Issue Links: |
|
||||||||
| Participants: | |||||||||
| Days since reply: | 1 year, 14 weeks, 2 days ago | ||||||||
| Epic Link: | DOCSP-1769 | ||||||||
| Story Points: | 0.5 | ||||||||
| Description |
|
In a sharded cluster, a view can only be read by sending commands to a mongos. You cannot connect directly to a mongod and issue queries against the view, even if all of the dependent namespaces of the view happen to reside on the same server. Users that attempt to do this will get a CommandOnShardedViewNotSupportedOnMongod error. This behavior is accurate for all versions, so it would be nice to have this for both v3.4 and v3.6 documentation. Scanning quickly through the views documentation, it might make sense to put a note about this in any sections that describe limitations of views (perhaps in https://docs.mongodb.com/manual/core/views/ under the "Behavior" section). |
| Comments |
| Comment by Education Bot [ 31/Oct/22 ] |
|
Hello! This ticket has been closed due to inactivity. If you believe this ticket is still important, please reopen it and leave a comment to explain why. Thank you! |