[SERVER-78434] never implicitly shard a view in implicitly_shard_accessed_collections.js Created: 26/Jun/23 Updated: 29/Oct/23 Resolved: 05/Jul/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 7.1.0-rc0, 5.0.19, 7.0.0-rc6, 6.0.8 |
| Fix Version/s: | 7.1.0-rc0, 7.0.0-rc7, 5.0.20, 6.0.9 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Enrico Golfieri | Assignee: | Enrico Golfieri |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Backwards Compatibility: | Fully Compatible | ||||
| Backport Requested: |
v7.0, v6.0, v5.0
|
||||
| Sprint: | Sharding EMEA 2023-07-10 | ||||
| Participants: | |||||
| Description |
|
Currently implicitly_shard_accessed_collections.js overrides getCollection for passthrough suites implicitly runs shardCollection in case the collection is not sharded or does not exist. However, in case the namespace is a view, the command will fail with CommandNotSupportedOnView since sharding a view is not allowed. We should simply return the collection in case is a view. |
| Comments |
| Comment by Githook User [ 07/Jul/23 ] |
|
Author: {'name': 'Enrico', 'email': 'enrico.golfieri@mongodb.com', 'username': 'enricogolfieri'}Message: (cherry picked from commit e8821d0bb878240d3b3a1cc495cc58df36458cc3) |
| Comment by Githook User [ 07/Jul/23 ] |
|
Author: {'name': 'Enrico', 'email': 'enrico.golfieri@mongodb.com', 'username': 'enricogolfieri'}Message: (cherry-picked from commit e8821d0bb878240d3b3a1cc495cc58df36458cc3) |
| Comment by Githook User [ 07/Jul/23 ] |
|
Author: {'name': 'Enrico', 'email': 'enrico.golfieri@mongodb.com', 'username': 'enricogolfieri'}Message: |
| Comment by Githook User [ 04/Jul/23 ] |
|
Author: {'name': 'Enrico', 'email': 'enrico.golfieri@mongodb.com', 'username': 'enricogolfieri'}Message: |